Sha256: 5eea6a735fdf0e4a161c2ab26cf66201110e926f35d184face128192ebe749dc

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 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>:
        #     * '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::DNS::Slicehost::GetRecords.new,
            :path     => "records.xml"
          )
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/dns/get_records.rb
tag-fog-1.0.1 lib/fog/slicehost/requests/dns/get_records.rb
fog-1.0.0 lib/fog/slicehost/requests/dns/get_records.rb