This API is used to add nodes for a specified cluster instance.
POST https://{Endpoint}/v3/{project_id}/instances/{instance_id}/enlarge
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 |
---|---|---|---|
type |
Yes |
String |
Specifies the object to be scaled.
|
spec_code |
Yes |
String |
Specifies the resource specification code. For details about how to obtain the resource specification code, see the flavors.spec_code parameter in Querying Database Specifications. |
num |
Yes |
String |
Specifies the number of mongos or shard nodes to be added. A cluster instance supports up to 32 mongos nodes and 32 shard nodes. |
volume |
No |
Object |
Specifies the volume information. For more information, see Table 3.
|
POST https://dds.eu-de.otc.t-systems.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/enlarge
{ "type": "mongos", "spec_code":"dds.mongodb.c3.medium.4.mongos", "num": 1 }
{ "type": "shard", "spec_code":"dds.mongodb.c3.medium.4.shard", "num": 1, "volume": { "size": 330 } }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Indicates the task ID. |
{ "job_id": "4008c8914b624785a02ab7966d4d" }
For more information, see Error Code.