LBUpdateVip【修改VIP】¶
修改虚拟服务地址(VIP):可更改虚拟服务地址名称、描述、会话持久性策略、最大连接数,如果不指定任何修改条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
vip_id | String | 虚拟服务地址ID | Yes |
name | String | 虚拟服务地址新名称 | Yes |
description | String | 虚拟服务地址的新描述 | No |
pool_id | String | 资源池ID | Yes |
session_persistence | String | 会话持久性新策略 | No |
cookie_name | String | COOKIE新名称 | No |
connection_limit | String | 新连接数限制 | Yes |
admin_state_up | Integer | 管理员状态(默认为1) | 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": "LBUpdateVip",
"vip_id": "55a3b961-5fd8-49a7-9684-67e4dfc94111",
"name": "VIP",
"description": "test",
"pool_id": "143b4103-f5f5-4456-9b60-28ff891a66fa",
"session_persistence": "HTTP_COOKIE",
"cookie_name": "",
"connection_limit": "100",
"admin_state_up": 1
}
Example Response:
{
"message": "成功",
"code": 200
}