list_changed_blocks
async
¶
list_changed_blocks(
second_snapshot_id: SnapshotId,
*,
config_overrides: Optional[AsyncEBSClientConfig] = None,
first_snapshot_id: Optional[SnapshotId] = None,
next_token: Optional[PageToken] = None,
max_results: Optional[MaxResults] = None,
starting_block_index: Optional[BlockIndex] = None,
) -> ListChangedBlocksResponse
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
You should always retry requests that receive server (5xx) error responses, and ThrottlingException and RequestThrottledException client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.
Parameters:
-
first_snapshot_id(Optional[SnapshotId], default:None) –The ID of the first snapshot to use for the comparison.
The
FirstSnapshotIDparameter must be specified with aSecondSnapshotIdparameter; otherwise, an error occurs. -
second_snapshot_id(SnapshotId) –The ID of the second snapshot to use for the comparison.
The
SecondSnapshotIdparameter must be specified with aFirstSnapshotIDparameter; otherwise, an error occurs. -
next_token(Optional[PageToken], default:None) –The token to request the next page of results.
If you specify NextToken, then StartingBlockIndex is ignored.
-
max_results(Optional[MaxResults], default:None) –The maximum number of blocks to be returned by the request.
Even if additional blocks can be retrieved from the snapshot, the request can return less blocks than MaxResults or an empty array of blocks.
To retrieve the next set of blocks from the snapshot, make another request with the returned NextToken value. The value of NextToken is
nullwhen there are no more blocks to return. -
starting_block_index(Optional[BlockIndex], default:None) –The block index from which the comparison should start.
The list in the response will start from this block index or the next valid block index in the snapshots.
If you specify NextToken, then StartingBlockIndex is ignored.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. For more information see Error retries.
-
RequestThrottledException–The number of API requests has exceeded the maximum allowed API request throttling limit for the snapshot. For more information see Error retries.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–Your current service quotas do not allow you to perform this action.
-
ValidationException–The input fails to satisfy the constraints of the EBS direct APIs.
-
UnknownServiceError–The service returned an error code this client does not model.