Delete a Managed NAT Gateway
Last updated
Was this helpful?
Permanently remove a NAT gateway and all its associated resources from your data center using the DELETE request.
Warning:
The operation is irreversible; you cannot undo the deletion once it begins.
Deleting a NAT gateway terminates all active connections routed through it. It is recommended to update your routing configurations before you proceed with the deletion.
https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/natgateways/{natGatewayId}
curl --location \
--request DELETE 'https://api.ionos.com/cloudapi/v6/datacenters/15f67991-0f51-4efc-a8ad-ef1fb31a480c/natgateways/d8fbc8e1-491b-4253-8c85-0cfeb3ee8728' \
--header 'Authorization: Bearer $IONOS_TOKEN'Include the following mandatory fields in the request header to authenticate your requests:
Header Parameters
Required
Type
Description
Authorization
yes
string
Use a Bearer token to authenticate requests through a JSON Web Token (JWT).
A 202 Accepted response indicates that the NAT Gateway deletion request is successfully initiated. The response body is empty for successful deletion requests. The resource maintains a DESTROYING status until the deletion is complete and the resource is removed from your data center.
Note: NAT Gateway deletion is performed asynchronously. For core Cloud API endpoints, the response includes a Location header with a URL to poll the request status.
Last updated
Was this helpful?
Was this helpful?