> 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

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="/pages/IoeeNGYxIYjonHSaKUe3">/pages/IoeeNGYxIYjonHSaKUe3</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="/pages/x2HkfqVpvSieRNKtoBoA">/pages/x2HkfqVpvSieRNKtoBoA</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="/pages/smUsfw9CYiRrn8jxsn2N">/pages/smUsfw9CYiRrn8jxsn2N</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="/pages/jVvM5tfWczSirTJl2xb0">/pages/jVvM5tfWczSirTJl2xb0</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="/pages/Q1TL8Clc8kRANewMJV5H">/pages/Q1TL8Clc8kRANewMJV5H</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="/pages/YZ9bJEcoMx2EvDwtMZ5A">/pages/YZ9bJEcoMx2EvDwtMZ5A</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="/pages/6iWZSrgF3qCNUT4ugGFO">/pages/6iWZSrgF3qCNUT4ugGFO</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="/pages/ZIFZ9dC5c63er8aBSKzD">/pages/ZIFZ9dC5c63er8aBSKzD</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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
