调用DescribeZones查询一个地域下的所有可用区及可用区所支持的文件系统类型。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | DescribeZones | 接口名称。 固定取值:DescribeZones。 |
| RegionId | String | 是 | cn-hangzhou | 可用区所在的地域ID。 您可以调用DescribeRegions查看最新地域列表。 |
| FileSystemType | String | 否 | standard | 文件系统类型。 取值:
说明 仅中国站支持CPFS文件系统。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| RequestId | String | A70BEE5D-76D3-49FB-B58F-1F398211**** | 请求ID。 |
| Zones | Array of Zone | 可用区信息集合。 |
|
| Zone | |||
| Performance | Array of String | nfs | 接口预留参数,暂未生效,您无需关注。 |
| Capacity | Array of String | nfs | 接口预留参数,暂未生效,您无需关注。 |
| ZoneId | String | cn-hangzhou-b | 可用区ID。 |
| InstanceTypes | Array of InstanceType | 实例类型信息集合。 |
|
| InstanceType | |||
| StorageType | String | Capacity | 存储类型。
说明 仅中国站支持CPFS文件系统。 |
| ProtocolType | String | nfs | 文件传输协议类型。
说明 仅中国站支持CPFS文件系统。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeZones
&RegionId=cn-hangzhou
&FileSystemType=standard
&公共请求参数
正常返回示例
XML格式
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>
JSON格式
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"
} ]
} ]
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 404 | InvalidRegionId.NotFound | The specified Region is not found. | 请求的地域不存在或暂未提供服务。 |
| 500 | InternalError | The request processing has failed due to some unknown error. | 由于未知错误造成请求失败,请稍后再试。 |
访问错误中心查看更多错误码。