获取SUBNET总量
接口描述
请求路径:https://open.didiyunapi.com/dicloud/i/network/vpc/subnet/count
请求方法:POST
输入参数
参数名称 |
必选 |
类型 |
描述 |
regionId |
是 |
string |
地域id |
zoneId |
否 |
string |
查询此zone下的SUBNET数量 |
vpcUuid |
是 |
string |
查询此VPC下的SUBNET数量 |
输出参数
参数名称 |
类型 |
描述 |
errno |
int |
错误码 |
errmsg |
string |
请求错误说明 |
requestId |
string |
请求唯一标识 |
data |
array<SUBNETCount> |
请求返回数据 |
SUBNETCount:
参数名称 |
类型 |
描述 |
totalCnt |
int |
SUBNET总量 |
错误码
示例
请求:
curl -X POST \
https://open.didiyunapi.com/dicloud/i/network/vpc/subnet/count \
-H 'authorization: Bearer 9a609744ad675e8fbfcdbf14511b24e6ddd6b427b4d256969534a81d0773f4d7' \
-H 'content-type: application/json' \
-d '{
"regionId": "gz",
"vpcUuid": "ad9042b8f67f448ba640144f31636209"
}'
输出:
{
"errno": 0,
"errmsg": "ok",
"data": [
{
"totalCnt": 1
}
],
"requestId": "0a60538a5b65992dfb41a35b13c403b0"
}