Module: CloudstackClient::Region

Defined in:
lib/cloudstack_client/commands/region.rb

Instance Method Summary collapse

Instance Method Details

#list_regions(args = {}) ⇒ Object

List regions.



8
9
10
11
12
13
14
15
# File 'lib/cloudstack_client/commands/region.rb', line 8

def list_regions(args = {})
  params = {
    'command' => 'listRegions',
  }

  json = send_request(params)
  json['region'] || []
end