Update a Managed NAT Gateway
Update the name or properties of a managed NAT gateway in a Virtual Data Center using a PATCH request. It updates only the specified properties without affecting other settings.
Endpoint
https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/natgateways/{natGatewayId}
Request
curl --location \
--request PATCH 'https://api.ionos.com/cloudapi/v6/datacenters/8feda53f-15f0-447f-badf-ebe32dad2fc0/natgateways/d0989a01-6e5f-41f5-9e6e-0f5f2d3a0c7b' \
--header 'Authorization: Bearer $IONOS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": {
"name": "Updated NAT Gateway"
}
}'The following table lists the request body parameters:
Body Parameters
Required
Type
Description
Example
properties.name
No
string
The name of the NAT Gateway.
Updated NAT Gateway
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).
Content-Type
Yes
string
Set it to application/json.
Response
A 202 Accepted response indicates a successful update to the managed NAT gateway. The resource maintains a BUSY status until the update completes. The id and updated properties are provided in the response.
Last updated
Was this helpful?