Queries the start iterator that is used to read data from a shard.

Request syntax

message GetShardIteratorRequest {
    required string stream_id = 1;
    required string shard_id = 2;
}           
Parameter Type Required Description
stream_id string Yes The ID of the stream.
shard_id string Yes The ID of the shard.

Response syntax

message GetShardIteratorResponse {
    required string shard_iterator = 1;
}            
Parameter Type Description
shard_iterator string The start iterator that is used to read data from the shard.

Use Tablestore SDKs

Tablestore SDK for Java: GetShardIterator