全量查询带宽规则列表 - ListBandwidthRuleV3
功能介绍
查询租户在指定带宽实例的所有带宽分组规则
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
授权项
访问级别
资源类型(*为必须)
条件键
别名
依赖的授权项
eip:bandwidthRules:list
List
bandwidth *
-
g:EnterpriseProjectId
-
g:ResourceTag/<tag-key>
- vpc:bandwidths:get
-
bandwidthRule *
-
-
URI
GET /v3/{project_id}/eip/bandwidths/{bandwidth_id}/bandwidth-rules
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID,获取项目ID请参见获取项目ID 最大长度:32 |
|
bandwidth_id |
是 |
String |
带宽唯一标识 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
marker |
否 |
String |
|
|
limit |
否 |
Integer |
最小值:0 最大值:2000 |
|
fields |
否 |
String |
|
|
sort_key |
否 |
String |
|
|
sort_dir |
否 |
String |
|
|
id |
否 |
String |
|
|
name |
否 |
String |
|
|
egress_size |
否 |
String |
|
|
egress_guarented_size |
否 |
String |
|
|
admin_state_up |
否 |
String |
|
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
request_id |
String |
本次请求的编号 |
|
bandwidth_rules |
Array of BandwidthRuleDict objects |
带宽规则列表 |
|
page_info |
PageInfoDict object |
分页页码信息 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
|
|
name |
String |
最小长度:1 最大长度:64 |
|
description |
String |
|
|
bandwidth_id |
String |
|
|
admin_state_up |
Boolean |
缺省值:true |
|
egress_size |
Integer |
|
|
egress_guarented_size |
Integer |
最小值:0 缺省值:0 |
|
publicip_info |
Array of PublicipInfoDict objects |
|
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
publicip_address |
String |
|
|
publicip_id |
String |
|
|
publicip_type |
String |
最大长度:36 |
|
publicipv6_address |
String |
|
|
ip_version |
Integer |
|
请求示例
无
响应示例
状态码:200
GET和PUT操作正常返回
{
"request_id" : "dd5d37aa-b3c3-4e8a-934f-c8f73c83eb56",
"bandwidth_rules" : [ {
"id" : "063c367d-8480-4e5e-a80e-56adaccc030b",
"name" : "v3eip",
"description" : null,
"bandwidth_id" : "065162a2-8166-4d0d-ab1e-4b8d192c330c",
"admin_state_up" : true,
"egress_size" : 0,
"egress_guarented_size" : 0,
"publicip_info" : {
"publicip_id" : "6285e7be-fd9f-497c-bc2d-dd0bdea6efe0",
"ip_version" : 4,
"publicip_type" : "5_bgp",
"publicip_address" : "161.xx.xx.9"
}
}, {
"id" : "a79fd11a-047b-4f5b-8f12-99c178cc780a",
"name" : "222",
"description" : null,
"bandwidth_id" : "065162a2-8166-4d0d-ab1e-4b8d192c330c",
"admin_state_up" : true,
"egress_size" : 0,
"egress_guarented_size" : 0,
"publicip_info" : {
"publicip_id" : "4ca21961-8e52-4ff4-b9c5-af2dcc2c7b50",
"ip_version" : 4,
"publicip_type" : "5_bgp",
"publicip_address" : "161.xx.xx.13"
}
} ],
"page_info" : {
"next_marker" : "1e323ebc-4fff-4cf7-ae3f-c4e2f2a46bad",
"previous_marker" : "11b1ef2d-1d62-4578-9e57-fd566b7a3eea",
"current_count" : 2
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
GET和PUT操作正常返回 |
错误码
请参见错误码。