Queries the types of Tair (Redis OSS-compatible) instances that can be created in a 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:
- For mandatory resource types, indicate with a prefix of * .
- 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 |
---|---|---|---|---|
kvstore:DescribeAvailableResource | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ZoneId | string | No | The zone ID of the instance. You can call the DescribeZones operation to query the most recent zone list. | cn-hangzhou-h |
InstanceChargeType | string | No | The billing method. Valid values:
| PrePaid |
OrderType | string | No | The order type. Valid values:
| BUY |
Engine | string | No | The database engine of the instance. Valid values:
| Redis |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. You can call the ListResourceGroups operation to query the IDs of resource groups. Note
You can also query the IDs of resource groups in the Resource Management console. For more information, see View basic information about a resource group.
| rg-acfmyiu4e****** |
InstanceId | string | No | The ID of the instance. Note
This parameter is available and required only if the OrderType parameter is set to UPGRADE or DOWNGRADE.
| r-bp1zxszhcgatnx**** |
AcceptLanguage | string | No | The display language of the response. Valid values:
| zh-CN |
ProductType | string | No | The instance type. Default value: Local. Valid values:
Note
The default value of this parameter is Local. To query disk resources, you must specify the instance type that provides the required disk resources.
| Local |
NodeId | string | No | The ID of the data node for which you want to query available resources that can be created. You can call the DescribeLogicInstanceTopology operation to query the ID of the data node. Remove the number sign ( Note
Before you specify this parameter, you must set the InstanceId parameter to the ID of an instance that uses the cluster or read/write splitting architecture.
| r-bp1zxszhcgatnx****-db-0 |
InstanceScene | string | No | The edition of the instance. Valid values:
| professional |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "493B7308-D9C2-55F6-B042-0313BD63****",
"AvailableZones": {
"AvailableZone": [
{
"ZoneId": "cn-hangzhou-h",
"ZoneName": "Hangzhou Zone H\n",
"RegionId": "cn-hangzhou",
"SupportedEngines": {
"SupportedEngine": [
{
"Engine": "Redis",
"SupportedEditionTypes": {
"SupportedEditionType": [
{
"EditionType": "Enterprise",
"SupportedSeriesTypes": {
"SupportedSeriesType": [
{
"SeriesType": "enhanced_performance_type",
"SupportedEngineVersions": {
"SupportedEngineVersion": [
{
"Version": "5.0",
"SupportedArchitectureTypes": {
"SupportedArchitectureType": [
{
"Architecture": "cluster",
"SupportedShardNumbers": {
"SupportedShardNumber": [
{
"ShardNumber": "8",
"SupportedNodeTypes": {
"SupportedNodeType": [
{
"SupportedNodeType": "double",
"AvailableResources": {
"AvailableResource": [
{
"InstanceClassRemark": "16 GB cluster instance with 8 nodes (1,920,000 queries per second and 240,000 connections)\n",
"Capacity": 16384,
"InstanceClass": "redis.amber.logic.sharding.2g.8db.0rodb.24proxy.multithread"
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
},
"IsMainSale": true
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-03-25 | API Description Update | View Change Details |
2025-02-18 | The response structure of the API has changed | View Change Details |
2023-07-25 | The request parameters of the API has changed | View Change Details |