fog/fog-terremark

View on GitHub
lib/fog/compute/terremark/requests/power_shutdown.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module Compute
    class Terremark
      class Real
        # Shutdown a vapp
        #
        # ==== Parameters
        # * vapp_id<~Integer> - Id of vapp to shutdown
        #
        # ==== Returns
        # Nothing
        def power_shutdown(vapp_id)
          request(
            :expects  => 204,
            :method   => "POST",
            :path     => "vApp/#{vapp_id}/power/action/shutdown"
          )
        end
      end
    end
  end
end