Class: Ansible::Ruby::Modules::Udm_dns_record

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb

Overview

This module allows to manage dns records on a univention corporate server (UCS). It uses the python API of the UCS to create a new object or edit it.

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

#dataObject?

Returns Additional data for this record, e.g. [‘a’: ‘192.0.2.1’]. Required if C(state=present).

Returns:

  • (Object, nil)

    Additional data for this record, e.g. [‘a’: ‘192.0.2.1’]. Required if C(state=present).



28
# File 'lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb', line 28

attribute :data

#nameString

Returns Name of the record, this is also the DNS record. E.g. www for www.example.com.

Returns:

  • (String)

    Name of the record, this is also the DNS record. E.g. www for www.example.com.



16
# File 'lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb', line 16

attribute :name

#state:present, ...

Returns Whether the dns record is present or not.

Returns:

  • (:present, :absent, nil)

    Whether the dns record is present or not.



12
# File 'lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb', line 12

attribute :state

#type:host_record, ...

Returns Define the record type. C(host_record) is a A or AAAA record, C(alias) is a CNAME, C(ptr_record) is a PTR record, C(srv_record) is a SRV record and C(txt_record) is a TXT record.

Returns:

  • (:host_record, :alias, :ptr_record, :srv_record, :txt_record)

    Define the record type. C(host_record) is a A or AAAA record, C(alias) is a CNAME, C(ptr_record) is a PTR record, C(srv_record) is a SRV record and C(txt_record) is a TXT record.



24
# File 'lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb', line 24

attribute :type

#zoneString

Returns Corresponding DNS zone for this record, e.g. example.com.

Returns:

  • (String)

    Corresponding DNS zone for this record, e.g. example.com.



20
# File 'lib/ansible/ruby/modules/generated/cloud/univention/udm_dns_record.rb', line 20

attribute :zone