edit-icon download-icon

UnassociateEipAddress

Last Updated: Apr 20, 2018

Description

Unbind an EIP from a cloud resource.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: UnassociateEipAddress

AllocationId String Yes

The ID of the EIP.

InstanceType String No

The cloud resource to unbind. Valid value:

  • EcsInstance(Default): an ECS instance of the VPC network
  • SlbInstance: an SLB instance of the VPC network
  • Nat: NAT Gateway
  • HAVIP: HAVIP instance
Force Boolean Np

Whether to unbind the EIP from a NAT Gateway by force. Valid value:

    True | False (Default value)

Note: The SNAT table or the DNAT table associated with the EIP will be deleted if the EIP is unbound by force.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=UnassociateEipAddress
  2. &AllocationId=eip-2578g5v5a
  3. &InstanceId=i-25skktcp4
  4. &<CommonParameters>

Response example

XML format

  1. <UnassociateEipAddressResponse>
  2. <RequestId>220F3179-5238-47F0-A0CA-1272AA2BC41F </RequestId>
  3. </UnassociateEipAddressResponse>

JSONformat

  1. {
  2. "RequestId": "220F3179-5238-47F0-A0CA-1272AA2BC41F"
  3. }
Thank you! We've received your feedback.