AssociateHaVip_边缘节点服务 ENS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

在调用本接口绑定高可用虚拟 IP 时,请注意:

  • HaVip 绑定后,无需重启 ENS 实例,但需要将 HaVip 配置到 ENS 实例的弹性网卡上。
  • HaVip 和要绑定的 ENS 实例必须同属于一个交换机。
  • 要绑定的 ENS 实例的状态必须为运行中或已停止。
  • HaVip 实例的状态必须为 Available 或 InUse。
  • AssociateHaVip 接口属于异步接口,即系统返回一个请求 ID,但该 HaVip 并未绑定完成,系统后台的绑定任务仍在进行。您可以调用 DescribeHaVips 查询 HaVip 的绑定状态:
    • 当 HaVip 处于 Associating 状态时,表示 HaVip 正在绑定中。
    • 当 HaVip 处于 InUse 状态时,表示 HaVip 绑定完成。

流控信息

请求速率为10/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ens:AssociateHaVip
Update
HaVip
acs:ens::{#accountId}:havip/{#HaVipId}

请求参数

字段名称字段详情
HaVipIdstring

要绑定的 HaVip 实例 ID。

示例值:havip-5p14t****参考取值来源:
    CreateHaVip
    DescribeHaVips
InstanceIdstring

实例 ID。

示例值:i-50c4****参考取值来源:
    RunInstances
    CreateInstance
    MountInstanceSDG
    AttachInstanceSDG
    DescribeInstances
    DeployInstanceSDG
    RemoveInstanceSDG
    UnmountInstanceSDG
    ModifyInstanceChargeType
    AddNetworkInterfaceToInstance
InstanceTypestring

要绑定 HaVip 的实例类型,取值:展开详情

示例值:EnsInstance枚举值:EnsInstanceNetworkInterface参考取值来源:
    DescribeInstanceTypes
    CreateInstance

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:CEF72CEB-54B6-4AE8-B225-F876FF7BA984

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InstanceNotFound
The input parameter instancdId that is not found.诊断
400
Invalid%s
The specified parameter %s is invalid.诊断
400
Missing%s
You must specify the parameter %s.诊断
400
HaVipNotFound
The input parameter haVipId that is not found.诊断
400
IncorrectHaVipStatus
The status of the haVip is invalid.诊断
400
SystemError
Interface call error, please re-match, or contact the product.诊断
400
InstanceAlreadyAssociated
The instance is already bound.诊断
400
IncorrectNetworkInterfaceStatus
The operation could not be completed because the status of the specified network interface is invalid for this action.诊断
400
NetworkInterfaceNotFound
The specified network interface does not exist.诊断
400
NetworkInterfaceTypeNotSupported
This network interface type cannot be used with the current operation.诊断
400
IncorrectInstanceVSwitch
The binding instance must be under the same VSwitch.诊断
400
IncorrectInstanceStatus
The current status of the instance does not support this operation.诊断
400
CountLimitExceed.HaVipOnInstance
The amount of HaVip associated with the specified Instance reach its limits.诊断
400
CountLimitExceed.InstanceOnHaVip
The number of instances bound to HaVip has reached the limit.诊断
400
NoPermission
Permission denied.诊断
400
InvalidParameter.%s
The specified field %s invalid. Please check it again.诊断

变更历史

暂无变更历史

相关示例