Sha256: 689a60897a788a4ac513b7357e18047118be6af3e255e82875a695edd3e5cbe9

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

module Fog
  module DNS
    class Slicehost
      class Real

        require 'fog/slicehost/parsers/dns/get_records'

        # Get all the DNS records across all the DNS zones for this account
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'name'<~String> - Record NAME field (e.g. "example.org." or "www")
        #     * 'data'<~String> - Data contained by the record (e.g. an IP address, for A records)
        #     * 'record_type'<~String> - Type of record (A, CNAME, TXT, etc)
        #     * 'aux'<~String> - Aux data for the record, for those types which have it (e.g. TXT)
        #     * 'zone_id'<~Integer> - zone ID to which this record belongs
        #     * 'active'<~String> - whether this record is active in the Slicehost DNS (Y for yes, N for no)
        #     * 'ttl'<~Integer> - TTL in seconds
        def get_records
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::DNS::Slicehost::GetRecords.new,
            :path     => "records.xml"
          )
        end

      end
    end
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
michiels-fog-1.3.1 lib/fog/slicehost/requests/dns/get_records.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
fog-1.3.1 lib/fog/slicehost/requests/dns/get_records.rb
fog-1.3.0 lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
fog-1.2.0 lib/fog/slicehost/requests/dns/get_records.rb
ktheory-fog-1.1.2 lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
fog-1.1.2 lib/fog/slicehost/requests/dns/get_records.rb
fog_tractical-1.1.4 lib/fog/slicehost/requests/dns/get_records.rb
fog_tractical-1.1.3 lib/fog/slicehost/requests/dns/get_records.rb
fog-1.1.1 lib/fog/slicehost/requests/dns/get_records.rb
fog-1.1.0 lib/fog/slicehost/requests/dns/get_records.rb