查询可用区列表
更新时间:2023-08-22
接口说明
获取可用区列表
本接口版本V1
请求结构
GET /v{version}/zone HTTP/1.1
Host: rds.bj.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 参数类型 | 是否必选 | 参数位置 | 示例值 | 描述 |
---|---|---|---|---|---|
version | Integer | 是 | URL参数 | 1 | API版本号 |
返回头域
除公共头域外,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
zones | List<ZoneDetail> | 可用区列表 |
可用区列表
参数名称 | 类型 | 描述 |
---|---|---|
zoneNames | List <String> | 可用区名称的列表,显示当前的可用区名称 |
apiZoneNames | List <String> | api可用区名称列表,显示当前的可用区名称,这个字段属于openApi专属字段 |
available | Boolean | 可用区状态:true(可用) , false(不可用) |
zoneNameStr | String | 当前可用区名称 |
defaultSubnetId | String | 默认子网ID |
maxCpuCount | Intger | 可用区,统计最大CPU数 |
maxMemory | Intger | 可用区,最大数量 |
maxStorage | Intger | 可用区,最大磁盘存储容量 |
supportNvmeDisk | Boolean | 是否支持Nvme磁盘。 true(支持),false(不支持) |
请求示例
GET /v1/zone HTTP/1.1
Host: rds.bj.baidubce.com
Content-Type: application/json
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2023-07-11T11:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS
{
"zones": [
{
"zoneNames": [
"cn-bj-c"
],
"apiZoneNames": [
"cn-bj-c"
],
"available": true,
"zoneNameStr": "zoneC",
"defaultSubnetId": "d4b6efa1-ee35-4b02-9baa-10da915694a6",
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": true
},
{
"zoneNames": [
"cn-bj-d"
],
"apiZoneNames": [
"cn-bj-d"
],
"available": true,
"zoneNameStr": "zoneD",
"defaultSubnetId": "121bf5ef-89b7-4dc8-81d3-cd8850e86ffa",
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-e"
],
"apiZoneNames": [
"cn-bj-e"
],
"available": true,
"zoneNameStr": "zoneE",
"defaultSubnetId": "87d3c2d1-1059-484a-8b57-40ee473405fd",
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-f"
],
"apiZoneNames": [
"cn-bj-f"
],
"available": true,
"zoneNameStr": "zoneF",
"defaultSubnetId": "af678808-228d-4ef0-8ed0-ec1072aa43f5",
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-c",
"cn-bj-d"
],
"apiZoneNames": [
"cn-bj-c",
"cn-bj-d"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-c",
"cn-bj-e"
],
"apiZoneNames": [
"cn-bj-c",
"cn-bj-e"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-c",
"cn-bj-f"
],
"apiZoneNames": [
"cn-bj-c",
"cn-bj-f"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-d",
"cn-bj-e"
],
"apiZoneNames": [
"cn-bj-d",
"cn-bj-e"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-d",
"cn-bj-f"
],
"apiZoneNames": [
"cn-bj-d",
"cn-bj-f"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
},
{
"zoneNames": [
"cn-bj-e",
"cn-bj-f"
],
"apiZoneNames": [
"cn-bj-e",
"cn-bj-f"
],
"available": true,
"zoneNameStr": null,
"defaultSubnetId": null,
"maxCpuCount": 56,
"maxMemory": 480,
"maxStorage": 3000,
"supportNvmeDisk": false
}
]
}