Queries the regions in which ApsaraDB for Redis instances can be created.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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 that you want to query.

AcceptLanguage String No zh-CN

The language that the value of the LocalName response parameter uses.

  • zh-CN: Chinese
  • en-US: English
Note Default value: zh-CN.

Response parameters

Parameter Type Example Description
RegionIds Array of KVStoreRegion

The value of the RegionIds parameter is an array. Each element in the array contains the RegionId and ZoneIds parameters.

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.

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 IDs of the zones in the region. The zone IDs are separated by 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.