This API is used to modify the instance specifications.
Services will be interrupted for 5 to 10 minutes when you modify DB instance specifications. Exercise caution when performing this operation.
POST https://{Endpoint}/v3/{project_id}/instances/{instance_id}/resize
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
instance_id |
Yes |
Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
resize |
Yes |
Object |
Specifies the specification information. For more information, see Table 3. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
target_type |
No |
String |
Specifies the object type:
|
target_id |
Yes |
String |
Specifies the ID of the node or instance whose specifications are to be modified. You can obtain the ID by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.
|
target_spec_code |
Yes |
String |
Specifies the resource specification code of the new specification. For details about how to obtain the value, see the response values of flavors.spec_code in Querying Database Specifications. |
POST https://dds.eu-de.otc.t-systems.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/resize
{ "resize": { "target_type": "mongos", "target_id": "a742c13a284949adad177672e8a0f01cno02", "target_spec_code": "dds.mongodb.c3.large.4.mongos" } }
Modify the shard node specifications.
{ "resize": { "target_type": "shard", "target_id": "aeeb40a704904977ad78993d138ec942gr02", "target_spec_code": "dds.momgodb.c3.large.4.shard" } }
Modify the config node specifications.
{ "resize": { "target_type": "config", "target_id": "10a1c330537b42c1a9b3f7a5ebcda35egr02", "target_spec_code": "dds.momgodb.c3.xlarge.2.config" } }
{ "resize": { "target_id": "aeeb40a704904977ad78993d138ec942in02", "target_spec_code": "dds.mongodb.c3.medium.4.repset" } }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Indicates the task ID. |
{ "job_id": "3711e2ad-5787-49bc-a47f-3f0b066af9f5" }
For more information, see Error Code.