|
VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
|
Avaliable Methods | |
| public method | mount () |
| public method | new () |
| public method | unmount () |
Provides an interface to mount and unmount an ISO image on a virtual machine.
This is an API that will let its client mount or unmount an ISO image on a virtual machine as a CD-ROM.
| public method Com::Vmware::Vcenter::Iso::Image::mount | ( | ) |
Mounts an ISO image from a content library on a virtual machine.
| library_item | [REQUIRED] The identifier of the library item having the ISO image to mount on the virtual machine. The value must be an identifier for the resource type getQualifiedName(com.vmware.content.library.Item). . The value must be str. |
| vm | [REQUIRED] The identifier of the virtual machine where the specified ISO image will be mounted. The value must be an identifier for the resource type getQualifiedName(VirtualMachine). . The value must be str. |
| The | identifier of the newly created virtual CD-ROM backed by the specified ISO image. The value will be an identifier for the resource type getQualifiedName(com.vmware.vcenter.vm.hardware.Cdrom). The return type will be str |
| Com::Vmware::Vapi::Std::Errors::NotFound | If either vm or the library_item is not found. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | If no .iso file is present on the library item. |
| Com::Vmware::Vapi::Std::Errors::NotAllowedInCurrentState | When the operation is not allowed on the virtual machine in its current state. |
Code:
| public method Com::Vmware::Vcenter::Iso::Image::new | ( | ) |
Constructor to initialize the object
| api_provider | - protocol connection to use with stubs created by this factory |
| StubConfig | - Stub's additional configuration |
| Blessed | object |
Code:
| public method Com::Vmware::Vcenter::Iso::Image::unmount | ( | ) |
Unmounts a previously mounted CD-ROM using an ISO image as a backing.
| vm | [REQUIRED] The identifier of the virtual machine from which to unmount the virtual CD-ROM. The value must be an identifier for the resource type getQualifiedName(VirtualMachine). . The value must be str. |
| cdrom | [REQUIRED] The device identifier of the CD-ROM. The value must be an identifier for the resource type getQualifiedName(com.vmware.vcenter.vm.hardware.Cdrom). . The value must be str. |
| Com::Vmware::Vapi::Std::Errors::NotFound | If the virtual machine identified by vm is not found or the cdrom does not identify a virtual CD-ROM in the virtual machine. |
| Com::Vmware::Vapi::Std::Errors::NotAllowedInCurrentState | When the operation is not allowed on the virtual machine in its current state. |
Code: