Class: OvirtSDK4::SystemOptionService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ SystemOption
Get the values of specific configuration option.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ SystemOption
Get the values of specific configuration option.
For example to retrieve the values of configuration option MigrationPoliciesSupported send a request like this:
GET /ovirt-engine/api//MigrationPoliciesSupported
The response to that request will be the following:
<system_option href="/ovirt-engine/api/options/MigrationPoliciesSupported" id="MigrationPoliciesSupported">
<name>MigrationPoliciesSupported</name>
<values>
<system_option_value>
<value>true</value>
<version>4.0</version>
</system_option_value>
<system_option_value>
<value>true</value>
<version>4.1</version>
</system_option_value>
<system_option_value>
<value>true</value>
<version>4.2</version>
</system_option_value>
<system_option_value>
<value>false</value>
<version>3.6</version>
</system_option_value>
</values>
</system_option>
|
Note
|
The appropriate permissions are required to query configuration options. Some options can be queried only by users with administrator permissions. |
|
Important
|
There is NO backward compatibility and no guarantee about the names or values of the options. Options may be removed and their meaning can be changed at any point. We strongly discourage the use of this service for applications other than the ones that are released simultaneously with the engine. Usage by other applications is not supported. Therefore there will be no documentation listing accessible configuration options. |
24757 24758 24759 |
# File 'lib/ovirtsdk4/services.rb', line 24757 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
24768 24769 24770 24771 24772 24773 |
# File 'lib/ovirtsdk4/services.rb', line 24768 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |