Skip to content

Get Snapshot Block

ebs_get_snapshot_block R Documentation

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

Description

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.

Usage

ebs_get_snapshot_block(SnapshotId, BlockIndex, BlockToken)

Arguments

SnapshotId

[required] 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.

BlockIndex

[required] 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.

BlockToken

[required] The block token of the block from which to get data. You can obtain the BlockToken by running the list_changed_blocks or list_snapshot_blocks operations.

Value

A list with the following syntax:

list(
  DataLength = 123,
  BlockData = raw,
  Checksum = "string",
  ChecksumAlgorithm = "SHA256"
)

Request syntax

svc$get_snapshot_block(
  SnapshotId = "string",
  BlockIndex = 123,
  BlockToken = "string"
)