We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Use a bare-bones client and the command you need to make an API call.
import { EBSClient, ListSnapshotBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import// const { EBSClient, ListSnapshotBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS importconst client = new EBSClient(config);const input = { // ListSnapshotBlocksRequest SnapshotId: "STRING_VALUE", // required NextToken: "STRING_VALUE", MaxResults: Number("int"), StartingBlockIndex: Number("int"),};const command = new ListSnapshotBlocksCommand(input);const response = await client.send(command);// { // ListSnapshotBlocksResponse// Blocks: [ // Blocks// { // Block// BlockIndex: Number("int"),// BlockToken: "STRING_VALUE",// },// ],// ExpiryTime: new Date("TIMESTAMP"),// VolumeSize: Number("long"),// BlockSize: Number("int"),// NextToken: "STRING_VALUE",// };
ListSnapshotBlocksCommandInput
ListSnapshotBlocksCommandOutput
input
response
config
AccessDeniedException (client fault)
You do not have sufficient access to perform this action.
InternalServerException (server fault)
An internal error has occurred.
RequestThrottledException (client fault)
The number of API requests has exceed the maximum allowed API request throttling limit.
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceQuotaExceededException (client fault)
Your current service quotas do not allow you to perform this action.
ValidationException (client fault)
The input fails to satisfy the constraints of the EBS direct APIs.
EBSServiceException
Base exception class for all service exceptions from EBS service.
Readonly
Static
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListSnapshotBlocksCommandInput
Returns
ListSnapshotBlocksCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault)
You do not have sufficient access to perform this action.
Throws
InternalServerException (server fault)
An internal error has occurred.
Throws
RequestThrottledException (client fault)
The number of API requests has exceed the maximum allowed API request throttling limit.
Throws
ResourceNotFoundException (client fault)
The specified resource does not exist.
Throws
ServiceQuotaExceededException (client fault)
Your current service quotas do not allow you to perform this action.
Throws
ValidationException (client fault)
The input fails to satisfy the constraints of the EBS direct APIs.
Throws
EBSServiceException
Base exception class for all service exceptions from EBS service.