Evaluate resource availability before purchasing a new instance or changing the configuration of an existing instance.
Operation description
Evaluate resource availability for MongoDB replica set instances and sharded cluster instances. Supported scenarios include purchasing a new instance, changing an instance configuration, and adding nodes to a sharded cluster.
You can call this operation up to 200 times per minute. Calls that exceed this limit are subject to traffic throttling.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:EvaluateResource |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region. For more information, see DescribeRegions. |
cn-hangzhou |
| ZoneId |
string |
Yes |
The ID of the zone. For more information, see DescribeRegions. |
cn-hangzhou-h |
| Engine |
string |
No |
The database engine. Set the value to MongoDB. |
MongoDB |
| EngineVersion |
string |
Yes |
The database engine version. |
4.2 |
| DBInstanceClass |
string |
No |
The instance type. Note
This parameter is required when you evaluate resources for a replica set instance. For details about instance types, see Instance types. |
dds.mongo.mid |
| ShardsInfo |
string |
No |
The shard information of the sharded cluster. This parameter is required when you evaluate resources for a sharded cluster instance. To evaluate resources for a new sharded cluster instance, specify the instance type for each shard in a JSON string. Example:
The parameters in the example are described as follows:
To evaluate resources for upgrading or downgrading a sharded cluster instance, specify only the node information in a JSON string. Example:
The parameters in the example are described as follows:
|
{"NodeId": "d-bp147c4d9ca7****", "NodeClass": "dds.shard.standard"} |
| DBInstanceId |
string |
No |
The instance ID. This parameter is required when you evaluate resources for an instance upgrade or downgrade. |
dds-bp14bf67a76d**** |
| ReplicationFactor |
string |
No |
The number of nodes in the instance.
|
3 |
| ReadonlyReplicas |
string |
No |
The number of read-only nodes in the instance. Valid values: 1 to 5. Note
This parameter is not required for standalone instances. |
1 |
| Storage |
string |
No |
The storage space of the replica set. Unit: GB. Note
This parameter is required if the instance uses cloud disks. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DBInstanceAvailable |
string |
Indicates whether resources are available in the current region. Valid values:
|
1 |
| EngineVersion |
string |
The database engine version. |
4.0 |
| RequestId |
string |
The request ID. |
AE2DE465-E45F-481F-ABD8-37D64173**** |
| Engine |
string |
The database engine. The value is fixed to MongoDB. |
MongoDB |
Examples
Success response
JSON format
{
"DBInstanceAvailable": "1",
"EngineVersion": "4.0",
"RequestId": "AE2DE465-E45F-481F-ABD8-37D64173****",
"Engine": "MongoDB"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.