{ "version": "2.0", "metadata": { "apiVersion": "2019-11-02", "endpointPrefix": "ebs", "jsonVersion": "1.1", "protocol": "rest-json", "serviceAbbreviation": "Amazon EBS", "serviceFullName": "Amazon Elastic Block Store", "serviceId": "EBS", "signatureVersion": "v4", "uid": "ebs-2019-11-02" }, "operations": { "CompleteSnapshot": { "name": "CompleteSnapshot", "http": { "method": "POST", "requestUri": "/snapshots/completion/{snapshotId}", "responseCode": 202 }, "input": { "shape": "CompleteSnapshotRequest" }, "output": { "shape": "CompleteSnapshotResponse" }, "errors": [ { "shape": "AccessDeniedException" }, { "shape": "ValidationException" }, { "shape": "ResourceNotFoundException" }, { "shape": "RequestThrottledException" }, { "shape": "ServiceQuotaExceededException" }, { "shape": "InternalServerException" } ], "documentation": "
Seals and completes the snapshot after all of the required blocks of data have been written to it. Completing the snapshot changes the status to completed
. You cannot write new blocks to a snapshot after it has been completed.
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.
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.
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.
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.
Writes a block of data to a snapshot. If the specified block contains data, the existing data is overwritten. The target snapshot must be in the pending
state.
Data written to a snapshot must be aligned with 512-KiB sectors.
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.
Creates a new Amazon EBS snapshot. The new snapshot enters the pending
state after the request completes.
After creating the snapshot, use PutSnapshotBlock to write blocks of data to the 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.
The block index.
" }, "BlockToken": { "shape": "BlockToken", "documentation": "The block token for the block index.
" } }, "documentation": "A block of data in an Amazon Elastic Block Store snapshot.
" }, "BlockData": { "type": "blob", "sensitive": true, "streaming": true }, "BlockIndex": { "type": "integer", "min": 0 }, "BlockSize": { "type": "integer" }, "BlockToken": { "type": "string", "max": 256, "pattern": "^[A-Za-z0-9+/=]+$" }, "Blocks": { "type": "list", "member": { "shape": "Block" }, "sensitive": true }, "Boolean": { "type": "boolean" }, "ChangedBlock": { "type": "structure", "members": { "BlockIndex": { "shape": "BlockIndex", "documentation": "The block index.
" }, "FirstBlockToken": { "shape": "BlockToken", "documentation": "The block token for the block index of the FirstSnapshotId
specified in the ListChangedBlocks
operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.
The block token for the block index of the SecondSnapshotId
specified in the ListChangedBlocks
operation.
A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.
", "sensitive": true }, "ChangedBlocks": { "type": "list", "member": { "shape": "ChangedBlock" } }, "ChangedBlocksCount": { "type": "integer", "min": 0 }, "Checksum": { "type": "string", "max": 64, "pattern": "^[A-Za-z0-9+/=]+$" }, "ChecksumAggregationMethod": { "type": "string", "enum": [ "LINEAR" ], "max": 32, "pattern": "^[A-Za-z0-9]+$" }, "ChecksumAlgorithm": { "type": "string", "enum": [ "SHA256" ], "max": 32, "pattern": "^[A-Za-z0-9]+$" }, "CompleteSnapshotRequest": { "type": "structure", "required": [ "SnapshotId", "ChangedBlocksCount" ], "members": { "SnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the snapshot.
", "location": "uri", "locationName": "snapshotId" }, "ChangedBlocksCount": { "shape": "ChangedBlocksCount", "documentation": "The number of blocks that were written to the snapshot.
", "location": "header", "locationName": "x-amz-ChangedBlocksCount" }, "Checksum": { "shape": "Checksum", "documentation": "An aggregated Base-64 SHA256 checksum based on the checksums of each written block.
To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.
", "location": "header", "locationName": "x-amz-Checksum" }, "ChecksumAlgorithm": { "shape": "ChecksumAlgorithm", "documentation": "The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
The aggregation method used to generate the checksum. Currently, the only supported aggregation method is LINEAR
.
The status of the snapshot.
" } } }, "DataLength": { "type": "integer" }, "Description": { "type": "string", "max": 255, "pattern": "^[\\S\\s]+$" }, "GetSnapshotBlockRequest": { "type": "structure", "required": [ "SnapshotId", "BlockIndex", "BlockToken" ], "members": { "SnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the snapshot containing the block from which to get data.
If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
The block index of the block in which to read the data. A block index is a logical index in units of 512
KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/524288
). The logical offset of the data must be 512
KiB aligned.
The block token of the block from which to get data. You can obtain the BlockToken
by running the ListChangedBlocks
or ListSnapshotBlocks
operations.
The size of the data in the block.
", "location": "header", "locationName": "x-amz-Data-Length" }, "BlockData": { "shape": "BlockData", "documentation": "The data content of the block.
" }, "Checksum": { "shape": "Checksum", "documentation": "The checksum generated for the block, which is Base64 encoded.
", "location": "header", "locationName": "x-amz-Checksum" }, "ChecksumAlgorithm": { "shape": "ChecksumAlgorithm", "documentation": "The algorithm used to generate the checksum for the block, such as SHA256.
", "location": "header", "locationName": "x-amz-Checksum-Algorithm" } }, "payload": "BlockData" }, "IdempotencyToken": { "type": "string", "max": 255, "pattern": "^[\\S]+$" }, "KmsKeyArn": { "type": "string", "max": 2048, "min": 1, "pattern": "arn:aws[a-z\\-]*:kms:.*:[0-9]{12}:key/.*", "sensitive": true }, "ListChangedBlocksRequest": { "type": "structure", "required": [ "SecondSnapshotId" ], "members": { "FirstSnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the first snapshot to use for the comparison.
The FirstSnapshotID
parameter must be specified with a SecondSnapshotId
parameter; otherwise, an error occurs.
The ID of the second snapshot to use for the comparison.
The SecondSnapshotId
parameter must be specified with a FirstSnapshotID
parameter; otherwise, an error occurs.
The token to request the next page of results.
If you specify NextToken, then StartingBlockIndex is ignored.
", "location": "querystring", "locationName": "pageToken" }, "MaxResults": { "shape": "MaxResults", "documentation": "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 null
when there are no more blocks to return.
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.
", "location": "querystring", "locationName": "startingBlockIndex" } } }, "ListChangedBlocksResponse": { "type": "structure", "members": { "ChangedBlocks": { "shape": "ChangedBlocks", "documentation": "An array of objects containing information about the changed blocks.
" }, "ExpiryTime": { "shape": "TimeStamp", "documentation": "The time when the BlockToken
expires.
The size of the volume in GB.
" }, "BlockSize": { "shape": "BlockSize", "documentation": "The size of the blocks in the snapshot, in bytes.
" }, "NextToken": { "shape": "PageToken", "documentation": "The token to use to retrieve the next page of results. This value is null when there are no more results to return.
" } } }, "ListSnapshotBlocksRequest": { "type": "structure", "required": [ "SnapshotId" ], "members": { "SnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the snapshot from which to get block indexes and block tokens.
", "location": "uri", "locationName": "snapshotId" }, "NextToken": { "shape": "PageToken", "documentation": "The token to request the next page of results.
If you specify NextToken, then StartingBlockIndex is ignored.
", "location": "querystring", "locationName": "pageToken" }, "MaxResults": { "shape": "MaxResults", "documentation": "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 null
when there are no more blocks to return.
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.
", "location": "querystring", "locationName": "startingBlockIndex" } } }, "ListSnapshotBlocksResponse": { "type": "structure", "members": { "Blocks": { "shape": "Blocks", "documentation": "An array of objects containing information about the blocks.
" }, "ExpiryTime": { "shape": "TimeStamp", "documentation": "The time when the BlockToken
expires.
The size of the volume in GB.
" }, "BlockSize": { "shape": "BlockSize", "documentation": "The size of the blocks in the snapshot, in bytes.
" }, "NextToken": { "shape": "PageToken", "documentation": "The token to use to retrieve the next page of results. This value is null when there are no more results to return.
" } } }, "MaxResults": { "type": "integer", "max": 10000, "min": 100 }, "OwnerId": { "type": "string", "max": 24, "min": 1, "pattern": "\\S+" }, "PageToken": { "type": "string", "max": 256, "pattern": "^[A-Za-z0-9+/=]+$" }, "Progress": { "type": "integer", "max": 100, "min": 0 }, "PutSnapshotBlockRequest": { "type": "structure", "required": [ "SnapshotId", "BlockIndex", "BlockData", "DataLength", "Checksum", "ChecksumAlgorithm" ], "members": { "SnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the snapshot.
If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide..
The block index of the block in which to write the data. A block index is a logical index in units of 512
KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/524288
). The logical offset of the data must be 512
KiB aligned.
The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
" }, "DataLength": { "shape": "DataLength", "documentation": "The size of the data to write to the block, in bytes. Currently, the only supported size is 524288
bytes.
Valid values: 524288
The progress of the write process, as a percentage.
", "location": "header", "locationName": "x-amz-Progress" }, "Checksum": { "shape": "Checksum", "documentation": "A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
", "location": "header", "locationName": "x-amz-Checksum" }, "ChecksumAlgorithm": { "shape": "ChecksumAlgorithm", "documentation": "The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
The SHA256 checksum generated for the block data by Amazon EBS.
", "location": "header", "locationName": "x-amz-Checksum" }, "ChecksumAlgorithm": { "shape": "ChecksumAlgorithm", "documentation": "The algorithm used by Amazon EBS to generate the checksum.
", "location": "header", "locationName": "x-amz-Checksum-Algorithm" } } }, "SSEType": { "type": "string", "enum": [ "sse-ebs", "sse-kms", "none" ] }, "SnapshotId": { "type": "string", "max": 64, "min": 1, "pattern": "^snap-[0-9a-f]+$" }, "StartSnapshotRequest": { "type": "structure", "required": [ "VolumeSize" ], "members": { "VolumeSize": { "shape": "VolumeSize", "documentation": "The size of the volume, in GiB. The maximum size is 65536
GiB (64 TiB).
The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.
You can't specify ParentSnapshotId and Encrypted in the same request. If you specify both parameters, the request fails with ValidationException
.
The encryption status of the snapshot depends on the values that you specify for Encrypted, KmsKeyArn, and ParentSnapshotId, and whether your Amazon Web Services account is enabled for encryption by default. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
If you specify an encrypted parent snapshot, you must have permission to use the KMS key that was used to encrypt the parent snapshot. For more information, see Permissions to use Key Management Service keys in the Amazon Elastic Compute Cloud User Guide.
The tags to apply to the snapshot.
" }, "Description": { "shape": "Description", "documentation": "A description for the snapshot.
" }, "ClientToken": { "shape": "IdempotencyToken", "documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
For more information, see Idempotency for StartSnapshot API in the Amazon Elastic Compute Cloud User Guide.
", "idempotencyToken": true }, "Encrypted": { "shape": "Boolean", "documentation": "Indicates whether to encrypt the snapshot.
You can't specify Encrypted and ParentSnapshotId in the same request. If you specify both parameters, the request fails with ValidationException
.
The encryption status of the snapshot depends on the values that you specify for Encrypted, KmsKeyArn, and ParentSnapshotId, and whether your Amazon Web Services account is enabled for encryption by default. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
To create an encrypted snapshot, you must have permission to use the KMS key. For more information, see Permissions to use Key Management Service keys in the Amazon Elastic Compute Cloud User Guide.
The Amazon Resource Name (ARN) of the Key Management Service (KMS) key to be used to encrypt the snapshot.
The encryption status of the snapshot depends on the values that you specify for Encrypted, KmsKeyArn, and ParentSnapshotId, and whether your Amazon Web Services account is enabled for encryption by default. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
To create an encrypted snapshot, you must have permission to use the KMS key. For more information, see Permissions to use Key Management Service keys in the Amazon Elastic Compute Cloud User Guide.
The amount of time (in minutes) after which the snapshot is automatically cancelled if:
No blocks are written to the snapshot.
The snapshot is not completed after writing the last block of data.
If no value is specified, the timeout defaults to 60
minutes.
The description of the snapshot.
" }, "SnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the snapshot.
" }, "OwnerId": { "shape": "OwnerId", "documentation": "The Amazon Web Services account ID of the snapshot owner.
" }, "Status": { "shape": "Status", "documentation": "The status of the snapshot.
" }, "StartTime": { "shape": "TimeStamp", "documentation": "The timestamp when the snapshot was created.
" }, "VolumeSize": { "shape": "VolumeSize", "documentation": "The size of the volume, in GiB.
" }, "BlockSize": { "shape": "BlockSize", "documentation": "The size of the blocks in the snapshot, in bytes.
" }, "Tags": { "shape": "Tags", "documentation": "The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
" }, "ParentSnapshotId": { "shape": "SnapshotId", "documentation": "The ID of the parent snapshot.
" }, "KmsKeyArn": { "shape": "KmsKeyArn", "documentation": "The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the snapshot.
" }, "SseType": { "shape": "SSEType", "documentation": "Reserved for future use.
" } } }, "Status": { "type": "string", "enum": [ "completed", "pending", "error" ], "max": 32 }, "Tag": { "type": "structure", "members": { "Key": { "shape": "TagKey", "documentation": "The key of the tag.
" }, "Value": { "shape": "TagValue", "documentation": "The value of the tag.
" } }, "documentation": "Describes a tag.
" }, "TagKey": { "type": "string", "max": 127, "pattern": "^[\\S\\s]+$" }, "TagValue": { "type": "string", "max": 255, "pattern": "^[\\S\\s]*$" }, "Tags": { "type": "list", "member": { "shape": "Tag" } }, "TimeStamp": { "type": "timestamp" }, "Timeout": { "type": "integer", "max": 4320, "min": 10 }, "VolumeSize": { "type": "long", "min": 1 } }, "documentation": "You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to your snapshots, read data on your snapshots, and identify the differences or changes between two snapshots. If you’re an independent software vendor (ISV) who offers backup services for Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on your Amazon EBS volumes through snapshots. This can be done without having to create new volumes from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.
You can create incremental snapshots directly from data on-premises into volumes and the cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can write your on-premises data to an snapshot during a disaster. Then after recovery, you can restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and maintain complex mechanisms to copy data to and from Amazon EBS.
This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see Accessing the Contents of an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas for the EBS direct APIs, see Amazon Elastic Block Store Endpoints and Quotas in the Amazon Web Services General Reference.
" }