Class: OvirtSDK4::DomainsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#domain_service(id) ⇒ DomainService
Reference to a service to view details of a domain.
-
#list(opts = {}) ⇒ Array<Domain>
List all the authentication domains in the system.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#domain_service(id) ⇒ DomainService
Reference to a service to view details of a domain.
8578 8579 8580 |
# File 'lib/ovirtsdk4/services.rb', line 8578 def domain_service(id) DomainService.new(self, id) end |
#list(opts = {}) ⇒ Array<Domain>
List all the authentication domains in the system.
Usage:
GET /ovirt-engine/api/domains
Will return the list of domains:
<domains>
<domain href="/ovirt-engine/api/domains/5678" id="5678">
<name>internal-authz</name>
<link href="/ovirt-engine/api/domains/5678/users" rel="users"/>
<link href="/ovirt-engine/api/domains/5678/groups" rel="groups"/>
<link href="/ovirt-engine/api/domains/5678/users?search={query}" rel="users/search"/>
<link href="/ovirt-engine/api/domains/5678/groups?search={query}" rel="groups/search"/>
</domain>
</domains>
The order of the returned list of domains isn’t guaranteed.
8567 8568 8569 |
# File 'lib/ovirtsdk4/services.rb', line 8567 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 |
# File 'lib/ovirtsdk4/services.rb', line 8589 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return domain_service(path) end return domain_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |