Queries the regions where you can create ApsaraDB for Redis instances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeRegions |
The operation that you want to perform. Set the value to DescribeRegions. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
AcceptLanguage | String | No | zh-CN |
The language used for the value to return. Valid values:
Note Default value: zh-CN.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RegionIds | Array of KVStoreRegion |
RegionIds is in the array format. Each element consists of RegionId and ZoneIds. |
|
KVStoreRegion | |||
LocalName | String | China (Hangzhou) |
The name of the region. |
RegionEndpoint | String | r-kvstore.aliyuncs.com |
The endpoint of the region. |
RegionId | String | cn-hangzhou |
The ID of the region where the instance is deployed. |
ZoneIdList | List | "ZoneId": ["cn-hangzhou-h","cn-hangzhou-MAZ10(h,i)","cn-hangzhou-MAZ9(g,h)","cn-hangzhou-b","cn-hangzhou-d","cn-hangzhou-e","cn-hangzhou-MAZ6(b,f)","cn-hangzhou-f","cn-hangzhou-g"] |
The list of zone IDs. Separate zones with commas (,). |
ZoneIds | String | cn-hangzhou-h |
The ID of the zone. |
RequestId | String | AD425AD3-CC7B-4EE2-A5CB-2F61BA73**** |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com?Action=DescribeRegions
&<Common request parameters>
Sample success responses
XML
format
<DescribeRegionsResponse>
<RegionIds>
<KVStoreRegion>
<RegionId>cn-hangzhou</RegionId>
<ZoneIdList>
<ZoneId>cn-hangzhou-h</ZoneId>
<ZoneId>cn-hangzhou-MAZ10(h,i)</ZoneId>
<ZoneId>cn-hangzhou-MAZ9(g,h)</ZoneId>
<ZoneId>cn-hangzhou-b</ZoneId>
<ZoneId>cn-hangzhou-d</ZoneId>
<ZoneId>cn-hangzhou-e</ZoneId>
<ZoneId>cn-hangzhou-MAZ6(b,f)</ZoneId>
<ZoneId>cn-hangzhou-f</ZoneId>
<ZoneId>cn-hangzhou-g</ZoneId>
</ZoneIdList>
<RegionEndpoint>r-kvstore.aliyuncs.com</RegionEndpoint>
<ZoneIds>cn-hangzhou-h,cn-hangzhou-MAZ10(h,i),cn-hangzhou-MAZ9(g,h),cn-hangzhou-b,cn-hangzhou-d,cn-hangzhou-e,cn-hangzhou-MAZ6(b,f),cn-hangzhou-f,cn-hangzhou-g</ZoneIds>
<LocalName>China (Hangzhou)</LocalName>
</KVStoreRegion>
</RegionIds>
<RequestId>AD425AD3-CC7B-4EE2-A5CB-2F61BA73****</RequestId>
</DescribeRegionsResponse>
JSON
format
{
"RegionIds": {
"KVStoreRegion": [{
"RegionId": "cn-hangzhou",
"ZoneIdList": {
"ZoneId": [
"cn-hangzhou-h",
"cn-hangzhou-MAZ10(h,i)",
"cn-hangzhou-MAZ9(g,h)",
"cn-hangzhou-b",
"cn-hangzhou-d",
"cn-hangzhou-e",
"cn-hangzhou-MAZ6(b,f)",
"cn-hangzhou-f",
"cn-hangzhou-g"
]
},
"RegionEndpoint": "r-kvstore.aliyuncs.com",
"ZoneIds": "cn-hangzhou-h,cn-hangzhou-MAZ10(h,i),cn-hangzhou-MAZ9(g,h),cn-hangzhou-b,cn-hangzhou-d,cn-hangzhou-e,cn-hangzhou-MAZ6(b,f),cn-hangzhou-f,cn-hangzhou-g",
"LocalName": "China (Hangzhou)"
}
]
},
"RequestId": "AD425AD3-CC7B-4EE2-A5CB-2F61BA73****"
}
Error codes
For a list of error codes, visit the API Error Center.