Connection module for Apache Libcloud DNS management
New in version 2016.11.0.
configuration: | This module uses a configuration profile for one or multiple DNS providers libcloud_dns:
profile_test1:
driver: cloudflare
key: 12345
secret: mysecret
profile_test2:
driver: godaddy
key: 12345
secret: mysecret
shopper_id: 12345
|
---|---|
depends: | apache-libcloud |
salt.modules.libcloud_dns.
create_record
(name, zone_id, type, data, profile)¶Create a new record.
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.create_record www google.com A 12.32.12.2 profile1
salt.modules.libcloud_dns.
create_zone
(domain, profile, type='master', ttl=None)¶Create a new zone.
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.create_zone google.com profile1
salt.modules.libcloud_dns.
delete_record
(zone_id, record_id, profile)¶Delete a record.
Parameters: |
|
---|---|
Return type: |
|
CLI Example:
salt myminion libcloud_dns.delete_record google.com www profile1
salt.modules.libcloud_dns.
delete_zone
(zone_id, profile)¶Delete a zone.
Parameters: |
|
---|---|
Return type: |
|
CLI Example:
salt myminion libcloud_dns.delete_zone google.com profile1
salt.modules.libcloud_dns.
get_bind_data
(zone_id, profile)¶Export Zone to the BIND compatible format.
Parameters: |
|
---|---|
Returns: | Zone data in BIND compatible format. |
Return type: |
|
CLI Example:
salt myminion libcloud_dns.get_bind_data google.com profile1
salt.modules.libcloud_dns.
get_record
(zone_id, record_id, profile)¶Get record information for the given zone_id on the given profile
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.get_record google.com www profile1
salt.modules.libcloud_dns.
get_zone
(zone_id, profile)¶Get zone information for the given zone_id on the given profile
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.get_zone google.com profile1
salt.modules.libcloud_dns.
list_record_types
(profile)¶List available record types for the given profile, e.g. A, AAAA
Parameters: | profile (str ) -- The profile key |
---|
CLI Example:
salt myminion libcloud_dns.list_record_types profile1
salt.modules.libcloud_dns.
list_records
(zone_id, profile)¶List records for the given zone_id on the given profile
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.list_records google.com profile1
salt.modules.libcloud_dns.
list_zones
(profile)¶List zones for the given profile
Parameters: | profile (str ) -- The profile key |
---|
CLI Example:
salt myminion libcloud_dns.list_zones profile1
salt.modules.libcloud_dns.
update_zone
(zone_id, domain, profile, type='master', ttl=None)¶Update an existing zone.
Parameters: |
|
---|
CLI Example:
salt myminion libcloud_dns.update_zone google.com google.com profile1 type=slave