Vcenter Iso Image unmount
Unmounts a previously mounted CD-ROM using an ISO image as a backing.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Read
. - The resource
VirtualMachine
referenced by the parameter vm requiresVirtualMachine.Config.AddRemoveDevice
. - The resource
com.vmware.vcenter.vm.hardware.Cdrom
referenced by the parameter cdrom requiresSystem.Read
.
Request body for invoking operation: unmount
{
"vm": "string",
"cdrom": "string"
}
The identifier of the virtual machine from which to unmount the virtual CD-ROM.
The parameter must be an identifier for the resource type: VirtualMachine
.
The device identifier of the CD-ROM.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.
Success!
When the operation is not allowed on the virtual machine in its current state.
{
"messages": [
{
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi Std NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
}
],
"data": {},
"error_type": "string"
}
If the virtual machine identified by vm is not found or the cdrom does not identify a virtual CD-ROM in the virtual machine.
"Vapi Std Errors NotFound Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"cdrom:"string","vm:"string"}' https://{api_host}/api/vcenter/iso/image?action=unmount