You can call this operation to modify the type and storage space of a specified node in an ApsaraDB for MongoDB sharded cluster instance.
Before you call this operation, make sure that you understand the billing methods and pricing of ApsaraDB for MongoDB.
This operation applies to sharded cluster instances only.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyNodeSpec |
The operation that you want to perform. Set the value to ModifyNodeSpec. |
NodeId | String | Yes | d-bpxxxxxxxx |
The ID of the shard or mongos node that you want to modify. You can call the DescribeDBInstanceAttribute operation to query the ID. Note If you set this parameter to the ID of a shard, you must also specify the NodeStorage parameter.
|
DBInstanceId | String | Yes | dds-bpxxxxxxxx |
The ID of the instance. |
NodeClass | String | No | dds.shard.standard |
The instance type of the shard or mongos node. For more information, see Instance types. Note You must specify this parameter or the NodeStorage parameter.
|
NodeStorage | Integer | No | 20 |
The storage space of the shard.
Note
|
ClientToken | String | No | ETnLKlblzczshOTUbOCzxxxxxxxxxx |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
AutoPay | Boolean | No | true |
Specifies whether to enable automatic payment. Valid values:
Default value: true. |
EffectiveTime | String | No | Immediately |
The time when the new settings take effect. Valid values:
Default value: Immediately. |
FromApp | String | No | OpenApi |
The source of the request. Valid values:
|
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. You can call the DescribeRegions operation to query the region ID. |
OrderType | String | No | UPGRADE |
The type of the order. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OrderId | String | 2033xxxxxxxxx |
The ID of the order. |
RequestId | String | EFFC5788-8BB5-41B5-9F15-9CFC5A0E8FCC |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=ModifyNodeSpec
&NodeId=d-bpxxxxxxxx
&DBInstanceId=dds-bpxxxxxxxx
&NodeClass=dds.shard.standard
&NodeStorage=20
&<Common request parameters>
Sample success responses
XML
format
<ModifyNodeSpecResponse>
<OrderId>2033xxxxxxxxx</OrderId>
<RequestId>EFFC5788-8BB5-41B5-9F15-9CFC5A0E8FCC</RequestId>
</ModifyNodeSpecResponse>
JSON
format
{
"OrderId": "2033xxxxxxxx",
"RequestId": "EFFC5788-8BB5-41B5-9F15-9CFC5A0E8FCC"
}
Error codes
For a list of error codes, visit the API Error Center.