更新带宽分组规则 - UpdateBandwidthRuleV3
功能介绍
更新带宽分组规则对象
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
授权项
访问级别
资源类型(*为必须)
条件键
别名
依赖的授权项
eip:bandwidthRules:update
Write
bandwidth *
-
g:EnterpriseProjectId
-
g:ResourceTag/<tag-key>
- vpc:bandwidths:update
-
bandwidthRule *
-
-
URI
PUT /v3/{project_id}/eip/bandwidths/{bandwidth_id}/bandwidth-rule/{bandwidth_rules_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID,获取项目ID请参见获取项目ID 最大长度:32 |
|
bandwidth_id |
是 |
String |
带宽唯一标识。通过弹性公网IP详情获取,且此弹性公网IP是包周期 |
|
bandwidth_rules_id |
是 |
String |
带宽规则唯一标识 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
bandwidth_rule |
否 |
UpdateBandwidthRuleDict object |
带宽分组规则对象 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
name |
否 |
String |
最小长度:1 最大长度:64 |
|
description |
否 |
String |
最小长度:1 最大长度:255 |
|
admin_state_up |
否 |
Boolean |
|
|
egress_size |
否 |
Integer |
|
|
egress_guarented_size |
否 |
Integer |
|
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
request_id |
String |
本次请求的编号 |
|
bandwidth_rule |
BandwidthRuleDict 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 |
|
请求示例
{
"bandwidth_rule" : {
"name" : "bandwidth_rule_2",
"egress_size" : 10,
"egress_guarented_size" : 5
}
}
响应示例
状态码:200
GET和PUT操作正常返回
{
"bandwidth_rule" : {
"id" : "c7cf9045-bd79-4195-99ea-7194a20c2e48",
"name" : "bandwidth_rule_2",
"bandwidth_id" : "c7cf9045-bd79-4195-99ea-7194a20c2e48",
"admin_state_up" : true,
"egress_size" : "10,",
"egress_guarented_size" : "5,",
"publicip_info" : [ {
"publicip_id" : "6285e7be-fd9f-497c-bc2d-dd0bdea6efe0",
"publicip_address" : "161.x.x.9",
"publicip_type" : "5_bgp",
"ip_version" : 4
} ]
},
"request_id" : "4a06c169-cc67-4d94-a786-2d70ef09b100"
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
GET和PUT操作正常返回 |
错误码
请参见错误码。