class OvirtSDK4::VmBackupService
Constants
- FINALIZE
- GET
Public Instance Methods
A reference to the service that lists the disks in backup.
@return [VmBackupDisksService] A reference to `disks` service.
# File lib/ovirtsdk4/services.rb, line 32013 def disks_service @disks_service ||= VmBackupDisksService.new(self, 'disks') end
Finalize the virtual machine backup entity.
End backup, unlock resources, and perform cleanups. To finalize a virtual machine with an id '123' and a backup with an id '456' send a request as follows:
- source
POST /ovirt-engine/api/vms/123/backups/456/finalize
With a request body as follows:
- source,xml
<action />
@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.
# File lib/ovirtsdk4/services.rb, line 31975 def finalize(opts = {}) internal_action(:finalize, nil, FINALIZE, opts) end
Returns information about the virtual machine backup.
@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 [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 [Backup]
# File lib/ovirtsdk4/services.rb, line 32004 def get(opts = {}) internal_get(GET, opts) 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 32024 def service(path) if path.nil? || path == '' return self end if path == 'disks' return disks_service end if path.start_with?('disks/') return disks_service.service(path[6..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end