Sha256: bbb7f835249d1198e14f42cda7adbe5436031482e54f03e4b2bd0203f3d01e54
Contents?: true
Size: 591 Bytes
Versions: 1
Compression:
Stored size: 591 Bytes
Contents
module CloudstackClient module SystemVm ## # List system virtual machines. 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['system_vm'] || [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack_client-0.7.0 | lib/cloudstack_client/commands/system_vm.rb |