class OvirtSDK4::QossService
Constants
- ADD
- LIST
Public Instance Methods
Add a new QoS to the dataCenter.
- source
POST /ovirt-engine/api/datacenters/123/qoss
The response will look as follows:
- source,xml
<qos href=“/ovirt-engine/api/datacenters/123/qoss/123” id=“123”>
<name>123</name> <description>123</description> <max_iops>10</max_iops> <type>storage</type> <data_center href="/ovirt-engine/api/datacenters/123" id="123"/>
</qos>
@param qos [Qos] Added QoS object.
@param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
@return [Qos]
# File lib/ovirtsdk4/services.rb, line 19363 def add(qos, opts = {}) internal_add(qos, Qos, ADD, opts) end
Returns the list of _quality of service_ configurations available in the data center.
- source
GET /ovirt-engine/api/datacenter/123/qoss
You will get response which will look like this:
- source, xml
<qoss>
<qos href="/ovirt-engine/api/datacenters/123/qoss/1" id="1">...</qos> <qos href="/ovirt-engine/api/datacenters/123/qoss/2" id="2">...</qos> <qos href="/ovirt-engine/api/datacenters/123/qoss/3" id="3">...</qos>
</qoss>
The returned list of quality of service configurations isn't guaranteed.
@param opts [Hash] Additional options.
@option opts [String] :follow Indicates which inner links should be followed. The objects referenced by these links will be fetched as part
of the current request. See <<documents/003_common_concepts/follow, here>> for details.
@option opts [Integer] :max Sets the maximum number of QoS descriptors to return. If not specified all the descriptors are returned.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
@return [Array<Qos>]
# File lib/ovirtsdk4/services.rb, line 19413 def list(opts = {}) internal_get(LIST, opts) end
A reference to a service managing a specific QoS.
@param id [String] The identifier of the `qos`.
@return [QosService] A reference to the `qos` service.
# File lib/ovirtsdk4/services.rb, line 19424 def qos_service(id) QosService.new(self, id) end
Locates the service corresponding to the given path.
@param path [String] The path of the service.
@return [Service] A reference to the service.
# File lib/ovirtsdk4/services.rb, line 19435 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return qos_service(path) end return qos_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end