Adding CNs and DN shards and Scaling up Storage
Function
This API is used to add CNs, add DN shards, and scale up storage. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
Constraints
- Scaling up storage
- The storage space must be a multiple of (Number of shards x 4 GB).
- All nodes must be available.
URI
POST https://{Endpoint}/v3/{project_id}/instances/{instance_id}/action
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Explanation: Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Restrictions: None Value range: The value can contain 32 characters. Only letters and digits are allowed. Default value: None |
instance_id |
Yes |
Instance ID. |
Request
Name |
Mandatory |
Type |
Description |
---|---|---|---|
expand_cluster |
No |
Object |
This parameter is mandatory when you add CNs or shards. For details, see Table 3. |
enlarge_volume |
No |
Object |
New storage space after scaling up. This parameter is mandatory for scaling up storage. For details, see Table 6. |
is_auto_pay |
No |
String |
Whether the order will be automatically paid after yearly/monthly instances are created. This parameter does not affect the payment mode of automatic renewal.
|
Name |
Mandatory |
Type |
Description |
---|---|---|---|
coordinators |
No |
Array of Coordinators objects |
This parameter is mandatory for adding CNs. For details, see Table 4. |
shard |
No |
Shard object |
This parameter is mandatory for adding shards. For details, see Table 5. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
az_code |
Yes |
String |
AZs to which CNs are to be added. If multiple CNs need to be added, enter the AZ where each CN is located. For details about AZs in different regions, see Regions and Endpoints. |
Response Parameters
Name |
Type |
Description |
---|---|---|
job_id |
String |
Task ID. This parameter is returned when your instance is billed at a pay-per-use basis. |
order_id |
String |
Order ID. This parameter is returned only when your instance is billed at a yearly/monthly basis. |
Example Request
- Adding a CN
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/action { "expand_cluster": { "coordinators": [ { "az_code": "az_code" } ] } }
- Adding multiple CNs
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/action { "expand_cluster": { "coordinators": [ { "az_code": "az_code" }, { "az_code": "az_code" }, { "az_code": "az_code" } ] } }
- Adding a DN shard
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/action { "expand_cluster": { "shard": { "count": 1 } } }
- Scaling up storage to 400 GB
POST https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/action { "enlarge_volume": { "size": 400 } }
Example Response
{ "job_id": "2b414788a6004883a02390e2eb0ea227" }
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot