CreateNodeBatch
Adds multiple Mongos and shard nodes to an ApsaraDB for MongoDB sharded cluster instance.
Operation description
Before calling this operation, make sure that you fully understand the billing methods and pricing of ApsaraDB for MongoDB.
This operation is applicable only to ApsaraDB for MongoDB sharded cluster instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateNodeBatch |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can generate the value on the client side. The value must be unique across different requests and can be up to 64 ASCII characters in length. It cannot contain non-ASCII characters. |
ETnLKlblzczshOTUbOCz**** |
| FromApp |
string |
No |
Specifies whether to perform a dry run on the request. Valid values:
|
OpenApi |
| AutoPay |
boolean |
No |
The source of the request. Valid values:
|
OpenApi |
| DBInstanceId |
string |
Yes |
Specifies whether to enable automatic payment. Valid values:
|
true |
| NodesInfo |
string |
Yes |
The instance ID. |
dds-bp18b0934e70**** |
| CouponNo |
string |
No |
The specifications of the Mongos or shard nodes to be added. For more information about the specifications, see Instance specifications. Note
By default, a sharded cluster instance supports up to 32 Mongos nodes and 32 shard nodes. |
{"Shards":[{"DBInstanceClass":"mdb.shard.4x.large.d","Storage":20}]} |
| BusinessInfo |
string |
No |
Specifies whether to use a coupon. Valid values:
|
default |
| ShardDirect |
boolean |
No |
The business information. |
{“ActivityId":"000000000"} |
| AccountName |
string |
No |
Specifies whether to apply for a direct connection endpoint for the shard node. Valid values:
|
false |
| AccountPassword |
string |
No |
The username of the account. The name must meet the following requirements:
Note
|
ceshi |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NodeId |
string |
The ID of the newly added Mongos or shard node. |
d-bp18f7d6b6a7**** |
| OrderId |
string |
The order ID. |
50179021707**** |
| RequestId |
string |
The request ID. |
55D41A94-1ACE-55E8-8BC7-67D622E7**** |
Examples
Success response
JSON format
{
"NodeId": "d-bp18f7d6b6a7****",
"OrderId": "50179021707****",
"RequestId": "55D41A94-1ACE-55E8-8BC7-67D622E7****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SSLNotSupportAddNode | Instance with SSL certificate can't add node, please contact us to solve this problem. | SSL encryption instances do not allow nodes to be added. If you need to, contact us to solve the problem. |
| 400 | ErrorInsufficientResource | There is not enough resource for your operation, requestId: %s. | There is not enough resource for your operation, requestId: %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.