2011-09-07 14:00:25 +00:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Cloudstack
|
2014-05-27 19:26:52 +00:00
|
|
|
|
2011-09-07 14:00:25 +00:00
|
|
|
class Real
|
|
|
|
# Returns an encrypted password for the VM
|
|
|
|
#
|
2014-08-27 09:20:54 +00:00
|
|
|
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/getVMPassword.html]
|
|
|
|
def get_vm_password(*args)
|
|
|
|
options = {}
|
|
|
|
if args[0].is_a? Hash
|
|
|
|
options = args[0]
|
|
|
|
options.merge!('command' => 'getVMPassword')
|
|
|
|
else
|
|
|
|
options.merge!('command' => 'getVMPassword',
|
|
|
|
'id' => args[0])
|
|
|
|
end
|
2011-09-07 14:00:25 +00:00
|
|
|
request(options)
|
|
|
|
end
|
|
|
|
end
|
2014-05-27 19:26:52 +00:00
|
|
|
|
2011-09-07 14:00:25 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-05-27 19:26:52 +00:00
|
|
|
|