Queries all zones in a region and the file system types that are supported in each zone.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeZones | The operation that you want to perform. Set the value to DescribeZones. |
RegionId | String | Yes | cn-hangzhou | The ID of the region where you want to query zones. You can call the DescribeRegions operation to query the latest region list. |
FileSystemType | String | No | standard | The type of the file system. Valid values:
Note CPFS file systems are available only on the China site (aliyun.com). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A70BEE5D-76D3-49FB-B58F-1F398211**** | The ID of the request. |
Zones | Array of Zone | The details about zones. | |
Zone | |||
Performance | Array of String | nfs | This parameter is reserved. You can ignore this parameter. |
Capacity | Array of String | nfs | This parameter is reserved. You can ignore this parameter. |
ZoneId | String | cn-hangzhou-b | The ID of the zone. |
InstanceTypes | Array of InstanceType | The details about file system types. | |
InstanceType | |||
StorageType | String | Capacity | The storage type.
Note CPFS file systems are available only on the China site (aliyun.com). |
ProtocolType | String | nfs | The protocol type.
Note CPFS file systems are available only on the China site (aliyun.com). |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeZones
&RegionId=cn-hangzhou
&FileSystemType=standard
&<Common request parameters>
Sample success responses
XML
format
JSON
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeZonesResponse>
<RequestId>A70BEE5D-76D3-49FB-B58F-1F398211****</RequestId>
<Zones>
<Performance>nfs</Performance>
<Capacity>nfs</Capacity>
<ZoneId>cn-hangzhou-b</ZoneId>
<InstanceTypes>
<StorageType>Capacity</StorageType>
<ProtocolType>nfs</ProtocolType>
</InstanceTypes>
</Zones>
</DescribeZonesResponse>
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A70BEE5D-76D3-49FB-B58F-1F398211****",
"Zones" : [ {
"Performance" : [ "nfs" ],
"Capacity" : [ "nfs" ],
"ZoneId" : "cn-hangzhou-b",
"InstanceTypes" : [ {
"StorageType" : "Capacity",
"ProtocolType" : "nfs"
} ]
} ]
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRegionId.NotFound | The specified Region is not found. | The error message is returned because the requested region does not exist or the query service is unavailable in this region. |
500 | InternalError | The request processing has failed due to some unknown error. | The error message is returned because the request has failed due to an unknown error. Try again later. |
For a list of error codes, visit the API Error Center.