Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new VPC API 3.0 which is standardized and faster.
This API (DeleteLocalDestinationIPPortTranslationNatRule) is used to delete the local destination IP port translation for Direct Connect gateway.
Domain for API request:vpc.api.qcloud.com
The translated IP pool cannot be in the VPC network segment. IP pool supports a single IP, IP segment (such as 183.63.0.1-183.63.0.10) and CIDR format.
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 DeleteLocalDestinationIPPortTranslationNatRule.
Parameter Name | Required | Type | Description |
---|---|---|---|
vpcId | Yes | String | The Virtual Private Cloud ID assigned by the system. Both the vpcId before upgrading and the upgraded unVpcId are supported. For example: vpc-dgd45. |
directConnectGatewayId | Yes | String | Direct Connect gateway ID assigned by the system, for example: dcg-dgd454d. |
localDestinationIPPortTranslation.n | Yes | Array | Array of local destination IP port translation rules. |
localDestinationIPPortTranslation.n.originalIP | Yes | String | Original IP. |
localDestinationIPPortTranslation.n.originalPort | Yes | String | Original port. |
localDestinationIPPortTranslation.n.translationIP | Yes | String | Translated IP. |
localDestinationIPPortTranslation.n.translationPort | Yes | String | Translated port. |
localDestinationIPPortTranslation.n.proto | Yes | String | Protocol. |
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. |
codeDesc | String | Error code. |
data | Array | Returned information. |
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 you have entered resource information correctly. This can be queried via the Querying Virtual Private Cloud List (DescribeVpcEx) API. |
InvalidDirectConnectGateway.NotFound | Invalid Direct Connect gateway. Direct Connect gateway resource does not exist. Please verify that you have entered resource information correctly. This can be queried via the Querying Direct Connect Gateway (DescribeDirectConnectGateway) API. |
InvalidLocalDestinationIPPortTranslation.NotFound | The local destination IP port translation to be modified does not exist. Please verify that you have entered resource information correctly. This can be queried via the Querying Local Destination IP Port Translation for Direct Connect Gateway (DescribeLocalDestinationIPPortTranslationNatRule) API. |
Input
https://vpc.api.qcloud.com/v2/index.php?Action=DeleteLocalDestinationIPPortTranslationNatRule &> &vpcId=vpc-csnmo39l &directConnectGatewayId=dcg-mm01ughx &localDestinationIPPortTranslation.0.originalIP=10.100.10.3 &localDestinationIPPortTranslation.0.originalPort=80 &localDestinationIPPortTranslation.0.translationIP=183.0.0.1 &localDestinationIPPortTranslation.0.translationPort=90 &localDestinationIPPortTranslation.0.proto=tcp &localDestinationIPPortTranslation.0.description=183.0.0.1
Output
{
"code":"0",
"message":"",
"codeDesc":"Success",
"data":[
]
}
Was this page helpful?