GetFloatingIPs【获取已申请公网IP】¶
获取租户已申请的公网IP信息列表
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Array | JSON 格式的公网 IP 信息列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
status | String | 状态 |
pool_name | String | 设备类型 |
ip | String | 公网 IP |
instance_name | String | 连接设备 |
port_id | String | 连接设备的端口 ID |
id | String | 公网 IP对应 ID |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded
Form Data:
action: GetFloatingIPs
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"status": "DOWN",
"pool_name": "",
"ip": "58.67.194.160",
"instance_name": "",
"port_id": null,
"id": "56c1c284-0f26-4af2-9b97-32c84ad8ea4d"
}
]
}