Package org.ovirt.engine.sdk4.services
Interface VmService
-
- All Superinterfaces:
MeasurableService
,Service
- All Known Implementing Classes:
VmServiceImpl
public interface VmService extends MeasurableService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
VmService.AutoPinCpuAndNumaNodesRequest
Apply an automatic CPU and NUMA configuration on the VM.static interface
VmService.AutoPinCpuAndNumaNodesResponse
Apply an automatic CPU and NUMA configuration on the VM.static interface
VmService.CancelMigrationRequest
This operation stops any migration of a virtual machine to another physical host.static interface
VmService.CancelMigrationResponse
This operation stops any migration of a virtual machine to another physical host.static interface
VmService.CloneRequest
static interface
VmService.CloneResponse
static interface
VmService.CommitSnapshotRequest
Permanently restores the virtual machine to the state of the previewed snapshot.static interface
VmService.CommitSnapshotResponse
Permanently restores the virtual machine to the state of the previewed snapshot.static interface
VmService.DetachRequest
Detaches a virtual machine from a pool.static interface
VmService.DetachResponse
Detaches a virtual machine from a pool.static interface
VmService.ExportRequest
Exports the virtual machine.static interface
VmService.ExportResponse
Exports the virtual machine.static interface
VmService.ExportToExportDomainRequest
Exports a virtual machine to an export domain.static interface
VmService.ExportToExportDomainResponse
Exports a virtual machine to an export domain.static interface
VmService.ExportToPathOnHostRequest
Exports a virtual machine as an OVA file to a given path on a specified host.static interface
VmService.ExportToPathOnHostResponse
Exports a virtual machine as an OVA file to a given path on a specified host.static interface
VmService.FreezeFilesystemsRequest
Freezes virtual machine file systems.static interface
VmService.FreezeFilesystemsResponse
Freezes virtual machine file systems.static interface
VmService.GetRequest
Retrieves the description of the virtual machine.static interface
VmService.GetResponse
Retrieves the description of the virtual machine.static interface
VmService.LogonRequest
Initiates the automatic user logon to access a virtual machine from an external console.static interface
VmService.LogonResponse
Initiates the automatic user logon to access a virtual machine from an external console.static interface
VmService.MaintenanceRequest
Sets the global maintenance mode on the hosted engine virtual machine.static interface
VmService.MaintenanceResponse
Sets the global maintenance mode on the hosted engine virtual machine.static interface
VmService.MigrateRequest
Migrates a virtual machine to another physical host.static interface
VmService.MigrateResponse
Migrates a virtual machine to another physical host.static interface
VmService.PreviewSnapshotRequest
Temporarily restores the virtual machine to the state of a snapshot.static interface
VmService.PreviewSnapshotResponse
Temporarily restores the virtual machine to the state of a snapshot.static interface
VmService.RebootRequest
Sends a reboot request to a virtual machine.static interface
VmService.RebootResponse
Sends a reboot request to a virtual machine.static interface
VmService.RemoveRequest
Removes the virtual machine, including the virtual disks attached to it.static interface
VmService.RemoveResponse
Removes the virtual machine, including the virtual disks attached to it.static interface
VmService.ReorderMacAddressesRequest
static interface
VmService.ReorderMacAddressesResponse
static interface
VmService.ResetRequest
Sends a reset request to a virtual machine.static interface
VmService.ResetResponse
Sends a reset request to a virtual machine.static interface
VmService.ShutdownRequest
This operation sends a shutdown request to a virtual machine.static interface
VmService.ShutdownResponse
This operation sends a shutdown request to a virtual machine.static interface
VmService.StartRequest
Starts the virtual machine.static interface
VmService.StartResponse
Starts the virtual machine.static interface
VmService.StopRequest
This operation forces a virtual machine to power-off.static interface
VmService.StopResponse
This operation forces a virtual machine to power-off.static interface
VmService.SuspendRequest
This operation saves the virtual machine state to disk and stops it.static interface
VmService.SuspendResponse
This operation saves the virtual machine state to disk and stops it.static interface
VmService.ThawFilesystemsRequest
Thaws virtual machine file systems.static interface
VmService.ThawFilesystemsResponse
Thaws virtual machine file systems.static interface
VmService.TicketRequest
Generates a time-sensitive authentication token for accessing a virtual machine's display.static interface
VmService.TicketResponse
Generates a time-sensitive authentication token for accessing a virtual machine's display.static interface
VmService.UndoSnapshotRequest
Restores the virtual machine to the state it had before previewing the snapshot.static interface
VmService.UndoSnapshotResponse
Restores the virtual machine to the state it had before previewing the snapshot.static interface
VmService.UpdateRequest
Update the virtual machine in the system for the given virtual machine id.static interface
VmService.UpdateResponse
Update the virtual machine in the system for the given virtual machine id.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssignedAffinityLabelsService
affinityLabelsService()
List of scheduling labels assigned to this virtual machine.VmApplicationsService
applicationsService()
VmService.AutoPinCpuAndNumaNodesRequest
autoPinCpuAndNumaNodes()
Apply an automatic CPU and NUMA configuration on the VM.VmBackupsService
backupsService()
List of backups of this virtual machine.VmService.CancelMigrationRequest
cancelMigration()
This operation stops any migration of a virtual machine to another physical host.VmCdromsService
cdromsService()
VmCheckpointsService
checkpointsService()
List of checkpoints of this virtual machine.VmService.CloneRequest
clone_()
VmService.CommitSnapshotRequest
commitSnapshot()
Permanently restores the virtual machine to the state of the previewed snapshot.VmService.DetachRequest
detach()
Detaches a virtual machine from a pool.DiskAttachmentsService
diskAttachmentsService()
List of disks attached to this virtual machine.VmService.ExportRequest
export()
Exports the virtual machine.VmService.ExportToExportDomainRequest
exportToExportDomain()
Exports a virtual machine to an export domain.VmService.ExportToPathOnHostRequest
exportToPathOnHost()
Exports a virtual machine as an OVA file to a given path on a specified host.VmService.FreezeFilesystemsRequest
freezeFilesystems()
Freezes virtual machine file systems.VmService.GetRequest
get()
Retrieves the description of the virtual machine.VmGraphicsConsolesService
graphicsConsolesService()
VmHostDevicesService
hostDevicesService()
KatelloErrataService
katelloErrataService()
Reference to the service that can show the applicable errata available on the virtual machine.VmService.LogonRequest
logon()
Initiates the automatic user logon to access a virtual machine from an external console.VmService.MaintenanceRequest
maintenance()
Sets the global maintenance mode on the hosted engine virtual machine.VmService.MigrateRequest
migrate()
Migrates a virtual machine to another physical host.VmNicsService
nicsService()
VmNumaNodesService
numaNodesService()
AssignedPermissionsService
permissionsService()
VmService.PreviewSnapshotRequest
previewSnapshot()
Temporarily restores the virtual machine to the state of a snapshot.VmService.RebootRequest
reboot()
Sends a reboot request to a virtual machine.VmService.RemoveRequest
remove()
Removes the virtual machine, including the virtual disks attached to it.VmService.ReorderMacAddressesRequest
reorderMacAddresses()
VmReportedDevicesService
reportedDevicesService()
VmService.ResetRequest
reset()
Sends a reset request to a virtual machine.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.VmSessionsService
sessionsService()
Reference to the service that provides information about virtual machine user sessions.VmService.ShutdownRequest
shutdown()
This operation sends a shutdown request to a virtual machine.SnapshotsService
snapshotsService()
VmService.StartRequest
start()
Starts the virtual machine.VmService.StopRequest
stop()
This operation forces a virtual machine to power-off.VmService.SuspendRequest
suspend()
This operation saves the virtual machine state to disk and stops it.AssignedTagsService
tagsService()
VmService.ThawFilesystemsRequest
thawFilesystems()
Thaws virtual machine file systems.VmService.TicketRequest
ticket()
Generates a time-sensitive authentication token for accessing a virtual machine's display.VmService.UndoSnapshotRequest
undoSnapshot()
Restores the virtual machine to the state it had before previewing the snapshot.VmService.UpdateRequest
update()
Update the virtual machine in the system for the given virtual machine id.VmWatchdogsService
watchdogsService()
-
Methods inherited from interface org.ovirt.engine.sdk4.services.MeasurableService
statisticsService
-
-
-
-
Method Detail
-
autoPinCpuAndNumaNodes
VmService.AutoPinCpuAndNumaNodesRequest autoPinCpuAndNumaNodes()
Apply an automatic CPU and NUMA configuration on the VM. An example for a request: [source] ---- POST /ovirt-engine/api/vms/123/autopincpuandnumanodes ---- With a request body like this: [source,xml] ----true
-
cancelMigration
VmService.CancelMigrationRequest cancelMigration()
This operation stops any migration of a virtual machine to another physical host. [source] ---- POST /ovirt-engine/api/vms/123/cancelmigration ---- The cancel migration action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] --------
-
clone_
VmService.CloneRequest clone_()
-
commitSnapshot
VmService.CommitSnapshotRequest commitSnapshot()
Permanently restores the virtual machine to the state of the previewed snapshot. See the <> operation for details.
-
detach
VmService.DetachRequest detach()
Detaches a virtual machine from a pool. [source] ---- POST /ovirt-engine/api/vms/123/detach ---- The detach action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] --------
-
export
VmService.ExportRequest export()
Exports the virtual machine. A virtual machine can be exported to an export domain. For example, to export virtual machine `123` to the export domain `myexport`: [source] ---- POST /ovirt-engine/api/vms/123/export ---- With a request body like this: [source,xml] ----myexport true true myhost /home/ovirt myvm.ova
-
freezeFilesystems
VmService.FreezeFilesystemsRequest freezeFilesystems()
Freezes virtual machine file systems. This operation freezes a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of a running virtual machine. Normally, this is done automatically by the manager, but this must be executed manually with the API for virtual machines using OpenStack Volume (Cinder) disks. Example: [source] ---- POST /ovirt-engine/api/vms/123/freezefilesystems ---- [source,xml] --------
-
get
VmService.GetRequest get()
Retrieves the description of the virtual machine.
-
logon
VmService.LogonRequest logon()
Initiates the automatic user logon to access a virtual machine from an external console. This action requires the `ovirt-guest-agent-gdm-plugin` and the `ovirt-guest-agent-pam-module` packages to be installed and the `ovirt-guest-agent` service to be running on the virtual machine. Users require the appropriate user permissions for the virtual machine in order to access the virtual machine from an external console. For example: [source] ---- POST /ovirt-engine/api/vms/123/logon ---- Request body: [source,xml] --------
-
maintenance
VmService.MaintenanceRequest maintenance()
Sets the global maintenance mode on the hosted engine virtual machine. This action has no effect on other virtual machines. Example: [source] ---- POST /ovirt-engine/api/vms/123/maintenance ---- [source,xml] ----true
-
migrate
VmService.MigrateRequest migrate()
Migrates a virtual machine to another physical host. Example: [source] ---- POST /ovirt-engine/api/vms/123/migrate ---- To specify a specific host to migrate the virtual machine to: [source,xml] ----
-
previewSnapshot
VmService.PreviewSnapshotRequest previewSnapshot()
Temporarily restores the virtual machine to the state of a snapshot. The snapshot is indicated with the `snapshot.id` parameter. It is restored temporarily, so that the content can be inspected. Once that inspection is finished, the state of the virtual machine can be made permanent, using the <> method, or discarded using the < > method.
-
reboot
VmService.RebootRequest reboot()
Sends a reboot request to a virtual machine. For example: [source] ---- POST /ovirt-engine/api/vms/123/reboot ---- The reboot action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] -------- To reboot the VM even if a backup is running for it, the action should include the 'force' element. For example, to force reboot virtual machine `123`: ---- POST /ovirt-engine/api/vms/123/reboot ---- [source,xml] ---- true
-
remove
VmService.RemoveRequest remove()
Removes the virtual machine, including the virtual disks attached to it. For example, to remove the virtual machine with identifier `123`: [source] ---- DELETE /ovirt-engine/api/vms/123 ----
-
reorderMacAddresses
VmService.ReorderMacAddressesRequest reorderMacAddresses()
-
reset
VmService.ResetRequest reset()
Sends a reset request to a virtual machine. For example: [source] ---- POST /ovirt-engine/api/vms/123/reset ---- The reset action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] --------
-
shutdown
VmService.ShutdownRequest shutdown()
This operation sends a shutdown request to a virtual machine. For example: [source] ---- POST /ovirt-engine/api/vms/123/shutdown ---- The shutdown action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] -------- To shutdown the VM even if a backup is running for it, the action should include the 'force' element. For example, to force shutdown virtual machine `123`: ---- POST /ovirt-engine/api/vms/123/shutdown ---- [source,xml] ---- true
-
start
VmService.StartRequest start()
Starts the virtual machine. If the virtual environment is complete and the virtual machine contains all necessary components to function, it can be started. This example starts the virtual machine: [source] ---- POST /ovirt-engine/api/vms/123/start ---- With a request body: [source,xml] --------
-
stop
VmService.StopRequest stop()
This operation forces a virtual machine to power-off. For example: [source] ---- POST /ovirt-engine/api/vms/123/stop ---- The stop action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] -------- To stop the VM even if a backup is running for it, the action should include the 'force' element. For example, to force stop virtual machine `123`: ---- POST /ovirt-engine/api/vms/123/stop ---- [source,xml] ---- true
-
suspend
VmService.SuspendRequest suspend()
This operation saves the virtual machine state to disk and stops it. Start a suspended virtual machine and restore the virtual machine state with the start action. For example: [source] ---- POST /ovirt-engine/api/vms/123/suspend ---- The suspend action does not take any action specific parameters; therefore, the request body should contain an empty `action`: [source,xml] --------
-
thawFilesystems
VmService.ThawFilesystemsRequest thawFilesystems()
Thaws virtual machine file systems. This operation thaws a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of a running virtual machine. Normally, this is done automatically by the manager, but this must be executed manually with the API for virtual machines using OpenStack Volume (Cinder) disks. Example: [source] ---- POST /api/vms/123/thawfilesystems ---- [source,xml] --------
-
ticket
VmService.TicketRequest ticket()
Generates a time-sensitive authentication token for accessing a virtual machine's display. For example: [source] ---- POST /ovirt-engine/api/vms/123/ticket ---- The client-provided action optionally includes a desired ticket value and/or an expiry time in seconds. The response specifies the actual ticket value and expiry used. [source,xml] ----abcd12345 120 >, which manages the graphics consoles of the virtual machine, by sending a request: [source] ---- POST /ovirt-engine/api/vms/123/graphicsconsoles/456/ticket ---- ====
-
exportToExportDomain
VmService.ExportToExportDomainRequest exportToExportDomain()
Exports a virtual machine to an export domain.
-
exportToPathOnHost
VmService.ExportToPathOnHostRequest exportToPathOnHost()
Exports a virtual machine as an OVA file to a given path on a specified host.
-
undoSnapshot
VmService.UndoSnapshotRequest undoSnapshot()
Restores the virtual machine to the state it had before previewing the snapshot. See the <> operation for details.
-
update
VmService.UpdateRequest update()
Update the virtual machine in the system for the given virtual machine id.
-
affinityLabelsService
AssignedAffinityLabelsService affinityLabelsService()
List of scheduling labels assigned to this virtual machine.
-
applicationsService
VmApplicationsService applicationsService()
-
backupsService
VmBackupsService backupsService()
List of backups of this virtual machine.
-
cdromsService
VmCdromsService cdromsService()
-
checkpointsService
VmCheckpointsService checkpointsService()
List of checkpoints of this virtual machine.
-
diskAttachmentsService
DiskAttachmentsService diskAttachmentsService()
List of disks attached to this virtual machine.
-
graphicsConsolesService
VmGraphicsConsolesService graphicsConsolesService()
-
hostDevicesService
VmHostDevicesService hostDevicesService()
-
katelloErrataService
KatelloErrataService katelloErrataService()
Reference to the service that can show the applicable errata available on the virtual machine. This information is taken from Katello.
-
nicsService
VmNicsService nicsService()
-
numaNodesService
VmNumaNodesService numaNodesService()
-
permissionsService
AssignedPermissionsService permissionsService()
-
reportedDevicesService
VmReportedDevicesService reportedDevicesService()
-
sessionsService
VmSessionsService sessionsService()
Reference to the service that provides information about virtual machine user sessions.
-
snapshotsService
SnapshotsService snapshotsService()
-
tagsService
AssignedTagsService tagsService()
-
watchdogsService
VmWatchdogsService watchdogsService()
-
service
Service service(String path)
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceMeasurableService
-
-