Delete Port Forwarding Rules

Last updated: 2018-07-25 11:30:17

1. API Description

This API (DeleteDnaptRule) is used to delete NAT gateway port forwarding rules.
Domain for API request:

To use this API, please read NAT Gateway Introduction before you start

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common request parameters. Action of this API is DeleteDnaptRule.

Parameter Name Required Type Description
vpcId No String Virtual private cloud ID, for example: vpc-8e0ypm3z
natId No String NAT gateway ID, for example: nat-dqbak2vy
dnatList Yes array The list of port forwarding rules you want to delete
dnatList.N.proto Yes string Protocol, the value can be tcp or udp
dnatList.N.eip Yes string External IP (associated EIP)
dnatList.N.eport Yes string External port number

3. Output Parameters

Parameter Name Type Description
code int Error code, 0: Succeeded, other values: Failed
message string Error message

4. Error Codes

No specific error codes for this API. Please see VPC Error Codes to learn more about common error codes.

5. Sample Codes

&<Common request parameter>