...
API | Status Code | Request Body | Response Body |
---|
Permission Required: DATA:MANAGE | 202 |
Code Block |
---|
language | yml |
---|
title | Sample Request |
---|
| {
"excludeRegions": [],
"includeRegions": [],
"simulate": false
}
|
|
Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": "ACCEPTED",
"statusMessage": "async operation started (GET uri to check status)",
"uri": "/management/experimental/operations/rebalance/8a70d6c4",
"operationStart": "2019-07-25T10:17:42.004Z"
}
|
|
...
List Rebalance
...
History
API | Status Code | Response Body |
---|
|
/{id}Method: GET Headers: Authorization Permission Required: DATA:MANAGE | 200 |
Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": "OK",
"result": [
{
"statusCode": "OK",
"statusMessage": "finished successfully",
"uri": "/management/experimental/operations/rebalance/8a70d6c4",
"operationStart": "2019-07-25T10:17:42.004Z",
"operationEnded": "2019-07-25T10:17:42.060Z" |
|
,"result":{
"rebalanceRegionResults": [ regionNametestRegion2 bucketCreateBytes0 bucketCreateTimeInMilliseconds0"/management/experimental/operations/rebalance/a7d6204c",
|
|
bucketCreatesCompleted0,
"bucketTransferBytes": 0"2019-07-26T04:57:22.534Z",
}
]
}
|
|
Get Rebalance Status
API | Status Code | Response Body |
---|
Permission Required: DATA:MANAGE | 200 |
Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": "OK",
"statusMessage": "finished successfully",
"operationStart": "2019-07-25T10:17:42.004Z",
"operationEnded": "2019-07-25T10:17:42.060Z",
"result": {
"rebalanceRegionResults": [ "bucketTransferTimeInMilliseconds": 0,
"bucketTransfersCompleted": 0,
"primaryTransferTimeInMilliseconds": 0,
"primaryTransfersCompleted": 0,
"timeInMilliseconds": 17
},
{
"regionName": "testRegion1testRegion2",
"bucketCreateBytes": 0,
"bucketCreateTimeInMilliseconds": 0,
"bucketCreatesCompleted": 0,
"bucketTransferBytes": 0,
"bucketTransferTimeInMilliseconds": 0,
"bucketTransfersCompleted": 0,
"primaryTransferTimeInMilliseconds": 0,
"primaryTransfersCompleted": 0,
"timeInMilliseconds": 517
},
]{
}
}
|
| 404 | Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCoderegionName": "ENTITY_NOT_FOUNDtestRegion1",
"statusMessage "bucketCreateBytes": "Operation id = 12345678 not found"
}
|
| 500 | Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": "ERROR"0,
"bucketCreateTimeInMilliseconds": 0,
"statusMessage": "rebalance returned info "bucketCreatesCompleted": Distributed0,
system has no regions that can be rebalanced"
}
|
|
List Rebalance History
API | Status Code | Response Body |
---|
Permission Required: DATA:MANAGE | 200 | Code Block |
---|
language | yml |
---|
title | Success Response |
---|
|
{
"statusCode": "OK",
"result": [
{"bucketTransferBytes": 0,
"bucketTransferTimeInMilliseconds": 0,
"bucketTransfersCompleted": 0,
"primaryTransferTimeInMilliseconds": 0,
" |
|
statusCodeprimaryTransfersCompleted": |
|
"OK"statusMessage"finished successfully",
"uri": "/management/experimental/operations/rebalance/8a70d6c4",
"operationStart": "2019-07-25T10:17:42.004Z",
"operationEnded": "2019-07-25T10:17:42.060Z"
},
{
|
| 404 |
Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": "ENTITY_NOT_FOUND",
"statusMessage": "Operation id = 12345678 not found"
}
|
|
| 500 |
Code Block |
---|
language | yml |
---|
title | Success Response |
---|
| {
"statusCode": " |
|
IN_PROGRESS in progress",
"uri": "/management/experimental/operations/rebalance/a7d6204c",
"operationStart": "2019-07-26T04:57:22.534Z",
}
]
}
rebalance returned info: Distributed system has no regions that can be rebalanced"
}
|
|