Deletes an Internet network address translation (NAT) gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteNatGateway |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NatGatewayId |
string |
Yes |
The ID of the NAT gateway that you want to delete. |
nat-5t7nh1cfm6kxiszlttr38**** |
| ForceDelete |
boolean |
No |
Specifies whether to forcefully delete the NAT instance. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | InvalidParameter.NatNotFound | The specified Nat is not found. | The specified parameter Nat does not exist. |
| 400 | DependencyViolation.NatRule | DependencyViolation.SNAT/DNAT | |
| 400 | DependencyViolation.Eip | DependencyViolation.Eip | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InstanceIdNotFound | No instance ID found. Enter a valid instance ID. | No instance ID found. Enter a valid instance ID. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.