Splits a shard in the readwrite state.
Operation description
Usage notes
-
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
-
Each shard has an MD5 hash range, and each range is a left-closed, right-open interval. The interval is in the
[BeginKey,EndKey)format. A shard can be in the readwrite or readonly state. You can split a shard and merge shards. For more information, see Shard.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:SplitShard |
update |
*LogStore
|
|
None |
Request syntax
POST /logstores/{logstore}/shards/{shard}?action=split HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| logstore |
string |
Yes |
The name of the Logstore. |
logstorename |
| shard |
integer |
Yes |
The ID of the shard. |
0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
| key |
string |
No |
The position where the shard is split. |
ef000000000000000000000000000000 |
| shardCount |
integer |
No |
The number of new shards that are generated after splitting. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The shards that are returned. For example, if the shardCount parameter is set to 2, an array that consists of three shards is returned. The first shard is the original shard, and the last two shards are the new shards. |
||
| shard |
The shard information. |
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.