调用 AssociateHaVip 接口,将高可用虚拟IP(HAVIP)与云服务器实例或网卡绑定。
说明
高可用虚拟IP正在邀测中,暂仅支持完成 企业认证 的账号申请试用,如需试用,请联系客户经理。
InstanceType
值为HaVip
。参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AssociateHaVip | 要执行的操作,取值:AssociateHaVip。 |
Version | String | 是 | 2020-04-01 | API版本信息,取值为:2020-04-01。 |
HaVipId | String | 是 | havip-2zeo05qre24nhrqpy**** | 要绑定的高可用虚拟IP的ID。 |
InstanceType | String | 否 | EcsInstance | 绑定高可用虚拟IP的实例的类型。取值如下:
|
InstanceId | String | 是 | i-faf344422ffsfad**** | 绑定高可用虚拟IP的实例的ID。 说明 如果未指定 |
ClientToken | String | 否 | 123e4567-e89b-12d3-a456-42665544**** | 客户端Token,用于保证请求幂等性。
|
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | F3CD6886-D8D0-4FEE-B93E-1B732396**** | 请求ID。 |
GET /?Action=AssociateHaVip&Version=2020-04-01&HaVipId=havip-2zeo05qre24nhrqpy****&InstanceId=i-faf344422ffsfad****&InstanceType=EcsInstance HTTP/1.1 Host: open.volcengineapi.com Service: vpc Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "F3CD6886-D8D0-4FEE-B93E-1B732396****", "Action": "AssociateHaVip", "Version": "2020-04-01", "Service": "vpc", "Region": "cn-beijing" }, "Result": { "RequestId": "F3CD6886-D8D0-4FEE-B93E-1B732396****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IdempotentParameterMismatch | Arguments on this idempotent request are inconsistent with arguments used in previous request(s). | 此幂等请求的参数与前一个请求中使用的参数不一致。 |
400 | InvalidEni.InvalidStatus | The specified elastic network interface is not in the correct status for the request. | 指定的弹性网卡所处的状态无法响应该请求。 |
400 | InvalidHaVip.InvalidStatus | The specified HaVip is not in the correct status for the request. | 指定的高可用虚拟IP所处状态无法响应该请求。 |
400 | InvalidHaVip.NotSupport | The specified HaVip does not support this operation | 指定的高可用虚拟IP不支持此操作。 |
400 | InvalidInstance.HaVipMismatch | The specified instance and HaVip are in different subnets. | 指定的实例和高可用虚拟IP不在同一个子网内。 |
400 | InvalidInstance.InvalidStatus | The specified instance is not in the correct status for the request. | 指定的ECS实例所处的状态无法响应该请求。 |
400 | InvalidInstanceType.Malformed | The specified instance type is malformed. | 指定的实例类型不合法。 |
400 | InvalidParameter.ClientTokenMalformed | The specified parameter ClientToken is malformed. | 指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。 |
400 | LimitExceeded.HaVipsPerInstance | You've reached the limit on the number of HaVips that you can associate with an instance. | 已达到每个实例可绑定的高可用虚拟IP数量上限。 |
400 | LimitExceeded.InstancesPerHaVip | You've reached the limit on the number of instances that you can associate with a HaVip. | 已达到每个高可用虚拟IP可绑定的实例数量上限。 |
403 | Forbidden | You are not authorized to perform operations on the specified elastic network interface. The specified elastic network interface is not attached to ECS. | 无权限对指定弹性网卡进行操作。指定的弹性网卡绑定的类型不是ECS。 |
403 | Forbidden | You are not authorized to perform operations on the specified HaVip. Cannot bind HaVip to multiple instance types. | 无权限对指定高可用虚拟IP进行操作。指定的高可用虚拟IP不能同时绑定ECS和弹性网卡。 |
403 | Forbidden | You are not authorized to perform operations on the specified elastic network interface. Cannot associate HaVip with two elastic network interface in the same ECS instance. | 无权限对指定弹性网卡进行操作。不允许将高可用虚拟IP绑定到同一台ECS上的两张网卡。 |
403 | Forbidden | You are not authorized to perform operations on the specified elastic network interface. The specified elastic network interface is a service-managed elastic network interface. | 无权限对指定弹性网卡进行操作。指定的弹性网卡为云产品托管的弹性网卡。 |
403 | Forbidden | You are not authorized to perform operations on the specified instance. The specified instance is associated with a HaVip. | 无权限对指定实例进行操作。指定的实例已经绑定了高可用虚拟IP。 |
404 | InvalidEniId.NotFound | The specified elastic network interface does not exist. | 指定的弹性网卡不存在。 |
404 | InvalidHaVip.NotFound | The specified HaVip does not exist. | 指定的高可用虚拟IP不存在。 |
404 | InvalidInstance.NotFound | The specified instance does not exist. | 指定的ECS实例不存在。 |
412 | IdempotentProcessing | The request uses the same client token as a previous one that is still in process. | 幂等请求处理中。 |