AssociateHaVip
Description
Bind HaVip to a VPC ECS instance or ENI.
Request Method
POST
Request Path
/apsara/route/Vpc/AssociateHaVip
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
InstanceId | BODY | string | Yes | i-faf344422ffsfa**** | when InstanceType is set to ecs_instance, InstanceId is the ID of the ECS instance to be bound. when InstanceType is set to network_interface, InstanceId is the ID of the ENI instance to be bound. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
HaVipId | BODY | string | Yes | havip-2zeo05qre24nhrqpyf*** | HaVip instance ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the HaVip instance. /p> p data-tag = "p" class = "p"> you can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 0c593ea1-3bea-11e9-b96b-88e9fe63**** | client Token, used to ensure the idempotence of the request. The parameter value is generated by the client. It must be unique between different requests, and the maximum value does not exceed 64 ASCII characters. description if you do not specify, the system automatically uses the RequestId requested by the API as the ClientToken identifier. The RequestId of each API request may be different. |
InstanceType | BODY | string | No | EcsInstance | the instance type to bind HaVip, value: ecs_instance (default):ECS instance. When the instance bound to HaVip is ECS, this parameter is set to ecs_instance or left blank. network_interface: ENI instance. When the instance bound to HaVip is an ENI, this parameter is set to network_interface . |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}