Module: DeltacloudVM::Client::Methods::Realm
- Included in:
- Connection, Instance
- Defined in:
- lib/deltacloud_vm/client/methods/realm.rb
Instance Method Summary collapse
-
#realm(realm_id) ⇒ Object
Retrieve the given realm.
-
#realms(filter_opts = {}) ⇒ Object
Retrieve list of all realms.
Instance Method Details
#realm(realm_id) ⇒ Object
Retrieve the given realm
-
realm_id -> Instance to retrieve
35 36 37 38 |
# File 'lib/deltacloud_vm/client/methods/realm.rb', line 35 def realm(realm_id) from_resource :realm, connection.get(api_uri("realms/#{realm_id}")) end |
#realms(filter_opts = {}) ⇒ Object
Retrieve list of all realms
-
filter_opts:
-
:id -> Filter realms using their ‘id’
-
:state -> Filter realms by their ‘state’
-
26 27 28 29 |
# File 'lib/deltacloud_vm/client/methods/realm.rb', line 26 def realms(filter_opts={}) from_collection :realms, connection.get(api_uri("realms"), filter_opts) end |