日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

AssociateEipAddress - 將EIP綁定到云產品實例

調用AssociateEipAddress將彈性公網IP(EIP)綁定到同地域的云產品實例上。

接口說明

  • EIP 實例可綁定到同地域的專有網絡類型的 ECS 實例、專有網絡類型的 CLB 實例、輔助彈性網卡、NAT 網關和高可用虛擬 IP 上。

  • AssociateEipAddress 接口屬于異步接口,即系統會先返回一個請求 ID,但 EIP 實例與云產品實例并未綁定完成,系統后臺的綁定任務仍在進行。您可以調用 DescribeEipAddresses 查詢 EIP 實例的狀態:

    • 當 EIP 實例處于 Associating 狀態時,表示 EIP 實例正在綁定中,在該狀態下,您只能執行查詢操作,不能執行其他操作。
    • 當 EIP 實例處于 InUse 狀態時,表示 EIP 實例綁定完成。
  • AssociateEipAddress 接口不支持同一個 EIP 實例并發綁定云產品實例。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

下表是API對應的授權信息,可以在RAM權限策略語句的Action元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:

  • 操作:是指具體的權限點。
  • 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀?。≧ead)或列出(List)。
  • 資源類型:是指操作中支持授權的資源類型。具體說明如下:
    • 對于必選的資源類型,用背景高亮的方式表示。
    • 對于不支持資源級授權的操作,用全部資源表示。
  • 條件關鍵字:是指云產品自身定義的條件關鍵字。
  • 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作訪問級別資源類型條件關鍵字關聯操作
vpc:AssociateEipAddressupdate
  • Address
    acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
  • NatGateway
    acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
  • Instance
    acs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}
  • Association
    acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

請求參數

名稱類型必填描述示例值
RegionIdstring

要綁定云產品實例的 EIP 所在的地域 ID。

您可以通過調用 DescribeRegions 接口獲取地域 ID。

cn-hangzhou
AllocationIdstring

綁定云產品實例的 EIP 的 ID。

eip-2zeerraiwb7ujsxdc****
InstanceIdstring

要綁定 EIP 的實例 ID。

支持輸入 NAT 網關實例 ID、傳統型負載均衡 CLB 實例 ID、云服務器 ECS 實例 ID、輔助彈性網卡實例 ID、高可用虛擬 IP 實例 ID、IP 地址。

i-2zebb08phyczzawe****
InstanceTypestring

要綁定 EIP 的實例的類型,取值:

  • Nat:NAT 網關。

  • SlbInstance:傳統型負載均衡 CLB。

  • EcsInstance(默認值):云服務器 ECS。

  • NetworkInterface:輔助彈性網卡。

  • HaVip:高可用虛擬 IP。

  • IpAddress:IP 地址。

說明 默認要綁定 EIP 的實例類型為 EcsInstance,如果您需要綁定 EIP 的實例類型不為 EcsInstance,則該值必填。
EcsInstance
InstanceRegionIdstring

要綁定 EIP 的實例所屬地域的 ID。

說明 僅在 EIP 加入到帶寬共享型全球加速實例后,才需要填寫該參數。
cn-hangzhou
PrivateIpAddressstring

交換機網段內的一個 IP 地址。

如果不輸入該參數,系統根據 VPC ID 和交換機 ID 自動分配一個私網 IP 地址。

說明 InstanceType 配置為 NetworkInterface 時,該參數必填,需輸入要綁定的私網 IP。
192.168.XX.XX
Modestring

綁定模式,取值:

  • NAT(默認值):NAT 模式(普通模式)。

  • MULTI_BINDED:多 EIP 網卡可見模式。

  • BINDED:EIP 網卡可見模式。

說明 InstanceType 配置為 NetworkInterface 時,才需要配置該參數。
NAT
VpcIdstring

開通了 IPv4 網關功能且與 EIP 同地域的 VPC ID。

EIP 綁定 IP 地址時,系統可以根據該 VPC 的路由配置,使綁定的 IP 地址具備公網訪問能力。

說明 InstanceType 取值為 IpAddress 時,即要綁定 EIP 的實例類型為 IP 地址時,該參數必填。
vpc-257gqcdfvx6n****
ClientTokenstring

客戶端 Token,用于保證請求的冪等性。

從您的客戶端生成一個參數值,確保不同請求間該參數值唯一。ClientToken 只支持 ASCII 字符。

說明 若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。
0c593ea1-3bea-11e9-b96b-88e9fe63****

返回參數

名稱類型描述示例值
object

返回信息列表。

RequestIdstring

請求 ID。

0ED8D006-F706-4D23-88ED-E11ED28DCAC0

示例

正常返回示例

JSON格式

