Sha256: e197d2af2aca6d40d8e85b9a59850bfb34d29f8375083d48d7e23f48bc1a83a4

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module Slicehost
    class DNS
      class Real

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

        # Get all the DNS records across all the DNS zones for this account 
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'addresses'<~Array> - Ip addresses for the slice
        #     * 'backup-id'<~Integer> - Id of backup slice was booted from
        #     * 'flavor_id'<~Integer> - Id of flavor slice was booted from
        #     * 'id'<~Integer> - Id of the slice
        #     * 'image-id'<~Integer> - Id of image slice was booted from
        #     * 'name'<~String> - Name of the slice
        #     * 'progress'<~Integer> - Progress of current action, in percentage
        #     * 'status'<~String> - Current status of the slice
        def get_records
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetRecords.new,
            :path     => "records.xml"
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.8.1 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.8.0 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.7.2 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.7.1 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.7.0 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.6.0 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.5.3 lib/fog/dns/requests/slicehost/get_records.rb
fog-0.5.2 lib/fog/dns/requests/slicehost/get_records.rb