Virtual Machine Put Usb Scan Codes
Inject a sequence of USB HID scan codes into the keyboard.
Required privileges: VirtualMachine.Interact.PutUsbScanCodes
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VirtualMachine/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"spec": {
"keyEvents": [
{
"usbHidCode": 0
}
]
}
}
{
"spec": {
"_typeName": "string",
"keyEvents": [
{
"_typeName": "string",
"usbHidCode": 0,
"modifiers": {
"_typeName": "string",
"leftControl": false,
"leftShift": false,
"leftAlt": false,
"leftGui": false,
"rightControl": false,
"rightShift": false,
"rightAlt": false,
"rightGui": false
}
}
]
}
}
This data object contains information about which USB HID codes to send to the Virtual Machine's keyboard.
Number of keys injected.