Adds a FULLNAT entry to the FULLNAT table.
Operation description
-
CreateFullNatEntry is an asynchronous operation. After you send a request to call this operation, the system returns a FULLNAT entry and the FULLNAT entry is being added in the backend. You can call the ListFullNatEntries operation to query the status of a FULLNAT entry.
- If the FULLNAT entry is in the Creating state, the system is adding the FULLNAT entry. You can only query the status of the FULLNAT entry, but cannot perform other operations.
- If the FULLNAT entry is in the Available state, the FULLNAT entry is added.
-
You cannot repeatedly call the CreateFullNatEntry operation for the same VPN gateway within the specified period of time.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the value of RequestId as the value of ClientToken. The request ID may be different for each request.
| 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
FullNatTableId | string | Yes | The ID of the FULLNAT table to which the FULLNAT entry belongs. | fulltb-gw88z7hhlv43rmb26**** |
NetworkInterfaceId | string | Yes | The elastic network interface (ENI) ID. | eni-gw8g131ef2dnbu3k**** |
NatIp | string | Yes | The NAT IP address that provides address translation. | 192.168.XX.XX |
NatIpPort | string | Yes | The frontend port to be modified in the mapping of FULLNAT port. Valid values: 1 to 65535. | 80 |
AccessIp | string | Yes | The backend IP address to be modified in FULLNAT address translation. | 192.168.XX.XX |
AccessPort | string | Yes | The backend port to be modified in the mapping of FULLNAT port. Valid values: 1 to 65535. | 80 |
IpProtocol | string | Yes | The protocol of the packets that are forwarded by the port. Valid values:
| TCP |
FullNatEntryName | string | No | The FULLNAT entry name. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://. | test |
FullNatEntryDescription | string | No | The description of the FULLNAT entry. This parameter is optional. If you enter a description, the description must be 2 to 256 characters in length, and cannot start with | abc |
DryRun | boolean | No | Specifies whether to only precheck this request. Valid values:
| false |
RegionId | string | Yes | The region ID of the Virtual Private Cloud (VPC) NAT gateway to which the FULLNAT entry to be added belongs. You can call the DescribeRegions operation to query the most recent region list. | eu-central-1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3",
"FullNatEntryId": "fullnat-gw8fz23jezpbblf1j****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.NatIp | The specified resource of %s is not found. | The specified NatIp parameter is not found. |
400 | IllegalParamFormat.NatIp | The param format of %s[%s] is illegal. | The parameter format of NatIp is invalid. |
400 | UnsupportedFeature.PrivateLinkMode | The feature of %s is not supported. | The feature of reverse access is not supported. |
400 | QuotaExceeded.FullNatEntry | The quota of %s is exceeded, usage %s/%s. | The quota of FullNatEntry has been reached. |
400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | The status of NatIp is incorrect. |
400 | ResourceAlreadyExist.FullNatEntry | The specified resource of %s is already exist. | The FULLNAT rule already exists. |
400 | IncorrectStatus.NetworkInterface | The status of network interface is incorrect. | The status of the ENI is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-09 | The Error code has changed | View Change Details |
2024-06-06 | The Error code has changed | View Change Details |
2023-03-20 | The Error code has changed | View Change Details |