# rDNS

## Retrieve

<mark style="color:blue;">`GET`</mark> `https://api.suble.io/projects/:projectId/floating_ips/:id/rdns`

Retrieve information about current rDNS record.

#### Path Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| projectId | string | Unique id for the project |
| id        | string | Floating IP Id            |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | User token or project key |

{% tabs %}
{% tab title="200 " %}

```
{
    "ipv4": String,
    "record": String
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}

## Assign

<mark style="color:green;">`POST`</mark> `https://api.suble.io/projects/:projectId/floating_ips/:id/rdns`

Update rDNS record

#### Path Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| projectId | string | Unique id for the project |
| id        | string | Floating IP Id            |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | User token or project key |

#### Request Body

| Name   | Type   | Description                    |
| ------ | ------ | ------------------------------ |
| record | string | New domain for the rDNS record |

{% tabs %}
{% tab title="200 " %}

```
{
    "message": String
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
