This API is used to add CNs, add shards, or scale up storage. Before calling this API:
POST https://{Endpoint}/v3/{project_id}/instances/{instance_id}/action
https://gaussdb.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/action
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
instance_id |
Yes |
Instance ID. |
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. |
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. |
{ "expand_cluster": { "coordinators": [ { "az_code": "eu-de-01" } ] } }
{ "expand_cluster": { "coordinators": [ { "az_code": "eu-de-01" }, { "az_code": "eu-de-01" }, { "az_code": "eu-de-01" } ] } }
{ "expand_cluster": { "shard": { "count": 1 } } }
{ "enlarge_volume": { "size": 400 } }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Task ID. This parameter is returned when your instance is billed at a pay-per-use basis. |
{ "job_id": "2b414788a6004883a02390e2eb0ea227" }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.