DescribeAvailableResource
Queries the list of instance types available for sale in a specified zone, which reflects product sales constraints rather than real-time inventory.
Operation description
This operation returns product sales constraint information, which includes the allowed values for engines, instance types, and storage types in a specified region or zone. This information does not reflect real-time inventory availability and should not be used to determine whether resources are available. To evaluate whether a specific instance type has available inventory in a zone and whether an instance can be created, call the EvaluateResource operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAvailableResource |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. You can call the DescribeRegions operation to query available zones. |
cn-hangzhou-h |
| InstanceChargeType |
string |
No |
The billing method. Valid values:
Valid values:
|
PrePaid |
| DbType |
string |
No |
The database type of the instance. Valid values:
Valid values:
|
sharding |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmyiu4ekp**** |
| StorageType |
string |
No |
The storage type. Valid values:
Default value: empty, which indicates that all storage types are queried. Valid values:
|
local_ssd |
| DBInstanceClass |
string |
No |
The instance type. |
dds.mongo.standard |
| EngineVersion |
string |
No |
The database engine version. |
5.0 |
| ReplicationFactor |
string |
No |
The number of nodes. This parameter is applicable only to replica set instances. Valid values:
|
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
344EE51D-8850-4935-B68B-58A8F4DCE3BD |
| SupportedDBTypes |
object |
||
| SupportedDBType |
array<object> |
The supported database types. |
|
|
array<object> |
|||
| AvailableZones |
object |
||
| AvailableZone |
array<object> |
The zone. |
|
|
array<object> |
|||
| SupportedEngineVersions |
object |
||
| SupportedEngineVersion |
array<object> |
The supported storage DPI engine versions. |
|
|
array<object> |
|||
| SupportedEngines |
object |
||
| SupportedEngine |
array<object> |
The supported storage engines. |
|
|
array<object> |
|||
| SupportedNodeTypes |
object |
||
| SupportedNodeType |
array<object> |
The supported instance types. |
|
|
array<object> |
|||
| NodeType |
string |
The number of nodes in the instance. |
3 |
| NetworkTypes |
string |
The network type of the instance. |
VPC |
| AvailableResources |
object |
||
| AvailableResource |
array<object> |
The details of available resources. |
|
|
array<object> |
|||
| InstanceClassRemark |
string |
The instance type. |
4 vCPUs, 8 GB memory (dedicated) (Current instance type: mdb.shard.2x.xlarge.d (4 vCPUs, 8 GB memory (dedicated cloud disk edition), maximum connections: 3,000, maximum IOPS: min{1800 + 50 × storage capacity, 21000})) |
| InstanceClass |
string |
The instance family. |
mdb.shard.2x.xlarge.d |
| DBInstanceStorageRange |
object |
The storage capacity range of the instance. |
|
| Min |
integer |
The minimum storage capacity. Unit: GB. |
20 |
| Max |
integer |
The maximum storage capacity. Unit: GB. |
16000 |
| Step |
integer |
The minimum step size for adjusting the storage capacity. Unit: GB. |
10 |
| Engine |
string |
The storage engine of the instance. |
WiredTiger |
| Version |
string |
The database engine version of the instance. |
4.0 |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DbType |
string |
The database type of the instance. Valid values:
|
sharding |
Examples
Success response
JSON format
{
"RequestId": "344EE51D-8850-4935-B68B-58A8F4DCE3BD",
"SupportedDBTypes": {
"SupportedDBType": [
{
"AvailableZones": {
"AvailableZone": [
{
"SupportedEngineVersions": {
"SupportedEngineVersion": [
{
"SupportedEngines": {
"SupportedEngine": [
{
"SupportedNodeTypes": {
"SupportedNodeType": [
{
"NodeType": "3",
"NetworkTypes": "VPC",
"AvailableResources": {
"AvailableResource": [
{
"InstanceClassRemark": "4 vCPUs, 8 GB memory (dedicated) (Current instance type: mdb.shard.2x.xlarge.d (4 vCPUs, 8 GB memory (dedicated cloud disk edition), maximum connections: 3,000, maximum IOPS: min{1800 + 50 × storage capacity, 21000}))",
"InstanceClass": "mdb.shard.2x.xlarge.d",
"DBInstanceStorageRange": {
"Min": 20,
"Max": 16000,
"Step": 10
}
}
]
}
}
]
},
"Engine": "WiredTiger"
}
]
},
"Version": "4.0"
}
]
},
"ZoneId": "cn-hangzhou-h",
"RegionId": "cn-hangzhou"
}
]
},
"DbType": "sharding"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.