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 (ModifyPeerIPTranslationNatRule) is used to modify the peer IP translation rules for Direct Connect gateway.
Domain for API request:vpc.api.qcloud.com
This API is used to modify the peer IP translation rules for the specified Direct Connect gateway.
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 ModifyPeerIPTranslationNatRule.
Parameter Name | Required | Type | Description |
---|---|---|---|
vpcId | Yes | String | Virtual private cloud ID assigned by the system, for example: vpc-dfg5445. |
directConnectGatewayId | Yes | String | Direct Connect gateway ID assigned by the system, for example: dcg-4d545d. |
oldOriginalIP | Yes | String | The original IP before modification. |
oldTranslationIP | Yes | String | The translated IP before modification. |
originalIP | No | String | Original IP. |
translationIP | No | String | Translated IP. |
description | No | String | Note. |
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. |
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. |
InvalidPeerIPTranslation.NotFound | Invalid peer IP translation rules. Peer IP translation rule does not exist. Please verify that the resource information you entered is correct. |
InvalidOriginalIP.Duplicate | Invalid original IP. Duplication of original IP. The original IP has already existed in the local IP Direct Connect rules of the gateway. The original IP must be unique. |
InvalidTranslationIP.InVpcCidr | Invalid translated IP. The translated IP is in the VPC network segment. |
InvalidTranslationIP.Duplicate | Invalid translated IP. Duplication of translated IP. The translated IP has already existed in the local IP Direct Connect rules of the gateway. The translated IP must be unique. |
Input
https://vpc.api.qcloud.com/v2/index.php?Action=ModifyPeerIPTranslationNatRule &<Common request parameters> &vpcId=vpc-dfgg190 &directConnectGatewayId=dcg-ddf14d &oldOriginalIP=10.0.0.1 &oldTranslationIP=138.0.0.1 &originalIP=10.0.0.5 &translationIP=138.0.0.11
Output
{
"code":"0",
"message":""
}
Was this page helpful?