edit-icon download-icon


Last Updated: Apr 12, 2018


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: ModifyForwardEntry

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 Yes The public IP address.
IpProtocol String Yes

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 Yes The private IP address.
InternalPort String Yes

The private port.

Valid value: [1, 65535]

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.


Request example

  1. https://vpc.aliyuncs.com/?Action=ModifyForwardEntry
  2. &RegionId=cn-shanghai
  3. &ForwardEntryId=fwd-11iv34uj7
  4. &InternalIp=
  5. &<CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId": "24CC85DC-7700-4F09-9624-99E988C7DD03"
  3. }
Thank you! We've received your feedback.