# API How-Tos

Programmatically manage NAT gateways and configure NAT gateway rules using the IONOS Cloud API. These guides provide practical examples for common operations.

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

* An active IONOS Cloud 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
