Modifies the number of replicas or shards for data nodes in an instance.
Operation description
Request description
This API lets you modify the number of replicas or shards for data nodes in a specific instance. When you make a request, provide the instance ID. In the request body, specify the number of replicas (replica) or shards (partition). These parameters are optional, but you must specify at least one of them to update the instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ModifySearcherReplica |
update |
*Instance
|
None | None |
Request syntax
PUT /openapi/ha3/instances/{instanceId}/replica HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-test |
| body |
object |
No |
The request body. |
|
| replica |
integer |
No |
The number of replicas for a data node. |
2 |
| partition |
integer |
No |
The number of shards for a data node. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
e1eef569-1ff7-4bf8-acf7-1cecca9894ce |
| result |
object |
The result of the operation. This object is empty in the current version. |
Examples
Success response
JSON format
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": {
"test": "test",
"test2": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.