更新公网IP池详情 - UpdatePublicipPool
功能介绍
更新公网IP池详情
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
PUT /v3/{project_id}/eip/publicip-pools/{publicip_pool_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID,获取项目ID请参见获取项目ID 最大长度:32 |
|
publicip_pool_id |
是 |
String |
公网ip池唯一标识。 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
publicip_pool |
否 |
UpdatePublicipPoolDict object |
公网IP池的对象 |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
id |
否 |
String |
|
|
name |
否 |
String |
|
|
status |
否 |
String |
|
|
type |
否 |
String |
|
|
description |
否 |
String |
|
|
project_id |
否 |
String |
项目ID,获取项目ID请参见获取项目ID |
|
size |
否 |
Integer |
|
|
used |
否 |
Integer |
|
|
created_at |
否 |
String |
|
|
updated_at |
否 |
String |
|
|
billing_info |
否 |
BillingInfoDict object |
订单信息, 有订单表示包周期 |
|
public_border_group |
否 |
String |
|
|
shared |
否 |
Boolean |
|
|
tags |
否 |
Array of TagsInfo objects |
数组长度:0 - 9999 |
|
enterprise_project_id |
否 |
String |
|
|
allow_share_bandwidth_types |
否 |
Array of strings |
最大长度:64 数组长度:0 - 9999 |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
publicip_pool |
PublicipPoolShowResp object |
公网IP池详情 |
|
request_id |
String |
本次请求的编号 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
status |
String |
|
|
type |
String |
|
|
description |
String |
|
|
project_id |
String |
项目ID,获取项目ID请参见获取项目ID |
|
size |
Integer |
|
|
used |
Integer |
|
|
created_at |
String |
|
|
updated_at |
String |
|
|
billing_info |
BillingInfoDict object |
订单信息, 有订单表示包周期 |
|
public_border_group |
String |
|
|
shared |
Boolean |
|
|
tags |
Array of TagsInfo objects |
数组长度:0 - 9999 |
|
enterprise_project_id |
String |
|
|
allow_share_bandwidth_types |
Array of strings |
最大长度:64 数组长度:0 - 9999 |
请求示例
{
"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操作正常返回 |
错误码
请参见错误码。