Queries the available resources in the specified zone.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dds:DescribeAvailableResource | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. You can call the DescribeRegions operation to query the latest available regions. | cn-hangzhou |
ZoneId | string | No | The ID of the zone. You can call the DescribeRegions operation to query the available zones. | cn-hangzhou-h |
InstanceChargeType | string | No | The billing method of the instance. Valid values:
| PrePaid |
DbType | string | No | The architecture of the instance. Valid values:
| sharding |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmyiu4ekp**** |
StorageType | string | No | The storage type of the instance. Valid values:
This parameter is empty by default, which indicates all types of storage resources are queried. | local_ssd |
DBInstanceClass | string | No | The instance type of the instance. | dds.mongo.standard |
EngineVersion | string | No | The major engine version of the instance. | 5.0 |
ReplicationFactor | string | No | The number of nodes, only applicable to replica sets. Enumeration Value:
| 3 |
Response parameters
Examples
Sample success responses
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 cores, 8 GB (Dedicated) (Current instance type: mdb.shard.2x.xlarge.d (4 cores, 8 GB (Dedicated cloud-disk), maximum connections: 3000, maximum IOPS: min{1800 + 50 × Storage capacity, 21000}))\n",
"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
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-27 | The request parameters of the API has changed | View Change Details |
2023-11-03 | The request parameters of the API has changed | View Change Details |
2023-09-01 | The request parameters of the API has changed | View Change Details |
2022-06-14 | The response structure of the API has changed | View Change Details |