3.22.2. Create or update DNS domain

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

Creates or updates a DNS domain.

Normal response codes: 200

 3.22.2.1. Request

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

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

{domain}

​String

Registered DNS domain published by the DNS drivers.

 

Example 3.177. Create or update DNS domain: JSON request

{
   "domain_entry":{
      "domain":"domain1.example.org",
      "scope":"public",
      "project":"project1"
   }
}

 

Example 3.178. Create or update DNS domain: XML request

<?xml version='1.0' encoding='UTF-8'?>
<domain_entry>
  <domain>domain1.example.org</domain>
  <scope>public</scope>
  <project>project1</project>
</domain_entry>

This operation does not require a request body.

 3.22.2.2. Response

 

Example 3.179. Create or update DNS domain: JSON response

{
    "domain_entry": {
        "availability_zone": null,
        "domain": "domain1.example.org",
        "project": "project1",
        "scope": "public"
    }
}

 

Example 3.180. Create or update DNS domain: XML response

<?xml version='1.0' encoding='UTF-8'?>
<domain_entry project="project1" scope="public" domain="domain1.example.org" availability_zone="None"/>

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...