Modifies the configurations of one or more Mongos or shard nodes in an ApsaraDB for MongoDB sharded cluster instance.
Operation description
Before you call 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.
When you perform batch upgrade or decrease the quota on multiple sharded cluster instances, the target specifications are subject to certain constraints. For example, for storage capacity expansion, the target capacity must be greater than or equal to the current capacity. If the specifications of multiple sharded cluster instances are inconsistent, the system randomly selects the specifications of one sharded cluster instance to construct the constraints, which may cause the upgrade or decrease the quota to fail. If the batch upgrade or decrease the quota process is not Normal, we recommend that you use the ModifyNodeSpec operation to perform an Upgrade/Downgrade on a single sharded cluster instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyNodeSpecBatch |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. You can call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The instance ID of the instance whose configurations you want to modify. |
dds-bp1337621e8f**** |
| NodesInfo |
string |
Yes |
The specifications of the Mongos or shard nodes to be modified. For more information, see Instance types. |
{"Shards":[{"DBInstanceClass":"dds.shard.mid","DBInstanceName":"d-bp14ae4572fd****","Storage":20},{"DBInstanceClass":"dds.shard.mid","DBInstanceName":"d-bp19f4f92dc5****","Storage":30}]} |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can use the client to generate the token, but you must ensure that it is unique among different requests. The token can contain a maximum of 64 ASCII characters and cannot contain non-ASCII characters. |
ETnLKlblzczshOTUbOCz**** |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
Default value: true. |
true |
| EffectiveTime |
string |
No |
The effective period of the configuration change. Valid values:
Note
Default value: Immediately. |
Immediately |
| OrderType |
string |
No |
The type of the configuration change. Valid values:
Note
This parameter is available only when the billing method of the instance is subscription. |
UPGRADE |
| CouponNo |
string |
No |
Specifies whether to use a coupon. Valid values:
|
default |
| BusinessInfo |
string |
No |
The business information. |
{“ActivityId":"000000000"} |
| TargetVswitchId |
string |
No |
The ID of the destination vSwitch when you migrate the instance across zones and change its configurations at the same time. Important This parameter is supported only for cloud disk instances. Note
|
vsw-xxxxxxxx |
| TargetHiddenZoneId |
string |
No |
The destination zone of the hidden node when you migrate the instance across zones and change its configurations at the same time. Important This parameter is supported only for cloud disk instances. Important The value of this parameter cannot be the same as the value of the TargetZoneId or TargetSecondaryZoneId parameter. Note
|
cn-hangzhou-e |
| TargetZoneId |
string |
No |
Specifies whether to automatically align the primary node to the primary zone after operations such as configuration changes for a multi-zone instance. If you choose not to align the node, one primary/secondary switchover (transient connection) is prevented. Default value: true. |
cn-hangzhou-h |
| TargetSecondaryZoneId |
string |
No |
The destination zone of the primary node when you migrate the instance across zones and change its configurations at the same time. Important This parameter is supported only for cloud disk instances. Important The value of this parameter cannot be the same as the value of the TargetSecondaryZoneId or TargetHiddenZoneId parameter. Note
|
cn-hangzhou-h |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
The order ID. |
21012719476**** |
| RequestId |
string |
The request ID. |
0637BC25-6895-5500-871F-1127CA34**** |
Examples
Success response
JSON format
{
"OrderId": "21012719476****",
"RequestId": "0637BC25-6895-5500-871F-1127CA34****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | GadInstanceNotSupport | GAD Instance doesn't support the operation. | The operation is not supported by the GAD instance. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.