查询带宽规则 - ShowBandwidthRuleV3
功能介绍
查询在指定带宽实例下的带宽分组规则
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
授权项
访问级别
资源类型(*为必须)
条件键
别名
依赖的授权项
eip:bandwidthRules:get
Read
bandwidth *
-
g:EnterpriseProjectId
-
g:ResourceTag/<tag-key>
- vpc:bandwidths:get
-
bandwidthRule *
-
-
URI
GET /v3/{project_id}/eip/bandwidths/{bandwidth_id}/bandwidth-rule/{bandwidth_rules_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID,获取项目ID请参见获取项目ID 最大长度:32 |
|
bandwidth_id |
是 |
String |
带宽唯一标识 |
|
bandwidth_rules_id |
是 |
String |
带宽规则唯一标识 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
fields |
否 |
String |
|
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
bandwidth_rule |
ShowBandwidthRuleDict object |
带宽规则对象 |
|
request_id |
String |
本次请求的编号 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
|
|
name |
String |
最小长度:0 最大长度:64 |
|
admin_state_up |
Boolean |
|
|
egress_size |
Integer |
最小值:0 |
|
egress_guarented_size |
Integer |
最小值:0 |
|
publicip_info |
Array of PublicIpDict objects |
|
|
bandwidthId |
String |
最小长度:1 最大长度:36 |
|
description |
String |
最大长度:255 |
请求示例
无
响应示例
状态码:200
GET和PUT操作正常返回
{
"bandwidth_rule" : {
"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"
}
},
"request_id" : "dd5d37aa-b3c3-4e8a-934f-c8f73c83eb56"
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
GET和PUT操作正常返回 |
错误码
请参见错误码。