Unbind NAT Gateway with EIP

Last updated: 2019-11-29 16:27:52

PDF

1. API Description

This API (EipUnBindNatGateway) is used to unbind EIP from NAT gateway.
Domain for API request: vpc.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters.

Parameter Name Required Type Description
natId Yes String Unified ID of NAT gateway, for example: nat-8pbrkzh6
vpcId Yes String Virtual private cloud ID or unified ID (unified ID is recommended), for example: vpc-ddf411
assignedEipSet.n Yes array Elastic IP array, for example: assignedEipSet.0=183.60.249.122

3. Output Parameters

Parameter Name Type Description
code Int Error code. 0: Succeeded; other values: Failed
message string Error message
taskId int Task ID. The operation result can be queried with taskId.

4. Error Code List

The following error code list only provides the business logic error codes for this API. For additional common error codes, refer to VPC Error Codes.

Error Code Description
InvalidVpc.NotFound Invalid VPC. VPC resource does not exist. Please verify that the resource information you entered is correct. You can query the VPC via the DescribeVpcEx API
InvalidNatGatewayId.NotFound Invalid NAT gateway, NAT gateway resource does not exist. Please verify that the resource information you entered is correct. You can query the NAT gateway via the DescribeNatGateway API
NatGatewayEipNotEmpty NAT gateway must retain an EIP, the last EIP can not be unbound

5. Example

Input

https://vpc.api.qcloud.com/v2/index.php?Action=EipUnBindNatGateway
&>
&natId=nat-8pbrkzh6
&vpcId=vpc-ddf411
&assignedEipSet.0=183.60.249.122

Output

{
    "code":"0",
    "message":"",
    "taskId":16168
}