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
ktheory-fog-1.1.2 lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
fog-1.1.2 lib/fog/new_servers/requests/compute/cancel_server.rb
fog_tractical-1.1.4 lib/fog/new_servers/requests/compute/cancel_server.rb
fog_tractical-1.1.3 lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
fog-1.1.1 lib/fog/new_servers/requests/compute/cancel_server.rb
fog-1.1.0 lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
tag-fog-1.0.1 lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/cancel_server.rb
fog-1.0.0 lib/fog/new_servers/requests/compute/cancel_server.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/new_servers/cancel_server.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/new_servers/cancel_server.rb
fog-0.11.0 lib/fog/compute/requests/new_servers/cancel_server.rb