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 MigrationPolicies
send a request like this:
GET /ovirt-engine/api/options/MigrationPolicies
The response to that request will be the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<system_option href="/ovirt-engine/api/options/MigrationPolicies" id="MigrationPolicies">
<name>MigrationPolicies</name>
<values>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.2</version>
</system_option_value>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.3</version>
</system_option_value>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.4</version>
</system_option_value>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.5</version>
</system_option_value>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.6</version>
</system_option_value>
<system_option_value>
<value>[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},...}]</value>
<version>4.7</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. |
26297 26298 26299 |
# File 'lib/ovirtsdk4/services.rb', line 26297 def get(opts = {}) internal_get(GET, opts) end |