Deletes a DNAT entry.

Note If any DNAT entry in the DNAT table is in the Pending or Modifying state, you cannot delete any DNAT entries.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

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 to be deleted.

ForwardTableId String Yes ftb-8vbx8xu2lqj9qb334h0ow

The ID of the DNAT table.

RegionId String Yes cn-hangzhou

The ID of 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

{
	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Errors

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.. You cannot perform this operation because one or more DNAT entries are in the Pending or Modifying state.
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.

For a list of error codes, visit the API Error Center.