Sha256: 65aa6b4306f4682069849e69c2027f38ce449b17fb2d3ca04df43a1e55417571

Contents?: true

Size: 535 Bytes

Versions: 10

Compression:

Stored size: 535 Bytes

Contents

module Fog
  module DNS
    class Zerigo
      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

10 entries across 10 versions & 3 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/delete_host.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/delete_host.rb
fog-1.0.0 lib/fog/zerigo/requests/dns/delete_host.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/zerigo/delete_host.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.11.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.10.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog4encbs-0.9.0.1 lib/fog/dns/requests/zerigo/delete_host.rb
fog4encbs-0.9.0 lib/fog/dns/requests/zerigo/delete_host.rb
fog-0.9.0 lib/fog/dns/requests/zerigo/delete_host.rb