Delete Local Source IP Port Translation

Last updated: 2017-12-05 16:58:39

1. API Description

This API (DeleteLocalSourceIPPortTranslationNatRule) is used to delete the local source IP port translation for Direct Connect gateway.
Domain for API request:vpc.api.qcloud.com

Errors will occur when deleting a rule that does not exist.

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. The Action field for this API is DeleteLocalSourceIPPortTranslationNatRule.

Parameter Name Required Type Description
vpcId Yes String VPC ID assigned by the system. Support both vpcId before the upgrade and unVpcId after the upgrade.
directConnectGatewayId Yes String Direct Connect gateway ID assigned by the system.
localSourceIPPortTranslation.n Yes array local source address translation array.
localSourceIPPortTranslation.n.translationIPPool Yes string Translated IP pool.

3. Output Parameters

Parameter Name Type Description
code Int Common error code; 0: Succeeded; other values: Failed. For more information, please refer to Common Error Codes on the Error Code page.
message String Module error message description depending on API.
data Array Returned data.
data.taskId Int Task ID. The operation result can be queried with taskId. For more information, refer to API for Querying Task Execution Result.
codeDesc String Error code.

4. Error Code Table

The following 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. This can be queried via the Query Virtual Private Cloud List (DescribeVpcEx) API.
InvalidDirectConnectGateway.NotFound Invalid Direct Connect gateway. Direct Connect gateway resource does not exist. Please verify that the resource information you entered is correct. This can be queried via the Query Direct Connect Gateway (DescribeDirectConnectGateway) API.
InvalidTranslationIPPool.NotFound Invalid translated IP pool. Translated IP pool does not exist. Please verify that the resource information you entered is correct. This can be queried via the Query Local Source IP Port Translation for Direct Connect gateway (DescribeLocalSourceIPPortTranslationNatRule) API.

5. Example

Input


https://vpc.api.qcloud.com/v2/index.php?Action=DeleteLocalSourceIPPortTranslationNatRule
&vpcId=vpc-csnmo39l
&directConnectGatewayId=dcg-mm01ughx
&localSourceIPPortTranslation.0.translationIPPool=183.12.63.0-183.12.63.20
&Common request parameters

Output

{
    "code":"0",
    "message":"",
    "data":{
        "taskId":"17923"
    },
    "codeDesc":"Success"
}