Class: CloudControl::API::Infrastructure
- Defined in:
- lib/cloudcontrol/api/infrastructure.rb
Instance Attribute Summary
Attributes inherited from Core
Instance Method Summary collapse
Methods inherited from Core
#endpoint, #get, #get_simple, #initialize, #log, #org_endpoint, #org_id, #perform, #post, #post_simple, #query_params, #request_query_string, #request_simple_body, #request_xml_body, #simple_params, #single, #xml_params
Constructor Details
This class inherits a constructor from CloudControl::API::Core
Instance Method Details
#list_datacenters(options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/cloudcontrol/api/infrastructure.rb', line 9 def list_datacenters( = {}) endpoint "/#{org_id}/infrastructure/datacenter" query_params get end |
#list_regions(options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/cloudcontrol/api/infrastructure.rb', line 3 def list_regions( = {}) endpoint "/#{org_id}/infrastructure/geographicRegion" query_params get end |