> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/network-services/nat-gateway/api-howtos.md).

# API How-Tos

IONOS CLOUD NAT Gateway: API how-to guides for managing NAT gateways and rules

Programmatically manage NAT gateways and configure NAT gateway rules using the <code class="expression">space.vars.ionos\_cloud</code> API. These guides provide practical examples for common operations.

{% hint style="info" %}
**Prerequisites:** Before you begin, ensure that you have the following:

* An active <code class="expression">space.vars.ionos\_cloud</code> account with appropriate permissions
* API credentials, including authentication token
* Basic understanding of REST APIs and HTTP methods
* The NAT Gateway feature enabled for your contract
  {% endhint %}

## Managed NAT Gateway

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Create a Managed NAT Gateway</strong></mark></td><td>Provision a new managed NAT gateway in a specific data center.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/create-managed-nat-gateway.md">Create a Managed NAT Gateway</a></td></tr><tr><td><mark style="color:blue;"><strong>List Managed NAT Gateways</strong></mark></td><td>Retrieve a list of all managed NAT gateways in your contract.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/list-managed-nat-gateway.md">List Managed NAT Gateways</a></td></tr><tr><td><mark style="color:blue;"><strong>Create a NAT Gateway Rule</strong></mark></td><td>Configure new rules to manage traffic flow through the NAT gateway.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/create-nat-gateway-rule.md">Create a NAT Gateway Rule</a></td></tr><tr><td><mark style="color:blue;"><strong>List NAT Gateway Rules</strong></mark></td><td>Retrieve a comprehensive list of all rules associated with a specific NAT gateway.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/list-nat-gateway-rule.md">List NAT Gateway Rules</a></td></tr><tr><td><mark style="color:blue;"><strong>Update a Managed NAT Gateway</strong></mark></td><td>Modify the configuration of an existing NAT gateway.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/update-managed-nat-gateway.md">Update a Managed NAT Gateway</a></td></tr><tr><td><mark style="color:blue;"><strong>Update a NAT Gateway Rule</strong></mark></td><td>Modify the parameters or filtering criteria of an existing NAT gateway rule.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/update-nat-gateway-rule.md">Update a NAT Gateway Rule</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete a NAT Gateway Rule</strong></mark></td><td>Permanently remove a specific rule from the NAT gateway configuration.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/delete-nat-gateway-rule.md">Delete a NAT Gateway Rule</a></td></tr><tr><td><mark style="color:blue;"><strong>Delete a Managed NAT Gateway</strong></mark></td><td>Permanently remove a managed NAT gateway from your infrastructure.</td><td><a href="/cloud/network-services/nat-gateway/api-howtos/delete-managed-nat-gateway.md">Delete a Managed NAT Gateway</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/network-services/nat-gateway/api-howtos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
