Part of libcloud.dns.base View Source View In Hierarchy
Known subclasses: libcloud.dns.drivers.dummy.DummyDNSDriver, libcloud.dns.drivers.linode.LinodeDNSDriver, libcloud.dns.drivers.rackspace.RackspaceDNSDriver, libcloud.dns.drivers.zerigo.ZerigoDNSDriver
Method | __init__ | |
Method | list_record_types | Return a list of RecordType objects supported by the provider. |
Method | list_zones | Return a list of zones. |
Method | list_records | Return a list of records for the provided zone. |
Method | get_zone | Return a Zone instance. |
Method | get_record | Return a Record instance. |
Method | create_zone | Create a new zone. |
Method | update_zone | Update en existing zone. |
Method | create_record | Create a new record. |
Method | update_record | Update an existing record. |
Method | delete_zone | Delete a zone. |
Method | delete_record | Delete a record. |
Method | _string_to_record_type | Return a string representation of a DNS record type to a libcloud RecordType ENUM. |
Inherited from BaseDriver:
Method | _ex_connection_class_kwargs | Return extra connection keyword arguments which are passed to the Connection class constructor. |
Parameters | key | API key or username to used (type: str) |
secret | Secret password to be used (type: str) | |
secure | Weither to use HTTPS or HTTP. Note: Some providers only support HTTPS, and it is on by default. (type: bool) | |
host | Override hostname used for connections. (type: str) | |
port | Override port used for connections. (type: int) | |
api_version | Optional API version. Only used by drivers which support multiple API versions. (type: str) |
Returns | A list of RecordType instances. |
Returns | A list of Zone instances. |
Parameters | zone | Zone to list records for. (type: Zone ) |
Returns | A list of Record instances. |
Returns | Zone instance. |
Returns | Record instance. |
Parameters | domain | Zone domain name. (type: string ) |
type | Zone type (master / slave). (type: string ) | |
ttl | int | |
ttl | (optional) TTL for new records. | |
extra | (optional) Extra attributes (driver specific). (type: dict ) |
Parameters | zone | Zone to update. (type: Zone ) |
domain | Zone domain name. (type: string ) | |
type | Zone type (master / slave). (type: string ) | |
ttl | int | |
ttl | (optional) TTL for new records. | |
extra | (optional) Extra attributes (driver specific). (type: dict ) |
Parameters | name | string (type: Hostname or FQDN.) |
zone | Zone where the requested record is created. (type: Zone ) | |
type | DNS record type (A, AAAA, ...). (type: RecordType ) | |
data | Data for the record (depends on the record type). (type: str ) | |
extra | (optional) Extra attributes (driver specific). (type: dict ) |
Parameters | record | Record (type: Record to update.) |
name | string (type: Hostname or FQDN.) | |
type | DNS record type (A, AAAA, ...). (type: RecordType ) | |
data | Data for the record (depends on the record type). (type: str ) | |
extra | (optional) Extra attributes (driver specific). (type: dict ) |
Note: This will delete all the records belonging to this zone.
Parameters | zone | Zone (type: Zone to delete.) |
Parameters | record | Record (type: Record to delete.) |