调用AssociateEnsEipAddress将弹性公网IP(EIP)绑定到同节点的云产品实例上。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AllocationId | string | 是 | 待绑定 EIP 的 ID。 | eip-5sc1sgcrsrwgwdvx44hru**** |
InstanceId | string | 是 | 绑定 EIP 的云产品 ID。 说明
支持负载均衡(ELB)实例 ID。
| lb-5saivuir6b1mupxjfbhmk**** |
InstanceType | string | 否 | EIP 实例的类型,取值:
| SlbInstance |
Standby | boolean | 否 | 是否备用 EIP。取值:
| true |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | RegionAccessDenied | Could not operate this region's resource | - |
400 | InstanceNotFound | The input parameter instancdId that is not found. | 指定的InstanceId不存在。 |
400 | ens.interface.error | An error occurred while call the API. | - |
400 | Invalid%s | The specified parameter %s is invalid. | 参数不正确 |
400 | Missing%s | You must specify the parameter %s. | 参数为必填 |
400 | IncorrectEipStatus | The current status of the resource does not support this operation. | Eip状态不正确,请检查Eip状态。 |
400 | InvalidAssociation.Duplicated | Specified instance already is associated. | - |
400 | LoadBalancerNotFound | The input parameter allocationId that is not found. | - |
400 | EipNotFound | The input parameter allocationId that is not found. | - |
400 | IncorrectInstanceStatus | Current instance status does not support this operation. | - |
400 | InvalidAssociation.AssociateEipFist | Associate EIP first. | - |
400 | InvalidAssociation.RegionNotSupportStandby | The region of EIP does not support standby. | - |
400 | NatNotFound | The input parameter allocationId that is not found. | - |
400 | InvalidAssociation.NetworkTypeNotSupport | The instance network type does not support binding to EIP. | - |
400 | EniNotFound | The input parameter allocationId that is not found. | - |
400 | IncorrectEniStatus | Current instance status does not support this operation. | - |
400 | InvalidParameter.EniServiceManaged | The eni is managed by service. | - |
400 | InvalidAssociation.EniNotSupportStandby | Eni does not support standby eip. | - |
400 | IncorrectEniType | The type of eni is invalid. | - |
400 | NoPermission | Permission denied. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-09-05 | OpenAPI 错误码发生变更 | 查看变更详情 |
2024-01-23 | OpenAPI 错误码发生变更 | 查看变更详情 |
2023-09-21 | OpenAPI 错误码发生变更 | 查看变更详情 |
2023-07-18 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |
2023-03-14 | OpenAPI 错误码发生变更 | 查看变更详情 |