Module: CloudstackClient::SystemVm
- Defined in:
- lib/cloudstack_client/commands/system_vm.rb
Instance Method Summary collapse
-
#list_system_vms(args = {}) ⇒ Object
List system virtual machines.
Instance Method Details
#list_system_vms(args = {}) ⇒ Object
List system virtual machines.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cloudstack_client/commands/system_vm.rb', line 8 def list_system_vms(args = {}) params = { 'command' => 'listSystemVms' } if args[:zone] zone = get_zone(args[:zone]) unless zone puts "Error: zone #{args[:project]} not found." exit 1 end params['zoneid'] = zone['id'] end params['state'] = args[:state] if args[:state] params['podid'] = args[:podid] if args[:podid] json = send_request(params) json['systemvm'] || [] end |