调用DescribeZones查询一个地域下的所有可用区及可用区所支持的文件系统类型。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeZones |
接口名称。 固定取值:DescribeZones。 |
RegionId | String | 是 | cn-hangzhou |
可用区所在的地域ID。 您可以调用DescribeRegions查看最新地域列表。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | A70BEE5D-76D3-49FB-B58F-1F398211**** |
请求ID。 |
Zones | Array of Zone |
可用区信息集合。 |
|
Zone | |||
Capacity | List | 1 |
容量型NAS。 |
Performance | List | 0 |
性能型NAS。 |
ZoneId | String | cn-hangzhou-b |
可用区ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeZones
&RegionId=cn-hangzhou
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>75DECBF9-2F06-4ECC-BB5F-3B4C3F3A****</RequestId>
<Zones>
<Zone>
<ZoneId>cn-hangzhou-b</ZoneId>
<Capacity>
<Protocol>nfs</Protocol>
<Protocol>smb</Protocol>
</Capacity>
<Performance>
</Performance>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-g</ZoneId>
<Capacity>
<Protocol>nfs</Protocol>
<Protocol>smb</Protocol>
</Capacity>
<Performance>
<Protocol>nfs</Protocol>
<Protocol>smb</Protocol>
</Performance>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-f</ZoneId>
<Capacity>
<Protocol>nfs</Protocol>
<Protocol>smb</Protocol>
</Capacity>
<Performance>
<Protocol>nfs</Protocol>
<Protocol>smb</Protocol>
</Performance>
</Zone>
</Zones>
JSON
格式
{
"RequestId": "75DECBF9-2F06-4ECC-BB5F-3B4C3F3A****",
"Zones": {
"Zone": [
{
"ZoneId": "cn-hangzhou-b",
"Capacity": {
"Protocol": [
"nfs",
"smb"
]
},
"Performance": {
"Protocol": []
}
},
{
"ZoneId": "cn-hangzhou-g",
"Capacity": {
"Protocol": [
"nfs",
"smb"
]
},
"Performance": {
"Protocol": [
"nfs",
"smb"
]
}
},
{
"ZoneId": "cn-hangzhou-f",
"Capacity": {
"Protocol": [
"nfs",
"smb"
]
},
"Performance": {
"Protocol": [
"nfs",
"smb"
]
}
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | InternalError | The request processing has failed due to some unknown error. | 由于未知错误造成请求失败,请稍后再试。 |
404 | InvalidRegionId.NotFound | The specified Region is not found. | 请求的地域不存在或暂未提供服务。 |
访问错误中心查看更多错误码。