Sha256: e10a764ba95c8ff4d465c4a7ca46911e7bc3203a7bd8a7267d2abaae7cf3e3e4

Contents?: true

Size: 1.7 KB

Versions: 102

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

102 entries across 102 versions & 18 rubygems

Version Path
fog-1.22.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.21.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.20.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-1.19.0 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/linode/requests/dns/domain_resource_list.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/linode/requests/dns/domain_resource_list.rb