Class VmGraphicsConsoleServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmGraphicsConsoleServiceImpl
-
- All Implemented Interfaces:
Service
,VmGraphicsConsoleService
public class VmGraphicsConsoleServiceImpl extends ServiceImpl implements VmGraphicsConsoleService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmGraphicsConsoleService
VmGraphicsConsoleService.GetRequest, VmGraphicsConsoleService.GetResponse, VmGraphicsConsoleService.ProxyTicketRequest, VmGraphicsConsoleService.ProxyTicketResponse, VmGraphicsConsoleService.RemoteViewerConnectionFileRequest, VmGraphicsConsoleService.RemoteViewerConnectionFileResponse, VmGraphicsConsoleService.RemoveRequest, VmGraphicsConsoleService.RemoveResponse, VmGraphicsConsoleService.TicketRequest, VmGraphicsConsoleService.TicketResponse
-
-
Constructor Summary
Constructors Constructor Description VmGraphicsConsoleServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmGraphicsConsoleService.GetRequest
get()
Retrieves the graphics console configuration of the virtual machine.VmGraphicsConsoleService.ProxyTicketRequest
proxyTicket()
VmGraphicsConsoleService.RemoteViewerConnectionFileRequest
remoteViewerConnectionFile()
Generates the file which is compatible with `remote-viewer` client.VmGraphicsConsoleService.RemoveRequest
remove()
Remove the graphics console from the virtual machine.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.VmGraphicsConsoleService.TicketRequest
ticket()
Generates a time-sensitive authentication token for accessing this virtual machine's console.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
VmGraphicsConsoleServiceImpl
public VmGraphicsConsoleServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public VmGraphicsConsoleService.GetRequest get()
Description copied from interface:VmGraphicsConsoleService
Retrieves the graphics console configuration of the virtual machine. IMPORTANT: By default, when the `current` parameter is not specified, the data returned corresponds to the next execution of the virtual machine. In the current implementation of the system this means that the `address` and `port` attributes will not be populated because the system does not know what address and port will be used for the next execution. Since in most cases those attributes are needed, it is strongly advised to aways explicitly include the `current` parameter with the value `true`.- Specified by:
get
in interfaceVmGraphicsConsoleService
-
proxyTicket
public VmGraphicsConsoleService.ProxyTicketRequest proxyTicket()
- Specified by:
proxyTicket
in interfaceVmGraphicsConsoleService
-
remoteViewerConnectionFile
public VmGraphicsConsoleService.RemoteViewerConnectionFileRequest remoteViewerConnectionFile()
Description copied from interface:VmGraphicsConsoleService
Generates the file which is compatible with `remote-viewer` client. Use the following request to generate remote viewer connection file of the graphics console. Note that this action generates the file only if virtual machine is running. [source] ---- POST /ovirt-engine/api/vms/123/graphicsconsoles/456/remoteviewerconnectionfile ---- The `remoteviewerconnectionfile` action does not take any action specific parameters, so the request body should contain an empty `action`: [source,xml] -------- The response contains the file, which can be used with `remote-viewer` client. [source,xml] ---- [virt-viewer] type=spice host=192.168.1.101 port=-1 password=123456789 delete-this-file=1 fullscreen=0 toggle-fullscreen=shift+f11 release-cursor=shift+f12 secure-attention=ctrl+alt+end tls-port=5900 enable-smartcard=0 enable-usb-autoshare=0 usb-filter=null tls-ciphers=DEFAULT host-subject=O=local,CN=example.com ca=... - Specified by:
remoteViewerConnectionFile
in interfaceVmGraphicsConsoleService
-
remove
public VmGraphicsConsoleService.RemoveRequest remove()
Description copied from interface:VmGraphicsConsoleService
Remove the graphics console from the virtual machine.- Specified by:
remove
in interfaceVmGraphicsConsoleService
-
ticket
public VmGraphicsConsoleService.TicketRequest ticket()
Description copied from interface:VmGraphicsConsoleService
Generates a time-sensitive authentication token for accessing this virtual machine's console. [source] ---- POST /ovirt-engine/api/vms/123/graphicsconsoles/456/ticket ---- The client-provided action optionally includes a desired ticket value and/or an expiry time in seconds. In any case, the response specifies the actual ticket value and expiry used. [source,xml] ----abcd12345 120 - Specified by:
ticket
in interfaceVmGraphicsConsoleService
-
service
public Service service(String path)
Description copied from interface:VmGraphicsConsoleService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceVmGraphicsConsoleService
-
-