Sha256: 3eb8f1a68851969a2bf4bd00378792b531b4b55d864b4075ca94ce57a71e98a3

Contents?: true

Size: 1.7 KB

Versions: 43

Compression:

Stored size: 1.7 KB

Contents

module Fog
  module DNS
    class Linode
      class Real
        # List of resource records for a domain
        #
        # ==== Parameters
        # * domain_id<~Integer>: limit the list to the domain ID specified
        # * resource_id<~Integer>: optional.  use if want only a specific resource record
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * DATA<~Array>
        #       * 'PROTOCOL'<~String>:  for SRV records. default is UDP
        #       * 'TTL_SEC'<~Interger>:
        #       * 'PRIORITY'<~Interger>: for MX and SRV records
        #       * 'TYPE'<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
        #       * 'TARGET'<~String>: When Type=MX the hostname. When Type=CNAME the target of the alias.
        #                           When Type=TXT the value of the record. When Type=A or AAAA the token
        #                           of '[remote_addr]' will be substituted with the IP address of the request.
        #       * 'WEIGHT'<~Interger>:
        #       * 'RESOURCEID'<~Interger>: ID of the resource record
        #       * 'PORT'<~Interger>:
        #       * 'DOMAINID'<~Interger>: ID of the domain that this record belongs to
        #       * 'NAME'<~Interger>: The hostname or FQDN. When Type=MX, the subdomain to delegate to
        def domain_resource_list(domain_id, resource_id = nil)
          query = { :api_action => 'domain.resource.list', :domainID => domain_id }
          if resource_id
            query[:resourceID] = resource_id
          end
          request(
            :expects  => 200,
            :method   => 'GET',
            :query    => query
          )
        end
      end
    end
  end
end

Version data entries

43 entries across 41 versions & 6 rubygems

Version Path
fog-2.3.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-ifeel-2.2.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-2.2.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-2.1.0 lib/fog/linode/requests/dns/domain_resource_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/linode/requests/dns/domain_resource_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/linode/requests/dns/domain_resource_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.42.1 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-2.0.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.42.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.41.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.40.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.39.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.38.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.37.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.36.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.35.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-2.0.0.pre.0 lib/fog/linode/requests/dns/domain_resource_list.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.34.0 lib/fog/linode/requests/dns/domain_resource_list.rb