Adds mongos or shard nodes for ApsaraDB for MongoDB sharded cluster instances in batches.
Operation Description
Make sure that you fully understand the billing methods and pricing of ApsaraDB for MongoDB before you call this operation.
This operation applies only to sharded cluster instances.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the generated token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. | ETnLKlblzczshOTUbOCz**** |
FromApp | string | No | The source of the request. Valid values:
| OpenApi |
AutoPay | boolean | No | Specifies whether to enable automatic payment. Default value: true. Valid values:
| true |
DBInstanceId | string | Yes | The ID of the instance for which you want to add nodes. | dds-bp18b0934e70**** |
NodesInfo | string | Yes | The specifications of the mongos or shard node that you want to add. For more information, see Instance types. NoteUp to 32 mongos or shard nodes are supported for each sharded cluster instance. | {"DBInstanceId":"dds-1ud73a59b6fa****","NodesInfo":"{\"Shards\":[{\"DBInstanceClass\":\"dds.shard.mid\",\"Storage\":10}]}"} |
CouponNo | string | No | The coupon code. Default value: | youhuiquan_promotion_option_id_for_blank |
BusinessInfo | string | No | The business information. | {“ActivityId":"000000000"} |
ShardDirect | boolean | No | Specifies whether to apply for an endpoint for the shard node. Default value: false. Valid values:
| false |
AccountName | string | No | The username of the account. The username must meet the following requirements:
Note
| ceshi |
AccountPassword | string | No | The password of the account. The password must meet the following requirements:
NoteIf you apply for an endpoint for a shard node, the password cannot be changed. | 123+abc |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "55D41A94-1ACE-55E8-8BC7-67D622E7****",
"OrderId": "50179021707****",
"NodeId": "d-bp18f7d6b6a7****"
}
Error codes
For a list of error codes, visit the Service error codes.