The VMware API VM utility module to build SOAP object specs.
Build the datastore compliant path.
Builds the VM clone spec.
Builds a Config Spec for the LSI or Bus Logic Controller’s addition which acts as the controller for the virtual hard disk to be attached to the VM.
Builds a config spec for the addition of a new network adapter to the VM.
Builds spec for the creation of a new/ attaching of an already existing Virtual Disk to the VM.
Builds spec for the deletion of an already existing Virtual Disk from VM.
Builds the virtual switch port group add spec.
Get reference to the cluster with the name specified.
Builds the Virtual Disk copy spec.
Get the datastore list and choose the first local storage.
Builds the dummy VM create spec.
This method allows you to find the managed object ID of the host running a VM. Since vMotion can change the value, you should not presume that this is a value that you can cache for very long and should be prepared to allow for it to change.
Parameters: |
|
---|---|
Returns: | the host_id running the virtual machine |
Get the ESXi host running a VM by its name.
Get reference to a host within the cluster specified.
Get the ESXi host running a VM by its name.
Get a host reference object for a host_id string.
Builds the machine id change config spec.
Builds the RDM virtual disk create spec.
Gets the RDM disk key.
Builds the VM Create spec.
Get reference to the VM through uuid or vm name.
Get reference to the VM with the name specified.
Get reference to the VM with the uuid specified.
Builds the vmdk attach config spec.
Builds the virtual disk create spec.
Builds the vmdk detach config spec.
Gets the vmdk file path and the storage adapter type.
Builds the vnc config spec.
Use this method to filter property collector results.
Because network traffic is expensive, multiple VMwareAPI calls will sometimes pile-up properties to be collected. That means results may contain many different values for multiple purposes.
This helper will filter a list for a single result and filter the properties of that result to find the single value of whatever type resides in that result. This could be a ManagedObjectReference ID or a complex value.
Parameters: |
|
---|---|
Returns: | the value of the property. |
Builds the VM relocation spec.
Builds the datastore search spec.
Split the VMware style datastore path to get the Datastore name and the entity path.