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.
7792 7793 7794 |
# File 'lib/ovirtsdk4/services.rb', line 7792 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.
7781 7782 7783 |
# File 'lib/ovirtsdk4/services.rb', line 7781 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 |
# File 'lib/ovirtsdk4/services.rb', line 7803 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 |