v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465044.2 KB

Returns the data in a block in an Amazon Elastic Block Store snapshot.

get/snapshots/{snapshotId}/blocks/{blockIndex}#blockToken

Path parameters

snapshotIdstring required
<p>The ID of the snapshot containing the block from which to get data.</p> <important> <p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebsapis-using-encryption.html"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> </important>
blockIndexinteger required

The block index of the block in which to read the data. A block index is a logical index in units of <code>512</code> 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/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.

Query parameters

blockTokenstring required

The block token of the block from which to get data. You can obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.

Response

Success

BlockDatastring password

The data content of the block.