Mount Image
Mounts an ISO image from a content library on a virtual machine. 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 requires VirtualMachine.Config.AddRemoveDevice. - The resource com.vmware.content.library.Item referenced by the parameter libraryItem requires ContentLibrary.DownloadSession.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"library_item": "string",
"vm": "string"
}
The identifier of the library item having the ISO image to mount on the virtual machine. The parameter must be an identifier for the resource type: com.vmware.content.library.Item.
The identifier of the virtual machine where the specified ISO image will be mounted. The parameter must be an identifier for the resource type: VirtualMachine.
Authentication
Response
Response BodyResponse Body
The identifier of the newly created virtual CD-ROM backed by the specified ISO image. The result will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom.
Errors
com.vmware.vapi.std.errors.invalid_argument : If no .iso file is present on the library item. | com.vmware.vapi.std.errors.not_allowed_in_current_state : When the operation is not allowed on the virtual machine in its current state.
com.vmware.vapi.std.errors.resource_inaccessible : The server encountered an unexpected condition which prevented it from fulfilling the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/com/vmware/vcenter/iso/image/id:{library_item}?~action=mount
x-vmw-doc-operation: mount