Sha256: e86afadfe98378bc8f97798207b56e16d53b6ac167bab27e2261570624f20418

Contents?: true

Size: 535 Bytes

Versions: 9

Compression:

Stored size: 535 Bytes

Contents

module Fog
  module Zerigo
    class DNS
      class Real

        # Delete a host record 
        #
        # ==== Parameters
        # * host_id<~Integer> - Id of host record to delete
        # ==== Returns
        # * response<~Excon::Response>: 
        #   * 'status'<~Integer> - 200 indicates success
        def delete_host(host_id)
          request(
            :expects  => 200,
            :method   => 'DELETE',
            :path     => "/api/1.1/hosts/#{host_id}.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/zerigo/delete_host.rb
fog-0.8.1 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.8.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.7.2 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.7.1 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.7.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.6.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.5.3 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.5.2 lib/fog/dns/requests/zerigo/delete_host.rb