Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Long running request:

Rebalance

rebalance Rebalance request and response:

Code Block
POST https://localhost/operations/rebalance

HTTP/1.1 202 Accepted
Location: https://localhost/operations/1233612356

subsequent Subsequent rebalance request would get the same result: (if a rebalance is already going on, the request is simply accepted, and returns the running rebalance's operation status link)

if If the previous rebalance request is already finished, a new rebalance will be triggered, and a new operation status link will be sent back to the user


status Status request for a running operation:http GET  

Code Block
GET https://localhost/operations/

...

response of running rebalance: 

12356

HTTP/1.1 200 OK

...



{
  "operationType": "rebalance",
  "startTime": "1287364876",
  "status": "

...

running",
  "cancelMethod": "delete",
  "cancelLink" : "/operations/12356"
}



response Response of a finished rebalance : 200 Ok,

{ "operationType": "rebalance", "startTime": "1287364876", "endTime" : "232353232", "status": "successful" }

completed rebalance operation:

Code Block
GET https://localhost/operations/12356

HTTP/1.1 200 OK

{
  
Code Block
{ "operationType": "rebalance",
  "startTime": "1287364876",
  "endTime" : "232353232",
  "status": "successful" 
}


cancel request: http DELETE https://localhost/operations/12336

...