Okuma-yazma durumundaki bir parçayı böler.
Operation description
Kullanım notları
-
Host, bir proje adından ve bir Simple Log Service uç noktasından oluşur. Host içinde bir proje belirtmeniz gerekir.
-
Her parçanın bir MD5 karma aralığı vardır ve her aralık soldan kapalı, sağdan açık bir aralıktır. Aralık
[BeginKey,EndKey)biçimindedir. Bir parça okuma-yazma veya salt okunur durumunda olabilir. Bir parçayı bölebilir ve parçaları birleştirebilirsiniz. Daha fazla bilgi için Parça konusuna bakın.
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 |
Logstore'un adı. |
logstorename |
| shard |
integer |
Yes |
Parçanın kimliği. |
0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Projenin adı. |
ali-test-project |
| key |
string |
No |
Parçanın bölündüğü konum. |
ef000000000000000000000000000000 |
| shardCount |
integer |
No |
Bölme işleminden sonra oluşturulan yeni parçaların sayısı. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
Döndürülen parçalar. Örneğin, shardCount parametresi 2 olarak ayarlanırsa, üç parçadan oluşan bir dizi döndürülür. İlk parça orijinal parçadır ve son iki parça yeni parçalardır. |
||
| shard |
The shard information. |
Examples
Success response
JSON format
[
{
"shardID": 0,
"status": "readwrite",
"inclusiveBeginKey": "00000000000000000000000000000000",
"exclusiveEndKey": "8000000000000000000000000000000",
"createTime": 1524222931
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.