Sha256: de2bdef1fffe19b97a1970197baf9dedcc1a74e2c7e2a380a4d12661dcf49341
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
module CloudstackClient module Account ## # Lists accounts. def list_accounts(args = { :name => nil }) params = { 'command' => 'listAccounts', 'listall' => 'true', 'isrecursive' => 'true' } params['name'] = args[:name] if args[:name] json = send_request(params) json['account'] || [] end ## # Lists project accounts. def list_project_accounts(project_id, args = {}) params = { 'command' => 'listProjectAccounts', 'projectid' => project_id, 'listall' => 'true', 'isrecursive' => 'true' } params['name'] = args[:name] if args[:name] json = send_request(params) json['account'] || [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack_client-0.9.7 | lib/cloudstack_client/commands/account.rb |