All Products
Search
Document Center

:ListShards

Last Updated:Jul 25, 2024

Queries a list of shards in a Logstore.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /logstores/{logstore}/shards

Request parameters

ParameterTypeRequiredDescriptionExample
projectstringYes

The name of the project.

ali-test-project
logstorestringYes

The name of the Logstore.

test-logstore

Response parameters

ParameterTypeDescriptionExample
array

The shards in the Logstore.

shard

The shard struct.

Examples

Sample success responses

JSONformat

[
  {
    "shardID": 0,
    "status": "readwrite",
    "inclusiveBeginKey": "00000000000000000000000000000000",
    "exclusiveEndKey": "8000000000000000000000000000000",
    "serverIp": "203.0.113.10",
    "createTime": 1524222931
  }
]

Error codes

For a list of error codes, visit the Service error codes.