88
Get a list of DNS Domains (aka 'zones') published by the DNS driver:
88
Get a list of registered DNS Domains published by the DNS drivers:
90
90
GET /v1.1/<tenant_id>/os-floating-ip-dns/
94
{'zone' : 'example.org'}
95
{'zone' : 'example.net'}]}
100
POST /v1.1/<tenant_id>/os-floating-ip-dns/
94
{'domain': 'domain1.example.org', 'scope': 'public', 'project': 'proj1'}
95
{'domain': 'domain2.example.net', 'scope': 'public', 'project': 'proj2'}
96
{'domain': 'example.net', 'scope': 'public', 'project': ''}
97
{'domain': 'example.internal', 'scope': 'private', 'availability_zone': 'zone1'}]}
100
Create or modify a DNS domain:
102
PUT /v1.1/<tenant_id>/os-floating-ip-dns/<domain>
104
# Sample body, public domain:
107
'project' : 'project1'}}
109
# Sample body, public (projectless) domain:
113
# Sample Response, public domain (success):
115
{'domain': 'domain1.example.org',
117
'project': 'project1'}}
119
# Sample body, private domain:
122
'availability_domain': 'zone1'}}
124
# Sample Response, private domain (success):
126
{'domain': 'domain1.private',
128
'availability_zone': 'zone1'}}
130
Failure Response Code: 403 (Insufficient permissions.)
133
Delete a DNS domain and all associated host entries:
135
DELETE /v1.1/<tenant_id>/os-floating-ip-dns/<domain>
137
Normal Response Code: 200
138
Failure Response Code: 404 (Domain to be deleted not found.)
139
Failure Response Code: 403 (Insufficient permissions to delete.)
142
Create or modify a DNS entry:
144
PUT /v1.1/<tenant_id>/os-floating-ip-dns/<domain>/entries/<name>
104
{ 'name': 'instance1',
105
'ip': '192.168.53.11',
107
'zone': 'example.org'}}
148
{ 'ip': '192.168.53.11',
109
151
# Sample Response (success):
111
{ 'ip' : '192.168.53.11',
113
'zone' : 'example.org',
114
154
'name' : 'instance1' }}
116
Failure Response Code: 409 (indicates an entry with name & zone already exists.)
119
Change the ip address of an existing DNS entry:
121
PUT /v1.1/<tenant_id>/os-floating-ip-dns/<domain>
125
{ 'name': 'instance1',
126
'ip': '192.168.53.99'}}
128
# Sample Response (success):
130
{ 'ip' : '192.168.53.99',
131
'name' : 'instance1',
132
'zone' : 'example.org'}}
134
Failure Response Code: 404 (Entry to be modified not found)
137
Find DNS entries for a given domain and name:
139
GET /v1.1/<tenant_id>/os-floating-ip-dns/<domain>?name=<name>
157
Find unique DNS entry for a given domain and name:
159
GET /v1.1/<tenant_id>/os-floating-ip-dns/<domain>/entries/<name>
141
161
# Sample Response:
143
163
{ 'ip' : '192.168.53.11',
149
169
Find DNS entries for a given domain and ip:
151
GET /v1.1/<tenant_id>/os-floating-ip-dns/<domain>/?ip=<ip>
171
GET /v1.1/<tenant_id>/os-floating-ip-dns/<domain>/entries?ip=<ip>
153
173
# Sample Response:
154
174
{ 'dns_entries' : [
158
178
'name' : 'example1' }
162
182
'name' : 'example2' }]}
165
185
Delete a DNS entry:
167
DELETE /v1.1/<tenant_id>/os-floating-ip-dns/<domain>?name=<name>
187
DELETE /v1.1/<tenant_id>/os-floating-ip-dns/<domain>/entries/<name>
169
189
Normal Response Code: 200
170
190
Failure Response Code: 404 (Entry to be deleted not found)