AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Returns the data in a block 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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetSnapshotBlockAsync.

Namespace: Amazon.EBS
Assembly: AWSSDK.EBS.dll
Version: 3.x.y.z

Syntax

C#
public abstract GetSnapshotBlockResponse GetSnapshotBlock(
         GetSnapshotBlockRequest request
)

Parameters

request
Type: Amazon.EBS.Model.GetSnapshotBlockRequest

Container for the necessary parameters to execute the GetSnapshotBlock service method.

Return Value


The response from the GetSnapshotBlock service method, as returned by EBS.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also