Sha256: f185c562e46c3cb492a2d35bff4b77bdc29845d4ca938ba35f0768b5d9baa0d9
Contents?: true
Size: 764 Bytes
Versions: 4
Compression:
Stored size: 764 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Resets the SSH Key for virtual machine. The virtual machine must be in a "Stopped" state. [async] # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/resetSSHKeyForVirtualMachine.html] def reset_ssh_key_for_virtual_machine(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'resetSSHKeyForVirtualMachine') else options.merge!('command' => 'resetSSHKeyForVirtualMachine', 'id' => args[0], 'keypair' => args[1]) end request(options) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems