Deletes a DNAT entry.

Note You cannot delete a DNAT entry if the DNAT entry in the Pending or Modifying state.

Debug

By using API Explorer, you can debug APIs, automatically generate SDK example codes, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteForwardEntry

The name of this action. Value: 

DeleteForwardEntry

ForwardEntryId String Yes fwd-8vbn3bc8roygjp0gy3xk7

The ID of the DNAT entry.

ForwardTableId String Yes ftb-8vbx8xu2lqj9qb334h0ow

The ID of the DNAT table.

RegionId String Yes cn-hangzhou

The region to which the NAT Gateway belongs.

To query the region ID, call DescribeRegions.

Response parameters

Parameter Type Example value Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=DeleteForwardEntry
&ForwardEntryId=fwd-8vbn3bc8roygjp0gy3xk7
&ForwardTableId=ftb-8vbx8xu2lqj9qb334h0ow
&RegionId=cn-hangzhou
&<CommonParameters>
Response example
  • XML format

    <DeleteForwardEntryResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </DeleteForwardEntryResponse>
    
  • JSON format

    <DeleteForwardEntryResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </DeleteForwardEntryResponse>
    

Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.
400 IncorretForwardEntryStatus Some Forward entry status blocked this operation.. This operation cannot be performed because one or more DNAT entries are in the Pending or Modifying status.
404 InvalidForwardEntryId.NotFound Specified forward entry ID does not exist The specified DNAT entry does not exist.
404 InvalidForwardTableId.NotFound Specified forward table does not exist. The specified DNAT table does not exist.
400 IncorretForwardEntryStatus The Specified forwardEntry is not exist The specified DNAT entry does not exist.
400 MissingParameter Missing mandatory parameter Required parameters are missing.

See common error codes