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 (DeleteLocalIPTranslationNatRule) is used to delete the peer IP translation for Direct Connect gateway.
Domain for API request:vpc.api.qcloud.com
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 DeletePeerIPTranslationNatRule.
Parameter Name | Required | Type | Description |
---|---|---|---|
vpcId | Yes | String | Virtual private cloud ID or unified ID (unified ID is recommended). |
directConnectGatewayId | Yes | String | Direct Connect gateway ID. |
peerIPTranslation.n | Yes | Array | Array of peer IP translation rules. |
peerIPTranslation.n.originalIP | Yes | String | Original IP. |
peerIPTranslation.n.translationIP | Yes | String | Translated IP. |
Parameter Name | Type | Description |
---|---|---|
code | Int | Common error code. A value of 0 indicates success, and other values indicate failure. 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 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. |
InvalidPeerIPTranslation.NotFound | Invalid peer IP translation rules. Peer IP translation rule does not exist. Please verify that the resource information you entered is correct. This can be queried via the Query Peer IP Translation for Direct Connect Gateway (DescribePeerIPTranslationNatRule) API. |
Input
https://vpc.api.qcloud.com/v2/index.php?Action=DeletePeerIPTranslationNatRule &> &vpcId=vpc-csnmo39l &directConnectGatewayId=dcg-mm01ughx &peerIPTranslation.0.originalIP=10.100.10.3 &peerIPTranslation.0.translationIP=183.0.0.1 &peerIPTranslation.0.description=183.0.0.1
Output
{
"code":"0",
"message":"",
"codeDesc":"Success",
]
}
Was this page helpful?