forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
16 KiB
16 KiB
Adding Shards
Function
This API is used to add shards.
- Learn how to authenticate this API.
- Understand the API in Using APIs.
- Obtain the required region and endpoint.
Constraints
- The shard growth increment ranges from 1 to 64.
- The maximum number of shards is 256.
URI
- URI format
POST https://{Endpoint}/opengauss/v3/{project_id}/instances/{instance_id}/action
- Example
https://gaussdb.eu-de.otc.t-systems.com/opengauss/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/action
- Example request
{ "expand_cluster": { "shard":{ "count":1 } } }
Response
- Normal response
Table 4 Parameter description Name
Type
Description
job_id
String
Task ID.
- Example normal response
- Example response
{ "job_id": "2b414788a6004883a02390e2eb0ea227" }
- Example response
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Parent topic: DB Instance Management