IPAssociation【公网IP绑定到设备】¶
公网IP绑定到云主机网卡或负载均衡器VIP上:可指定云主机网卡ID和IP拼接标识符或负载均衡器VIP对应的ID和IP拼接标识符、公网IP对应ID来绑定公网IP。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
port_id | String | 云主机网卡ID和IP拼接标识符或负载均衡器VIP对应的ID和IP拼接标识符 | Yes |
ip_id | String | 公网 IP 对应 ID | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "IPAssociation",
"port_id": "707adec2-0de6-42d3-8bdd-de1b2e944e44_192.168.24.8",
"ip_id": "56c1c284-0f26-4af2-9b97-32c84ad8ea4d"
}
Example Response:
{
"message": "成功",
"code": 200
}