Skip to main content

AssociateHaVip

Description

Bind HaVip to a VPC ECS instance or ENI.

Request Method

POST

Request Path

/apsara/route/Vpc/AssociateHaVip

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
InstanceIdBODYstringYesi-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.
regionIdBODYstringYesNo sample value for this parameter.region id
HaVipIdBODYstringYeshavip-2zeo05qre24nhrqpyf***HaVip instance ID.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the HaVip instance. /p> p data-tag = "p" class = "p"> you can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo0c593ea1-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.
InstanceTypeBODYstringNoEcsInstancethe 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 .
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}