IPAllocate【申请公网IP】¶
申请公网IP:可使用公网IP资源ID来申请公网IP。 如果不指定任何申请条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
billing_type | String | 计费类型,有效值有hour | Yes |
pool_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": "IPAllocate",
"billing_type": "hour"
"pool_id": "4303951f-a281-44b9-81b6-0fe257e1a2f8"
}
Example Response:
{
"message": "成功",
"code": 200
}