更新时间:2024-12-27 GMT+08:00
查询配额
功能介绍
查询租户各类资源的使用情况,如企业路由器的使用量,VPC连接的使用量等。
调用方法
请参见如何调用API。
URI
GET /v3/{project_id}/enterprise-router/quotas
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| project_id | 是 | String | 项目ID |
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| limit | 否 | Integer | 每页返回的个数。 取值范围:0~2000。 最小值:0 最大值:2000 |
| marker | 否 | String | 查询的页码id,为空时为查询第一页。 使用说明:必须与limit一起使用。 最小长度:1 最大长度:128 |
| type | 否 | Array of strings | 支持过滤的配额类型:
|
| erId | 否 | Object | 企业路由器ID |
| routeTableId | 否 | Object | 路由表ID |
| vpcId | 否 | Object | VPC ID |
请求参数
无
响应参数
状态码: 200
请求示例
查询配额信息
GET https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/quotas 响应示例
状态码: 200
OK
{
"quotas" : [ {
"quota_key" : "er_instance",
"quota_limit" : 1,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "dc_attachment",
"quota_limit" : 2,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "route_table",
"quota_limit" : 20,
"used" : 5,
"unit" : "count"
}, {
"quota_key" : "static_route",
"quota_limit" : 500,
"used" : 2,
"unit" : "count"
}, {
"quota_key" : "can_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "connect_attachment",
"quota_limit" : 20,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "peering_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "vpn_attachment",
"quota_limit" : 10,
"used" : 0,
"unit" : "count"
}, {
"quota_key" : "flow_log",
"quota_limit" : 20,
"used" : 4,
"unit" : "count"
} ],
"page_info" : {
"next_marker" : "1",
"current_count" : 9
}
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | OK |
错误码
请参见错误码。
父主题: 配额管理