3.22.4. Create or update DNS entry

 
MethodURIDescription
PUT/v2/{tenant_id}/os-floating-ip-dns/{domain}/entries/{name}

Creates or updates a DNS entry.

Normal response codes: 200

 3.22.4.1. Request

This table shows the URI parameters for the create or update dns entry request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

{domain}

​String

Registered DNS domain published by the DNS drivers.

{name}

​String

DNS entry name assigned under a domain.

 

Example 3.181. Create or update DNS entry: JSON request

{
   "dns_entry":{
      "ip":"192.168.53.11",
      "dns_type":"A"
   }
}

 

Example 3.182. Create or update DNS entry: XML request

<?xml version='1.0' encoding='UTF-8'?>
<dns_entry>
  <ip>192.168.53.11</ip>
  <dns_type>A</dns_type>
</dns_entry>

This operation does not require a request body.

 3.22.4.2. Response

 

Example 3.183. Create or update DNS entry: JSON response

{
    "dns_entry": {
        "domain": "domain1.example.org",
        "id": null,
        "ip": "192.168.1.1",
        "name": "instance1",
        "type": "A"
    }
}

 

Example 3.184. Create or update DNS entry: XML response

<?xml version='1.0' encoding='UTF-8'?>
<dns_entry ip="192.168.1.1" domain="domain1.example.org" type="A" id="None" name="instance1"/>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...