Queries a list of shards in a Logstore.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListShards |
get |
*LogStore
|
|
None |
Request syntax
GET /logstores/{logstore}/shards HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| logstore |
string |
Yes |
The name of the Logstore. |
test-logstore |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The shards in the Logstore. |
||
| shard |
The shard struct. |
Examples
Success response
JSON format
[
{
"shardID": 0,
"status": "readwrite",
"inclusiveBeginKey": "00000000000000000000000000000000",
"exclusiveEndKey": "8000000000000000000000000000000",
"serverIp": "203.0.113.10",
"createTime": 1524222931
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.