{
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400InvalidAssociation.DuplicatedSpecified instance already is associated.該實例已綁定EIP或全球加速實例,不能再綁定,如需更換實例綁定的EIP或全球加速實例,請先解綁。
400OperationDeniedSpecified instance is not in VPC.該實例在VPC中不存在。
400InvalidParameter.MismatchSpecified elastic IP address and ECS instance are not in the same region.該EIP和ECS實例不在同一個地域內。
400IncorrectEipStatusCurrent elastic IP status does not support this operation當前EIP的狀態不支持該操作。
400IncorrectInstanceStatusCurrent instance status does not support this operation.當前實例的狀態不支持該操作。
400InvalidInstanceType.ValueNotSupportedThe specified value of InstanceType is not supported.參數InstanceType的值不合法。
400IncorrectHaVipStatusHaVip can be operated by this action only when it's status is Available or InUse.Havip實例為Available或InUse才允許操作
400InvalidParameterThe specified parameter is not valid.該參數值不合法。
400OperationDeniedEip of default vpc not allow this operation默認專有網絡的EIP不支持該操作。
400TaskConflictThe eip operate too frequent, TaskConflict.操作過于頻繁,任務沖突。
400InvalidBindingStatusThe eip binding status invalid.EIP綁定狀態不正確。
400BIND_INSTANCE_HAVE_PORTMAP_OR_BIND_EIPThe instance may have portMap or already bind eip.ECS 實例已經存在端口轉發規則,請刪除相應的端口轉發規則再進行操作。
400EIP_CAN_NOT_ASSOCIATE_WITH_PUBLIC_IPinstance already bind natpublicip,cannot bind eip.-
400BIND_INSTANCE_OWENER_ERRORCannot operate the eip.不能操作這個EIP。
400NATGATEWAY_FINANCIALLOCKEDThe NatGateway has expire, cannot do bind operation.-
400InvalidParameter.InstanceTypeNotSupportThe specified instance type is not support.-
400QuotaExceeded.NumberOfTrafficEipThe number of traffic eip on natgw exceed limitation.-
400QuotaExceeded.NumberOfEipBinded eip Quota exceed on this NatGw.此NAT網關上,綁定的EIP數量已經超出配額限制
400Forbidden.EipCanNotBindGatgwEip can not bind on natgw.-
400InvalidAction.DeniedAction is denied due to unfinished Eip configuration modification.由于未完成Eip配置修改,操作被拒絕。
400InstanceType.NotSupportThe instance type is invalid.-
400InvalidParams.NotFoundinstance not found實例不存在。
400BindInstance.NotSupportedbind instance type %s is not supported.-
400Forbidden.InstanceBandwidthNotZeroEip can not bind with instance when it's bandwidth is not zero.-
400INSTANCE_TYPE_NOT_SUPPORTThe instance type is invalid.-
400ServerRegion.InvalidEip bind remote server region invalid.-
400Eni.AttachedThe eni should be detached from ecs when associating with direct eip.當ENI綁定直通EIP時,需要ENI與ECS解綁
400Eni.HasSubIpEni has sub ip can not bind direct eip.-
400Invalid.DirectEip.BindTypeThe direct eip can be only associated with eni.-
400InvalidStatus.EcsStatusNotSupportThe special instance status is not support operate-
400Invalid.Function.NotSupportedMulti-IP function is under test, the region or uid is not supported.-
400InvalidStatus.EniStatusNotSupport%s-
400InvalidParameter.EniInstanceId%s-
400InvalidNexthop.DirectEniThe direct Eni cannot be nexthop.直通Eni不能作為下一跳
400Mode.ConflictThe eni can bind only one mode of eip.-
400Mode.NotSupportThe user cannot use multi direct eip.-
400QuotaExceed.MultiBindedEipThe number of multi binded eip is over limit.-
400InvalidEIPStatus.BizDisabledThe EIP has been locked.EIP實例被鎖定
400OperationFailed.EniSubIpEni has sub ip can not bind direct eip.-
400InvalidEip.EipQuotaExceededThe specified eni assigned eip is more than privateIp.-
400OperationFailed.QueryCommodityInfoOperation failed because quey commodity info error.-
400OperationUnsupported.MultiIpMulti ip function is not support.-
400InvalidNicOrVm.NotFoundBind nic or vm not exist.指定綁定的網卡或VM不存在。
400OperationUnsupported.EipBindModelThe instance type of ecs does not support MULTI_BINDED model Eip.-
400IncorrectStatus.NatGateway%s-
400EipBindRemote.BackendRegionMustBeSingleeip bind remote instance, backend region must be single-
400InvalidParameter.BindingInstanceRegionThe specified BindingInstanceRegion is not supported.-
400OperationFailed.HavipBoundPortmap%s-
400IllegalParam.Mode%s-
400InvalidStatus.NotAllowBind instance status invalid綁定實例狀態無效
400InvalidInstance.NotExistBind instance data not exist-
400InvalidBandwidthPackageId.NotFoundThe specified BandwidthPackageId not exist.-
400ResourceQueryErrorThe specified resource is queried error.查詢指定的資源時出錯。
400InvalidStatus.InstanceHasBandWidthThe specified instance bandwidth invalid.-
400OperationDenied.CloudBoxResourceExistThe operation is not allowed because there are resources related to the cloud box in VPC.指定操作被禁止,因為VPC中存在云盒相關的資源。
400OperationDenied.CloudBoxVSwitchExistThe operation is not allowed because a cloud box type vSwitch exists in VPC.指定操作被禁止,因為VPC中存在云盒類型的虛擬交換機。
400OperationDenied.NoAvailablePrivateIpThe operation is failed because of vSwitch has not availalbe private ip當前虛擬交換機下的可用私網IP不足
400UnsupportedRegion%s-
400ResourceAlreadyAssociated.IpAddress%s-
400OperationFailed.Ipv4GatewayNotOpenedInVpcThe operation is failed because Ipv4Gateway is not opened in Vpc.EIP綁定IP失敗,因為該VPC未開啟IPv4網關.
400OperationFailed.Ipv4GatewayNotActivatedInVpcThe operation is failed because Ipv4Gateway is not activated in Vpc.-
400OperationDenied.L2EipBindIpAddress%s-
400ForbiddenThe eip instance owner errorEIP 不屬于當前調用者,請您檢查該 EIP 是否可被您調用。
400Forbidden.FinancialLockedThe ip business status is invalid.該實例已欠費鎖定,無法操作
400UnsupportedFeature.EipBindIpAddressThe feature of EipBindIpAddress is not supported.Eip綁定IpAddress特性不支持。
400OperationFailed.InstanceNotExistThe ECS instance does not exist, or is not a VPC VM.ECS綁定EIP失敗,因為ECS實例不存在或不是VPC虛擬機.
400OperationDenied.Ipv4GatewayExistThe operation is not allowed because of Ipv4GatewayExist.EIP綁定操作失敗,因為此VPC下存在Ipv4網關
400OperationFailed.EipBindModeConflictEips can not bind Eni with NAT mode and MULTI_BINDED mode at the same time.Eip不能同時以NAT模式和多EIP網卡可見模式綁定ENI.
400OperationFailed.EcsMigratingThe operation is failed because of ECS is migrating.綁定操作失敗,因為ECS正在遷移。
400OperationFailed.IpPrefixConflictThe operation failed due to the IP prefix of the ENI.當前操作與彈性網卡的IP Prefix沖突。
400UnsupportedFeature.EipBindPrefixIpThe feature of EipBindPrefixIp is not supported.當前地域不支持EIP綁定PrefixIp
400OperationDenied.UnsupportedEipBindModeThe operation is not supported for the NAT gateway due to its EIP binding mode.此NAT網關的EIP綁定類型不支持此操作。
400OperationDenied.UnauthorizedThe operation is not allowed because the user is not in the whitelist.此操作不被允許,用戶不在白名單。
400OperationFailed.SystemBusyOperation failed because system is busy.系統繁忙,請稍后重試
400OperationFailed.PrivateIpAddressNotExistThe operation failed because the PrivateIpAddress is not found.您傳入的私網IP地址不存在。
400IllegalParamFormat.%sThe param format of %s is illegal.參數模式非法
404InvalidAllocationId.NotFoundSpecified allocation ID is not found.指定的公網 IP 不存在,請您檢查填寫的公網 IP 是否正確。
404InvalidInstanId.NotFoundSpecified instance does not exist.指定的實例不存在,請您檢查該實例是否正確。
404InvalidRegionId.NotFoundSpecified value of InstanceRegionId is not supported.-
404InvalidAllocationId.NotFoundSpecified allocation ID is not found指定的公網IP不存在,請您檢查您填寫的參數是否正確。
404Forbidden.RegionNotFoundSpecified instance is not found during access authentication.當前Region不支持
404OperationDenied.VpcIpv4GatewayEnabledThe operation is not allowed because of the VPC of the NAT gateway has opened IPv4 Gateway.不允許操作,因為NAT網關的VPC已經開啟IPv4網關
503ServiceUnavailableThe request has failed due to a temporary failure of the server.請求失敗,因為臨時服務器故障。

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
2023-12-13OpenAPI 錯誤碼發生變更查看變更詳情
2023-08-24OpenAPI 描述信息更新、OpenAPI 錯誤碼發生變更查看變更詳情
2023-06-26OpenAPI 錯誤碼發生變更查看變更詳情
2023-03-23OpenAPI 錯誤碼發生變更查看變更詳情