功能介紹
查詢EIP列表
調(diào)試
您可以在API Explorer中調(diào)試該接口,支持自動(dòng)認(rèn)證鑒權(quán)。API Explorer可以自動(dòng)生成SDK代碼示例,并提供SDK代碼示例調(diào)試功能。
URI
GET /v1/{project_id}/publicips
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
項(xiàng)目ID,獲取項(xiàng)目ID請(qǐng)參見獲取項(xiàng)目ID |
|
參數(shù) |
是否必選 |
參數(shù)類型 |
描述 |
|---|---|---|---|
|
marker |
否 |
String |
最大長(zhǎng)度:36 |
|
limit |
否 |
Integer |
最小值:0 |
|
ip_version |
否 |
Integer |
枚舉值:
|
|
enterprise_project_id |
否 |
String |
關(guān)于企業(yè)項(xiàng)目ID的獲取及企業(yè)項(xiàng)目特性的詳細(xì)信息,請(qǐng)參見《企業(yè)管理用戶指南》。 |
|
port_id |
否 |
Array |
|
|
public_ip_address |
否 |
Array |
|
|
private_ip_address |
否 |
Array |
|
|
id |
否 |
Array |
|
|
allow_share_bandwidth_type_any |
否 |
Array |
|
請(qǐng)求參數(shù)
無
響應(yīng)參數(shù)
狀態(tài)碼: 200
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
publicips |
彈性公網(wǎng)IP對(duì)象 |
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
bandwidth_id |
String |
最大長(zhǎng)度:36 |
|
bandwidth_name |
String |
最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
bandwidth_share_type |
String |
枚舉值:
|
|
bandwidth_size |
Integer |
最小值:0 |
|
create_time |
String |
|
|
enterprise_project_id |
String |
關(guān)于企業(yè)項(xiàng)目ID的獲取及企業(yè)項(xiàng)目特性的詳細(xì)信息,請(qǐng)參見《企業(yè)管理用戶指南》。 最大長(zhǎng)度:36 |
|
id |
String |
最大長(zhǎng)度:36 |
|
port_id |
String |
最大長(zhǎng)度:36 |
|
private_ip_address |
String |
|
|
profile |
|
|
|
public_ip_address |
String |
最大長(zhǎng)度:15 |
|
status |
String |
枚舉值:
|
|
tenant_id |
String |
最大長(zhǎng)度:36 |
|
type |
String |
最大長(zhǎng)度:36 |
|
public_ipv6_address |
String |
最大長(zhǎng)度:39 |
|
ip_version |
Integer |
枚舉值:
|
|
public_border_group |
String |
最小長(zhǎng)度:1 最大長(zhǎng)度:64 |
|
allow_share_bandwidth_types |
Array of strings |
最大長(zhǎng)度:64 |
|
alias |
String |
最大長(zhǎng)度:64 |
請(qǐng)求示例
GET https://{Endpoint}/v1/{project_id}/publicips?limit=2&marker=4779ab1c-7c1a-44b1-a02e-93dfc361b32d
響應(yīng)示例
狀態(tài)碼: 200
GET操作正常返回
{
"publicips" : [ {
"tenant_id" : "8b7e35ad379141fc9df3e178bd64f55c",
"bandwidth_name" : "bandwidth-test",
"public_ip_address" : "161.xx.xx.9",
"create_time" : "2015-07-16 04:22:32",
"profile" : {
"user_id" : "35f2b308f5d64441a6fa7999fbcd4321",
"product_id" : "00301-48027-0--0",
"region_id" : "xxx",
"order_id" : "xxxxxxxxx"
},
"type" : "5_bgp",
"bandwidth_id" : "3fa5b383-5a73-4dcb-a314-c6128546d855",
"bandwidth_size" : 5,
"enterprise_project_id" : "b261ac1f-2489-4bc7-b31b-c33c3346a439",
"ip_version" : 4,
"private_ip_address" : "192.168.10.5",
"bandwidth_share_type" : "PER",
"id" : "6285e7be-fd9f-497c-bc2d-dd0bdea6efe0",
"status" : "ACTIVE",
"port_id" : "4977b983-cd4f-4ecc-93a1-cb52d848a9b3",
"public_border_group" : "center",
"allow_share_bandwidth_types" : [ "share" ]
}, {
"tenant_id" : "8b7e35ad379141fc9df3e178bd64f55c",
"bandwidth_name" : "bandwidth-test1",
"public_ip_address" : "161.xx.xx.10",
"create_time" : "2015-07-16 04:23:03",
"profile" : { },
"type" : "5_bgp",
"bandwidth_id" : "a79fd11a-047b-4f5b-8f12-99c178cc780a",
"bandwidth_size" : 5,
"enterprise_project_id" : "0",
"ip_version" : 4,
"bandwidth_share_type" : "PER",
"id" : "80d5b82e-43b9-4f82-809a-37bec5793bd4",
"status" : "DOWN",
"public_border_group" : "center",
"allow_share_bandwidth_types" : [ "share" ]
} ]
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
200 |
GET操作正常返回 |
錯(cuò)誤碼
請(qǐng)參見錯(cuò)誤碼。
最新文章
- 彈性公網(wǎng)IP有什么作用_彈性公網(wǎng)IP多少錢_如何切換彈性公網(wǎng)IP
- 什么是彈性公網(wǎng)IP_彈性公網(wǎng)IP有什么優(yōu)勢(shì)_彈性公網(wǎng)IP如何計(jì)費(fèi)
- 全域彈性公網(wǎng)IP是什么_如何創(chuàng)建全域彈性公網(wǎng)IP_將全域彈性公網(wǎng)IP綁定至實(shí)例-華為云
- 彈性公網(wǎng)IP使用_綁定彈性公網(wǎng)IP-華為云
- 快遞查詢API接口_快遞批量查詢_手機(jī)查詢快遞_位置查詢
- 免費(fèi)公網(wǎng)IP_彈性公網(wǎng)IP有什么用_公網(wǎng)IP 彈性公網(wǎng)IP
