Querying EIP Details
Function
This API is used to query EIP details.
URI
GET /v3/{project_id}/eip/publicips/{publicip_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. Minimum length: 0 Maximum length: 32 |
| publicip_id | Yes | String | EIP ID. Minimum length: 0 Maximum length: 36 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| fields | No | Array |
|
Request Parameter
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| request_id | String | Request ID. Minimum length: 0 Maximum length: 36 |
| publicip | PublicipSingleShowResp object | EIP. |
| Parameter | Type | Description |
|---|---|---|
| id | String |
Minimum length: 0 Maximum length: 36 |
| project_id | String |
Minimum length: 0 Maximum length: 32 |
| ip_version | Integer |
Enumerated values:
|
| public_ip_address | String |
Minimum length: 0 Maximum length: 36 |
| public_ipv6_address | String |
Minimum length: 0 Maximum length: 64 |
| network_type | String |
Minimum length: 0 Maximum length: 64 |
| status | String |
Minimum length: 0 Maximum length: 64 Enumerated values:
|
| description | String |
Minimum length: 0 Maximum length: 256 |
| public_border_group | String |
Minimum length: 1 Maximum length: 64 |
| created_at | String |
Minimum length: 0 Maximum length: 64 |
| updated_at | String |
Minimum length: 0 Maximum length: 64 |
| type | String |
Minimum length: 1 Maximum length: 36 Enumerated values:
|
| vnic | VnicInfo object |
|
| bandwidth | PublicipBandwidthInfo object | Bandwidth bound to an EIP. |
| enterprise_project_id | String | Enterprise project ID. The value is 0 or a string that contains a maximum of 36 characters in UUID format with hyphens (-). This is the ID of the enterprise project that you associate with the EIP when you assign the EIP. Minimum length: 0 Maximum length: 36 |
| billing_info | String |
Minimum length: 0 Maximum length: 256 |
| lock_status | String |
Minimum length: 0 Maximum length: 64 |
| associate_instance_type | String |
Minimum length: 0 Maximum length: 64 Enumerated values:
|
| associate_instance_id | String |
Minimum length: 0 Maximum length: 36 |
| publicip_pool_id | String |
Minimum length: 0 Maximum length: 36 |
| publicip_pool_name | String |
Minimum length: 0 Maximum length: 64 |
| alias | String |
Minimum length: 0 Maximum length: 64 |
| profile | ProfileInfo object |
|
| fake_network_type | Boolean |
Enumerated values:
|
| tags | Array of strings |
|
| associate_instance_metadata | String |
Minimum length: 1 Maximum length: 64 |
| associate_mode | String |
Minimum length: 1 Maximum length: 36 |
| allow_share_bandwidth_types | Array of strings |
Maximum length: 64 |
| cascade_delete_by_instance | Boolean |
|
| Parameter | Type | Description |
|---|---|---|
| private_ip_address | String |
Minimum length: 0 Maximum length: 36 |
| device_id | String |
Minimum length: 0 Maximum length: 36 |
| device_owner | String |
Minimum length: 0 Maximum length: 64 |
| vpc_id | String |
Minimum length: 0 Maximum length: 36 |
| port_id | String |
Minimum length: 0 Maximum length: 36 |
| port_profile | String |
Minimum length: 0 Maximum length: 256 |
| mac | String |
Minimum length: 0 Maximum length: 64 |
| vtep | String |
Minimum length: 0 Maximum length: 36 |
| vni | String |
Minimum length: 0 Maximum length: 36 |
| instance_id | String |
Minimum length: 0 Maximum length: 36 |
| instance_type | String |
Minimum length: 0 Maximum length: 36 |
| port_vif_details | String |
Minimum length: 0 Maximum length: 255 |
| Parameter | Type | Description |
|---|---|---|
| id | String |
Minimum length: 0 Maximum length: 36 |
| size | Integer |
Minimum value: 0 Maximum value: 99999 |
| share_type | String |
Minimum length: 0 Maximum length: 36 |
| charge_mode | String |
Minimum length: 0 Maximum length: 36 |
| name | String |
Minimum length: 0 Maximum length: 64 |
| billing_info | String |
Minimum length: 0 Maximum length: 256 |
| Parameter | Type | Description |
|---|---|---|
| local_network_port | String |
Minimum length: 0 Maximum length: 36 |
| standalone | Boolean |
|
| notify_status | String |
Minimum length: 0 Maximum length: 36 Enumerated values:
|
| create_time | String |
Minimum length: 0 Maximum length: 64 |
| fake_network_type | Boolean |
Enumerated values:
|
| create_source | String |
Minimum length: 0 Maximum length: 36 Enumerated value:
|
| ecs_id | String |
Minimum length: 0 Maximum length: 36 |
| lock_status | String |
Minimum length: 0 Maximum length: 36 |
| freezed_status | String |
Minimum length: 0 Maximum length: 36 Enumerated values:
|
| bandwith_info | BandwidthInfoResp object |
|
| Parameter | Type | Description |
|---|---|---|
| bandwidth_name | String |
Minimum length: 0 Maximum length: 256 |
| bandwidth_number | Integer |
Minimum value: 0 Maximum value: 99999 |
| bandwidth_type | String |
Enumerated values:
|
| bandwidth_id | String |
Minimum length: 0 Maximum length: 36 |
Example Request
None
Example Response
Status code: 200
{
"publicip" : {
"created_at" : "2022-03-17T09:46:22Z",
"updated_at" : "2022-03-30T02:46:04Z",
"lock_status" : null,
"allow_share_bandwidth_types" : [ "bgp", "sbgp", "share", "share_yidongdanxian", "share_youxuan" ],
"id" : "006343a1-32bf-4361-958a-efd158153dd0",
"alias" : null,
"project_id" : "060576787a80d5762fa2c00f07ddfcf4",
"ip_version" : 4,
"public_ip_address" : "88.88.1.141",
"public_ipv6_address" : null,
"status" : "DOWN",
"description" : "",
"enterprise_project_id" : "0",
"billing_info" : null,
"type" : "EIP",
"vnic" : {
"private_ip_address" : "172.16.1.235",
"device_id" : "",
"device_owner" : "",
"vpc_id" : "1c30f428-9741-48b2-a788-0b2f359705eb",
"port_id" : "22d3576d-c042-4f3d-8c7c-1330a2724627",
"mac" : "fa:16:3e:3a:22:66",
"vtep" : null,
"vni" : null,
"instance_id" : "",
"instance_type" : "",
"port_profile" : null,
"port_vif_details": ""
},
"bandwidth" : {
"id" : "149ff19b-5de4-4436-958f-2eca39952e93",
"size" : 100,
"share_type" : "PER",
"charge_mode" : "traffic",
"name" : "bandwidth-xym-br-eqos",
"billing_info" : ""
},
"associate_instance_type" : "PORT",
"associate_instance_id" : "22d3576d-c042-4f3d-8c7c-1330a2724627",
"publicip_pool_id" : "9af5f2e5-1765-4b86-b342-ece52e785c8b",
"publicip_pool_name" : "5_union",
"public_border_group" : "center",
"tags" : [ "key=value" ]
},
"request_id" : "ce1a33a85d2e105040497a21bbe58c26"
} Status Codes
See Status Codes.
Error Codes
See Error Codes.