查询带宽列表 - ListEipBandwidth
功能介绍
查询带宽列表。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
授权项
访问级别
资源类型(*为必须)
条件键
别名
依赖的授权项
eip:bandwidths:list
List
bandwidth *
-
vpc:bandwidths:list
-
-
g:EnterpriseProjectId
URI
GET /v3/{project_id}/eip/bandwidths
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| project_id | 是 | String | 最大长度:32 |
请求参数
无
响应参数
状态码:200
| 参数 | 参数类型 | 描述 |
|---|---|---|
| eip_bandwidths | Array of BandwidthResponseBody objects | 带宽列表对象 |
| page_info | PageInfoDict object | 分页页码信息 |
| request_id | String | 本次请求的编号 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| admin_state | String | |
| ingress_size | Integer | |
| rule_quota | Integer | |
| ratio_95peak_plus | Integer | |
| enable_bandwidth_rules | Boolean | |
| bandwidth_rules | Array of BandWidthRules objects | |
| public_border_group | String | |
| bandwidth_type | String | |
| billinginfo | String | |
| id | String | |
| name | String | |
| publicip_info | Array of PublicipInfoResponseBody objects | |
| type | String | WHOLE表示共享带宽;PER表示独享带宽 |
| size | Integer | |
| project_id | String | |
| tags | Array of strings | |
| created_at | String | |
| updated_at | String |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| id | String | |
| name | String | |
| admin_state_up | Boolean | |
| egress_size | Integer | |
| egress_guarented_size | Integer | |
| publicip_info | Array of PublicipInfoResponseBody objects |
请求示例
查询带宽列表,可根据query字段过滤
GET https://{Endpoint}/v3/{project_id}/bandwidths?limit=3&marker=4779ab1c-7c1a-44b1-a02e-93dfc361b32d 响应示例
状态码:200
GET操作正常返回
{
"request_id" : "4e5945ddd409f306b3cb4fd921a45390",
"eip_bandwidths" : [ {
"name" : "bandwidth-838f",
"id" : "08b4700e-cc3c-4aed-a35a-66022bcbd0f6",
"project_id" : "cb576f8cf0df40b8bb6cea0a1765c569",
"size" : 10,
"bandwidth_type" : "bgp",
"ratio_95peak_plus" : null,
"admin_state" : "NORMAL",
"ingress_size" : 10,
"type" : "PER",
"enable_bandwidth_rules" : false,
"rule_quota" : 0,
"created_at" : "2023-05-17T02:06:49Z",
"updated_at" : "2023-05-17T02:06:49Z",
"bandwidth_rules" : [ ],
"publicip_info" : [ {
"publicip_address" : "10.83.15.65",
"publicip_type" : "5_bgp",
"publicip_id" : "e73fcc26-c009-4ea3-9b57-d546359bda38",
"ip_version" : 4,
"publicipv6_address" : null
} ],
"tags" : [ ],
"public_border_group" : "center"
} ],
"page_info" : [ {
"next_marker" : "08b4700e-cc3c-4aed-a35a-66022bcbd0f6",
"previous_marker" : "08b4700e-cc3c-4aed-a35a-66022bcbd0f6",
"current_count" : 1
} ]
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | GET操作正常返回 |
错误码
请参见错误码。