Acquire Mks Ticket operation
The Acquire Mks Ticket operation creates and returns a one-time usable credential for establishing a remote mouse-keyboard-screen connection to the specified virtual machine.
The following table describes the elements for this request.
Adapter request elements for the Acquire Mks Ticket operation
Element | Definition | Required |
---|---|---|
<operation-type> | Defines the type of operation: Advanced_Vm | Yes |
<operation-name> | Defines the name of operation: Acquire_Mks_Ticket | Yes |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter | No |
<transport> | Specifies the transport protocol for the message | No |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center | No |
<password> | Specifies the password corresponding to <user-name> | Conditional; required if <user-name> is specified |
<parameters> | Contains the elements required to execute the operation | Yes |
<virtual-machine> | Specifies the name of the virtual machine used to make the method call | Yes |
The following code sample shows a sample adapter request for the Acquire Mks Ticket operation.
Sample adapter request for the Acquire Mks Ticket operation
<operation-type>Advanced_Vm</operation-type>
<operation-name>Acquire_Mks_Ticket</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<virtual-machine>TestDev156</virtual-machine>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Acquire Mks Ticket operation.
Sample adapter response for the Acquire Mks Ticket operation
<metadata>
<status>success</status>
</metadata>
<AcquireMksTicketResponse>
<returnval>
<ticket>52ee9b9c-d347-b956-d93d-57c87d921c07</ticket>
<cfgFile>/vmfs/volumes/48287d4e-aec12ab6-1d35- 0019b9e1c5fe/TestDev156_1/TestDev156.vmx</cfgFile>
<host>dev151.bmc.com</host>
<port>902</port>
</returnval>
</AcquireMksTicketResponse>
</vmware-infrastructure-response>
The following table describes the response elements.
Adapter response elements for the Acquire Mks Ticket operation
Element | Definition |
---|---|
<cfgFile> | The name of the configuration file for the virtual machine |
<host> | The host to which the connection is to be established |
<port> | The port number to use |
<ticket> | The ticket name |