Modify a DNAT entry.

Note You cannot modify a DNAT entry if any DNAT entry in the DNAT table is in the Pending or Modifying status.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value: 


RegionId String Yes

The region of the NAT gateway.

You can obtain the region ID by calling the DescribeRegions API.

ForwardTableId String Yes

The ID of the DNAT table.

ForwardEntryId String Yes

 The ID of the DNAT entry.

ExternalIp String No

The public IP address.

IpProtocol String No
The protocol type. Valid value:
  • TCP: forward TCP packets.

  • UDP: forward UDP packets.

  • Any: forward all packets.

ExternalPort String No The public port. Valid value: [1, 65535]
InternalIp String No The target private IP.
InternalPort String No The target private port. Valid value: [1, 65535]

Response parameters

Name Type Description
RequestId String The ID of the request.


Request example
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8" ? >
  • JSON format

      "ForwardEntryId": "fwd-119smw5tk",
      "RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3"