class VMware_VCloud_SDK_VApp extends VMware_VCloud_SDK_VApp_Abstract
| string |
getEntityId()
Get vCloud ID of the vCloud resource entity from its data object. |
from VMware_VCloud_SDK_Abstract |
| VMware_VCloud_API_TaskType |
deploy(VMware_VCloud_API_DeployVAppParamsType $params)
Deploy the vApp or VM. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
undeploy(VMware_VCloud_API_UndeployVAppParamsType $params)
Undeploy the vApp or VM. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
delete()
Delete the vApp or VM. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
powerOn()
Power on the VM or all Vms contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
powerOff()
Power off the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
reset()
Reset the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
reboot()
Reboot the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
suspend()
Suspend the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
discardSuspendedState()
Discard suspended state of the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
shutdown()
Shutdown the VM or all VMs contained in the vApp. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_MetadataType|VMware_VCloud_API_MetadataValueType|null |
getMetadata(string $key = null, string $domain = null)
Get metadata associated with the vApp/VM or metadata associated with the vApp/VM for the specified key in the specified domain. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
mergeMetadata(VMware_VCloud_API_MetadataType $meta)
Merges the metadata for the vApp or VM with the information provided. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
setMetadataByKey(string $key, VMware_VCloud_API_MetadataValueType $value, string $domain = null)
Sets the metadata for the particular key in the specified domain for the vApp or VM to the value provided. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_TaskType |
deleteMetadataByKey(string $key, string $domain = null)
Deletes the metadata for the particular key in the specified domain for the vApp or VM. |
from VMware_VCloud_SDK_VApp_Abstract |
| VMware_VCloud_API_ReferenceType |
getVAppRef()
Get a reference to a VMware vCloud vApp entity. |
|
| VMware_VCloud_API_VAppType |
getVApp()
Get a VMware vCloud vApp entity. |
|
| string |
getId()
Constructs vCloud ID of this vApp from its UUID. |
|
| VMware_VCloud_API_LinkType|null |
getVdcRef()
Get the link to the vDC to which this vApp belongs. |
|
| VMware_VCloud_API_VdcType|null |
getVdc()
Get the vDC to which this vApp belongs. |
|
| VMware_VCloud_API_TaskType |
modify(string $name = null, string $description = null)
Modify name and/or description of this vApp. |
|
| VMware_VCloud_API_TaskType |
recompose(VMware_VCloud_API_RecomposeVAppParamsType $params)
Recompose a vApp. |
|
| array |
getContainedVAppRefs(string $name = null)
Get references to contained vApps or contained vApps with given name. |
|
| array |
getContainedVmRefs(string $name = null)
Get references to contained VMs or contained VMs with given name. |
|
| array |
getContainedVApps(string $name = null)
Get contained vApps. |
|
| array |
getContainedVms(string $name = null)
Get contained VMs. |
|
| VMware_VCloud_API_NetworkConfigSectionType |
getNetworkConfigSettings()
Get network configuration settings of the vApp. |
|
| VMware_VCloud_API_TaskType |
modifyNetworkConfigSettings(VMware_VCloud_API_NetworkConfigSectionType $netConfig)
Modify network configuration settings of the vApp. |
|
| VMware_VCloud_API_LeaseSettingsSectionType |
getLeaseSettings()
Get the lease settings of this vApp. |
|
| VMware_VCloud_API_TaskType |
modifyLeaseSettings(VMware_VCloud_API_LeaseSettingsSectionType $leaseSettings)
Modify the lease settings of this vApp. |
|
| VMware_VCloud_API_OVF_StartupSection_Type |
getStartupSettings()
Get startup section of the vApp. |
|
| VMware_VCloud_API_TaskType |
modifyStartupSettings(VMware_VCloud_API_StartupSection_Type $startupSection)
Modify the startup settings of the vApp. |
|
| VMware_VCloud_API_OVF_NetworkSection_Type |
getNetworkSettings()
Get the network settings of this vApp. |
|
| VMware_VCloud_API_ControlAccessParamsType |
getControlAccess()
Get the control access of the vApp. |
|
| VMware_VCloud_API_ControlAccessParamsType |
modifyControlAccess(VMware_VCloud_API_ControlAccessParamsType $controlAccess)
Modify the control access of the vApp. |
|
| int |
getStatus()
Get the status of this vApp. |
|
| VMware_VCloud_API_OwnerType |
getOwner()
Get vApp owner. |
|
| null |
changeOwner(VMware_VCloud_API_OwnerType $owner)
Change vApp owner. |
|
| null |
enterMaintenanceMode()
VApp enters into maintenance mode. |
|
| null |
exitMaintenanceMode()
VApp exits maintenance mode. |
|
| VMware_VCloud_API_TaskType|null |
resetVAppNetwork()
Resets vApp network. |
|
| VMware_VCloud_API_OVF_EnvelopeType |
getOVFDescriptor()
Retrieve the OVF descriptor of a vApp directly. |
|
| String |
getOVFDescriptorAsString()
Retrieve the OVF descriptor of a vApp directly as string. |
|
| array |
getVmUUIDs()
Retrieve VM BIOS UUID as described in the OVF Virtual System. |
|
| VMware_VCloud_API_SnapshotSectionType |
getSnapshotSection()
Retrieve SnapshotSection element for a vApp or VM. |
|
| VMware_VCloud_API_TaskType |
createSnapshot(VMware_VCloud_API_CreateSnapshotParamsType $params)
Creates new snapshot of a virtual machine or of all the virtual machines in a vApp. |
|
| VMware_VCloud_API_TaskType |
disableNestedHypervisor()
Hide hardware-assisted CPU virtualization from guest OS. |
|
| VMware_VCloud_API_TaskType |
enableNestedHypervisor()
Expose hardware-assisted CPU virtualization to guest OS. |
|
| VMware_VCloud_API_TaskType |
removeAllSnapshots()
Removes all user created snapshots for a vApp or virtual machine. |
|
| VMware_VCloud_API_TaskType |
revertToCurrentSnapshot()
Reverts a vApp or virtual machine to the current snapshot, if any. |
|
|
disableDownload()
Disable a vApp for downloading. |
||
| VMware_VCloud_API_TaskType |
enableDownload(boolean $wait = true)
Enable a vApp for downloading. |
|
| null |
downloadOVFFile(string $destDir = '.')
Download OVF package. |
|
| null |
downloadVapp(string $destDir = '.')
Download the vApp as an ovf package. |
|
| null |
downloadLosslessOVFFile(string $destDir = '.')
Download lossless vApp OVF. |
|
| array |
getUploadedFileNames(VMware_VCloud_API_VAppType $vApp)
Get file information after uploading vApp. |
|
| array |
getUploadFileNames(VMware_VCloud_API_VAppType $vApp)
Get file information before uploading vApp. |
|
| string|null |
getUploadOVFDescriptorUrl($files)
Get upload URL of an OVF descriptor file. |
|
| null |
uploadOVFDescriptor(string $url, string $filename)
Upload OVF descriptor file. |
|
|
UploadFile(array $files, string $ovfDescriptorPath)
Upload the vApp related files. |
public string
getEntityId()
Get vCloud ID of the vCloud resource entity from its data object.
public VMware_VCloud_API_TaskType
deploy(VMware_VCloud_API_DeployVAppParamsType $params)
Deploy the vApp or VM.
public VMware_VCloud_API_TaskType
undeploy(VMware_VCloud_API_UndeployVAppParamsType $params)
Undeploy the vApp or VM.
public VMware_VCloud_API_TaskType
delete()
Delete the vApp or VM.
The vApp or VM has to be powered off and undeployed before it can be deleted.
public VMware_VCloud_API_TaskType
powerOn()
Power on the VM or all Vms contained in the vApp.
public VMware_VCloud_API_TaskType
powerOff()
Power off the VM or all VMs contained in the vApp.
public VMware_VCloud_API_TaskType
reset()
Reset the VM or all VMs contained in the vApp.
public VMware_VCloud_API_TaskType
reboot()
Reboot the VM or all VMs contained in the vApp.
public VMware_VCloud_API_TaskType
suspend()
Suspend the VM or all VMs contained in the vApp.
public VMware_VCloud_API_TaskType
discardSuspendedState()
Discard suspended state of the VM or all VMs contained in the vApp.
public VMware_VCloud_API_TaskType
shutdown()
Shutdown the VM or all VMs contained in the vApp.
public VMware_VCloud_API_MetadataType|VMware_VCloud_API_MetadataValueType|null
getMetadata(string $key = null, string $domain = null)
Get metadata associated with the vApp/VM or metadata associated with the vApp/VM for the specified key in the specified domain.
public VMware_VCloud_API_TaskType
mergeMetadata(VMware_VCloud_API_MetadataType $meta)
Merges the metadata for the vApp or VM with the information provided.
public VMware_VCloud_API_TaskType
setMetadataByKey(string $key, VMware_VCloud_API_MetadataValueType $value, string $domain = null)
Sets the metadata for the particular key in the specified domain for the vApp or VM to the value provided.
Note: This will replace any existing metadata information.
public VMware_VCloud_API_TaskType
deleteMetadataByKey(string $key, string $domain = null)
Deletes the metadata for the particular key in the specified domain for the vApp or VM.
public VMware_VCloud_API_ReferenceType
getVAppRef()
Get a reference to a VMware vCloud vApp entity.
public VMware_VCloud_API_VAppType
getVApp()
Get a VMware vCloud vApp entity.
public string
getId()
Constructs vCloud ID of this vApp from its UUID.
public VMware_VCloud_API_LinkType|null
getVdcRef()
Get the link to the vDC to which this vApp belongs.
public VMware_VCloud_API_VdcType|null
getVdc()
Get the vDC to which this vApp belongs.
public VMware_VCloud_API_TaskType
modify(string $name = null, string $description = null)
Modify name and/or description of this vApp.
public VMware_VCloud_API_TaskType
recompose(VMware_VCloud_API_RecomposeVAppParamsType $params)
Recompose a vApp.
public array
getContainedVAppRefs(string $name = null)
Get references to contained vApps or contained vApps with given name.
public array
getContainedVmRefs(string $name = null)
Get references to contained VMs or contained VMs with given name.
public array
getContainedVApps(string $name = null)
Get contained vApps.
public array
getContainedVms(string $name = null)
Get contained VMs.
public VMware_VCloud_API_NetworkConfigSectionType
getNetworkConfigSettings()
Get network configuration settings of the vApp.
public VMware_VCloud_API_TaskType
modifyNetworkConfigSettings(VMware_VCloud_API_NetworkConfigSectionType $netConfig)
Modify network configuration settings of the vApp.
public VMware_VCloud_API_LeaseSettingsSectionType
getLeaseSettings()
Get the lease settings of this vApp.
public VMware_VCloud_API_TaskType
modifyLeaseSettings(VMware_VCloud_API_LeaseSettingsSectionType $leaseSettings)
Modify the lease settings of this vApp.
public VMware_VCloud_API_OVF_StartupSection_Type
getStartupSettings()
Get startup section of the vApp.
public VMware_VCloud_API_TaskType
modifyStartupSettings(VMware_VCloud_API_StartupSection_Type $startupSection)
Modify the startup settings of the vApp.
public VMware_VCloud_API_OVF_NetworkSection_Type
getNetworkSettings()
Get the network settings of this vApp.
public VMware_VCloud_API_ControlAccessParamsType
getControlAccess()
Get the control access of the vApp.
public VMware_VCloud_API_ControlAccessParamsType
modifyControlAccess(VMware_VCloud_API_ControlAccessParamsType $controlAccess)
Modify the control access of the vApp.
public int
getStatus()
Get the status of this vApp.
The following are the possible vApp status:
public VMware_VCloud_API_OwnerType
getOwner()
Get vApp owner.
public null
changeOwner(VMware_VCloud_API_OwnerType $owner)
Change vApp owner.
public null
enterMaintenanceMode()
VApp enters into maintenance mode.
public null
exitMaintenanceMode()
VApp exits maintenance mode.
public VMware_VCloud_API_TaskType|null
resetVAppNetwork()
Resets vApp network.
public VMware_VCloud_API_OVF_EnvelopeType
getOVFDescriptor()
Retrieve the OVF descriptor of a vApp directly.
public String
getOVFDescriptorAsString()
Retrieve the OVF descriptor of a vApp directly as string.
public array
getVmUUIDs()
Retrieve VM BIOS UUID as described in the OVF Virtual System.
public VMware_VCloud_API_SnapshotSectionType
getSnapshotSection()
Retrieve SnapshotSection element for a vApp or VM.
public VMware_VCloud_API_TaskType
createSnapshot(VMware_VCloud_API_CreateSnapshotParamsType $params)
Creates new snapshot of a virtual machine or of all the virtual machines in a vApp.
Prior to creation of the new
snapshots, any existing user created snapshots associated with the virtual machines are removed.
public VMware_VCloud_API_TaskType
disableNestedHypervisor()
Hide hardware-assisted CPU virtualization from guest OS.
public VMware_VCloud_API_TaskType
enableNestedHypervisor()
Expose hardware-assisted CPU virtualization to guest OS.
public VMware_VCloud_API_TaskType
removeAllSnapshots()
Removes all user created snapshots for a vApp or virtual machine.
public VMware_VCloud_API_TaskType
revertToCurrentSnapshot()
Reverts a vApp or virtual machine to the current snapshot, if any.
public
disableDownload()
Disable a vApp for downloading.
public VMware_VCloud_API_TaskType
enableDownload(boolean $wait = true)
Enable a vApp for downloading.
public null
downloadOVFFile(string $destDir = '.')
Download OVF package.
public null
downloadVapp(string $destDir = '.')
Download the vApp as an ovf package.
The ovf file and its vmdk contents are downloaded to the specified location. Before downloading make sure the vapp is enabled for download.
public null
downloadLosslessOVFFile(string $destDir = '.')
Download lossless vApp OVF.
Lossless download mode generates ovf without loosing any of its configurations.
public array
getUploadedFileNames(VMware_VCloud_API_VAppType $vApp)
Get file information after uploading vApp.
public array
getUploadFileNames(VMware_VCloud_API_VAppType $vApp)
Get file information before uploading vApp.
public string|null
getUploadOVFDescriptorUrl($files)
Get upload URL of an OVF descriptor file.
public null
uploadOVFDescriptor(string $url, string $filename)
Upload OVF descriptor file.
public
UploadFile(array $files, string $ovfDescriptorPath)
Upload the vApp related files.
This can be vmdk or a manifest.