Class: Ansible::Ruby::Modules::Dnsmadeeasy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb

Overview

Manages DNS records via the v2 REST API of the DNS Made Easy service. It handles records only; there is no manipulation of domains or monitor/account support yet. See: U(www.dnsmadeeasy.com/services/rest-api/)

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#account_keyString

Returns Accout API Key.

Returns:

  • (String)

    Accout API Key.



11
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 11

attribute :account_key

#account_secretString

Returns Accout Secret Key.

Returns:

  • (String)

    Accout Secret Key.



15
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 15

attribute :account_secret

#domainString

Returns Domain to work with. Can be the domain name (e.g. “mydomain.com”) or the numeric ID of the domain in DNS Made Easy (e.g. “839989”) for faster resolution.

Returns:

  • (String)

    Domain to work with. Can be the domain name (e.g. “mydomain.com”) or the numeric ID of the domain in DNS Made Easy (e.g. “839989”) for faster resolution.



19
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 19

attribute :domain

#record_nameString?

Returns Record name to get/create/delete/update. If record_name is not specified; all records for the domain will be returned in “result” regardless of the state argument.

Returns:

  • (String, nil)

    Record name to get/create/delete/update. If record_name is not specified; all records for the domain will be returned in “result” regardless of the state argument.



23
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 23

attribute :record_name

#record_ttlInteger?

Returns record’s “Time to live”. Number of seconds the record remains cached in DNS servers.

Returns:

  • (Integer, nil)

    record’s “Time to live”. Number of seconds the record remains cached in DNS servers.



35
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 35

attribute :record_ttl

#record_type:A, ...

Returns Record type.

Returns:

  • (:A, :AAAA, :CNAME, :HTTPRED, :MX, :NS, :PTR, :SRV, :TXT, nil)

    Record type.



27
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 27

attribute :record_type

#record_valueString?

Returns Record value. HTTPRED: <redirection URL>, MX: <priority> <target name>, NS: <name server>, PTR: <target name>, SRV: <priority> <weight> <port> <target name>, TXT: <text value>,If record_value is not specified; no changes will be made and the record will be returned in ‘result’ (in other words, this module can be used to fetch a record’s current id, type, and ttl).

Returns:

  • (String, nil)

    Record value. HTTPRED: <redirection URL>, MX: <priority> <target name>, NS: <name server>, PTR: <target name>, SRV: <priority> <weight> <port> <target name>, TXT: <text value>,If record_value is not specified; no changes will be made and the record will be returned in ‘result’ (in other words, this module can be used to fetch a record’s current id, type, and ttl)



31
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 31

attribute :record_value

#state:present, :absent

Returns whether the record should exist or not.

Returns:

  • (:present, :absent)

    whether the record should exist or not



39
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 39

attribute :state

#validate_certs:yes, ...

Returns If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Returns:

  • (:yes, :no, nil)

    If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.



43
# File 'lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb', line 43

attribute :validate_certs