list_snapshot_blocks
async
¶
list_snapshot_blocks(
snapshot_id: SnapshotId,
*,
config_overrides: Optional[AsyncEBSClientConfig] = None,
next_token: Optional[PageToken] = None,
max_results: Optional[MaxResults] = None,
starting_block_index: Optional[BlockIndex] = None,
) -> ListSnapshotBlocksResponse
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
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:
-
snapshot_id(SnapshotId) –The ID of the snapshot from which to get block indexes and block tokens.
-
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 list should start. The list in the response will start from this block index or the next valid block index in the snapshot.
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.