Module: CloudstackClient::Domain
- Defined in:
- lib/cloudstack_client/commands/domain.rb
Instance Method Summary collapse
-
#list_domains(name = nil) ⇒ Object
List domains.
Instance Method Details
#list_domains(name = nil) ⇒ Object
List domains.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cloudstack_client/commands/domain.rb', line 8 def list_domains(name = nil) params = { 'command' => 'listDomains', 'listall' => 'true', 'isrecursive' => 'true' } params['name'] = name if name json = send_request(params) json['domain'] || [] end |