Sha256: f0f6718c29ee1e5ceecc7dc260c8928fde0ed291ba397b589d5c4657e9d56f96

Contents?: true

Size: 714 Bytes

Versions: 24

Compression:

Stored size: 714 Bytes

Contents

module Fog
  module Compute
    class NewServers
      class Real

        # Shutdown a running server
        #
        # ==== Parameters
        # * serverId<~String> - The id of the server to shutdown
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'server'<~Hash>:
        #       * 'id'<~String> - Id of the image
        #
        def cancel_server(server_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::ToHashDocument.new,
            :path     => 'api/cancelServer',
            :query    => {'serverId' => server_id}
          )
        end

      end
    end
  end
end

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
fog-0.10.0 lib/fog/compute/requests/new_servers/cancel_server.rb
fog4encbs-0.9.0.1 lib/fog/compute/requests/new_servers/cancel_server.rb
fog4encbs-0.9.0 lib/fog/compute/requests/new_servers/cancel_server.rb
fog-0.9.0 lib/fog/compute/requests/new_servers/cancel_server.rb