Class: OvirtSDK4::ExternalComputeResourceService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb more...
Instance Method Summary collapse
-
#get(opts = {}) ⇒ ExternalComputeResource
Retrieves external compute resource details.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
permalink #get(opts = {}) ⇒ ExternalComputeResource
Retrieves external compute resource details.
For example, to get the details of compute resource 234
of provider 123
, send a request like this:
GET /ovirt-engine/api/externalhostproviders/123/computeresources/234
It will return a response like this:
<external_compute_resource href="/ovirt-engine/api/externalhostproviders/123/computeresources/234" id="234">
<name>hostname</name>
<provider>oVirt</provider>
<url>https://hostname/api</url>
<user>admin@internal</user>
<external_host_provider href="/ovirt-engine/api/externalhostproviders/123" id="123"/>
</external_compute_resource>
9273 9274 9275 |
# File 'lib/ovirtsdk4/services.rb', line 9273 def get(opts = {}) internal_get(GET, opts) end |
permalink #service(path) ⇒ Service
Locates the service corresponding to the given path.
9284 9285 9286 9287 9288 9289 |
# File 'lib/ovirtsdk4/services.rb', line 9284 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |