For details on how to use dns, see Using OpenStack DNS
The dns high-level interface is available through the dns
member of a Connection
object. The
dns
member will only be added if the service is detected.
Retrieve a generator of zones
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
name: Zone Name field.
type: Zone Type field.
email: Zone email field.
status: Status of the zone.
ttl: TTL field filter.abs
description: Zone description field filter.
A generator of zone
Zone
instances.
Create a new zone from attributes
Get a zone
Delete a zone
zone – The value can be the ID of a zone
or a Zone
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the zone does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent zone.
Zone been deleted
Find a single zone
name_or_id – The name or ID of a zone
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised
when the zone does not exist.
When set to True
, no exception will be set when attempting
to delete a nonexistent zone.
Abandon Zone
zone – The value can be the ID of a zone to be abandoned
or a ZoneExport
instance.
None
Trigger update of secondary Zone
zone – The value can be the ID of a zone to be abandoned
or a ZoneExport
instance.
None
Retrieve a generator of recordsets
zone – The optional value can be the ID of a zone
or a Zone
instance. If it is not
given all recordsets for all zones of the tenant would be
retrieved
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
name: Recordset Name field.
type: Type field.
status: Status of the recordset.
ttl: TTL field filter.
description: Recordset description field filter.
A generator of zone
(Recordset
) instances
Create a new recordset in the zone
Update Recordset attributes
Get a recordset
Delete a zone
recordset – The value can be the ID of a recordset
or a Recordset
instance.
zone – The value can be the ID of a zone
or a Zone
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the zone does not exist. When set to True
, no exception will
be set when attempting to delete a nonexistent zone.
Recordset instance been deleted
Retrieve a generator of zone imports
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
zone_id: Zone I field.
message: Message field.
status: Status of the zone import record.
A generator of zone
ZoneImport
instances.
Create a new zone import from attributes
attrs (dict) – Keyword arguments which will be used to create
a ZoneImport
,
comprised of the properties on the ZoneImport class.
The results of zone creation.
Get a zone import record
zone – The value can be the ID of a zone import
or a ZoneImport
instance.
ZoneImport instance.
Delete a zone import
zone_import – The value can be the ID of a zone import
or a ZoneImport
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the zone does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent zone.
None
Retrieve a generator of zone exports
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
zone_id: Zone I field.
message: Message field.
status: Status of the zone import record.
A generator of zone
ZoneExport
instances.
Create a new zone export from attributes
zone – The value can be the ID of a zone to be exported
or a ZoneExport
instance.
attrs (dict) – Keyword arguments which will be used to create
a ZoneExport
,
comprised of the properties on the ZoneExport class.
The results of zone creation.
Get a zone export record
zone – The value can be the ID of a zone import
or a ZoneExport
instance.
ZoneExport instance.
Get a zone export record as text
zone – The value can be the ID of a zone import
or a ZoneExport
instance.
ZoneExport instance.
Delete a zone export
zone_export – The value can be the ID of a zone import
or a ZoneExport
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the zone does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent zone.
None
Retrieve a generator of recordsets
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
name: Recordset Name field.
type: Type field.
status: Status of the recordset.
ttl: TTL field filter.
description: Recordset description field filter.
A generator of floatingips
(FloatingIP
) instances
Get a Floating IP
floating_ip – The value can be the ID of a floating ip
or a FloatingIP
instance.
The ID is in format “region_name:floatingip_id”
FloatingIP instance.
Update floating ip attributes
floating_ip – The id or an instance of
FloatingIP
.
attrs (dict) – attributes for update on
FloatingIP
.
FloatingIP
Retrieve a generator of zone transfer requests
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
status: Status of the recordset.
A generator of transfer requests
(ZoneTransferRequest
)
instances
Get a ZoneTransfer Request info
request – The value can be the ID of a transfer request
or a ZoneTransferRequest
instance.
Zone transfer request instance.
Create a new ZoneTransfer Request from attributes
zone – The value can be the ID of a zone to be transferred
or a ZoneExport
instance.
attrs (dict) – Keyword arguments which will be used to create
a ZoneTransferRequest
,
comprised of the properties on the ZoneTransferRequest class.
The results of zone transfer request creation.
Update ZoneTransfer Request attributes
floating_ip – The id or an instance of
ZoneTransferRequest
.
attrs (dict) – attributes for update on
ZoneTransferRequest
.
Delete a ZoneTransfer Request
request – The value can be the ID of a zone transfer request
or a ZoneTransferRequest
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the zone does not exist.
When set to True
, no exception will be set when attempting to
delete a nonexistent zone.
None
Retrieve a generator of zone transfer accepts
query (dict) –
Optional query parameters to be sent to limit the resources being returned.
status: Status of the recordset.
A generator of transfer accepts
(ZoneTransferAccept
)
instances
Get a ZoneTransfer Accept info
request – The value can be the ID of a transfer accept
or a ZoneTransferAccept
instance.
Zone transfer request instance.
Create a new ZoneTransfer Accept from attributes
attrs (dict) – Keyword arguments which will be used to create
a ZoneTransferAccept
,
comprised of the properties on the ZoneTransferAccept class.
The results of zone transfer request creation.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.