Distributed

Update cluster setup

POST
Updates the cluster configuration for a specified collection.

Path parameters

collection_namestringRequired
Name of the collection on which to to apply the cluster update operation

Query parameters

timeoutintegerOptional
Wait for operation commit timeout in seconds. If timeout is reached - request will return with service error.

Request

This endpoint expects a union.
Move Shard Operationobject
OR
Replicate Shard Operationobject
OR
Abort Transfer Operationobject
OR
Drop Replica Operationobject
OR
Create Sharding Key Operationobject
OR
Drop Sharding Key Operationobject
OR
Restart Transfer Operationobject

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
booleanOptional
POST
1curl -X POST http://localhost:6333/collections/collection_name/cluster \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "move_shard": {
6 "shard_id": 1,
7 "to_peer_id": 1,
8 "from_peer_id": 1
9 }
10}'
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": true
5}