Sha256: 9235c6af880b5c81cb95a64e39cbe7ebfc1a1b6743a81ab455930d5f9fdffa2b

Contents?: true

Size: 400 Bytes

Versions: 116

Compression:

Stored size: 400 Bytes

Contents

module Fog
  module Rackspace
    class Databases
      class Real
        def restart_instance(instance_id)
          data = {
            'restart' => {}
          }

          request(
            :body => Fog::JSON.encode(data),
            :expects => 202,
            :method => 'POST',
            :path => "instances/#{instance_id}/action"
          )
        end
      end
    end
  end
end

Version data entries

116 entries across 114 versions & 16 rubygems

Version Path
fog-1.30.0 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.29.0 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.28.0 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.27.0 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.26.0 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.25.0 lib/fog/rackspace/requests/databases/restart_instance.rb
nsidc-fog-1.24.1 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.24.0 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.11 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.10 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.9 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.8 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.7 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.6 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.23.0 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.4 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.3 lib/fog/rackspace/requests/databases/restart_instance.rb
ns-fog-1.22.2 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.22.1 lib/fog/rackspace/requests/databases/restart_instance.rb
fog-1.22.0 lib/fog/rackspace/requests/databases/restart_instance.rb