更新公网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 | 最大长度:32 |
| publicip_pool_id | 是 | String | 公网ip池唯一标识。 |
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| publicip_pool | 否 | UpdatePublicipPoolDict object | 公网IP池的对象 |
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| id | 否 | String | |
| name | 否 | String | |
| status | 否 | String | |
| type | 否 | String | |
| description | 否 | String | |
| project_id | 否 | String | |
| 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 | |
| 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 | |
| enterprise_project_id | String | |
| allow_share_bandwidth_types | Array of strings |
请求示例
{
"publicip_pool" : {
"id" : "f588ccfa-8750-4d7c-bf5d-2ede24414706",
"name" : "test_pool_1",
"description" : "test1"
}
} 响应示例
状态码:200
更新操作正常返回
-
{ "id" : "f588ccfa-8750-4d7c-bf5d-2ede24414706", "name" : "test_pool_xxx", "status" : "active", "network_id" : "f588ccfa-8750-4d7c-bf5d-2ede24414706", "type" : "spec_bgp", "project_id" : "8b7e35ad379141fc9df3e178bd64f55c", "size" : 100, "used" : 20, "billing_info" : { "order-id" : "CS20081917179HW3H", "product-id" : "00301-335034-0--0" }, "created_at" : "2020-07-17T09:25:53Z", "updated_at" : "2020-07-30T12:39:19Z", "description" : "test", "public_border_group" : "center", "allow_share_bandwidth_types" : [ "share" ], "per_bandwidth_type" : "bgp" } -
"4a06c169-cc67-4d94-a786-2d70ef09b100"
状态码
| 状态码 | 描述 |
|---|---|
| 200 | 更新操作正常返回 |
错误码
请参见错误码。