|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.AbstractVAppType>
com.vmware.vcloud.sdk.AbstractVapp<com.vmware.vcloud.api.rest.schema.VAppType>
com.vmware.vcloud.sdk.Vapp
public class Vapp
Helper class to access the vApp Resource in vCLoud API.
VAppType| Constructor Summary | |
|---|---|
Vapp(VcloudClient client,
com.vmware.vcloud.api.rest.schema.VAppType vAppType)
Constructor for creating a vapp. |
|
| Method Summary | |
|---|---|
void |
changeOwner(com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
Change VApp owner. |
static void |
changeOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef,
com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
Change VApp owner. |
void |
disableDownload()
Disable a vApp for download |
static void |
disableDownload(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Disable a vApp for download |
void |
disableMaintenance()
Disable vApp from Maintenance mode. |
static void |
disableMaintenance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Disable vApp from Maintenance mode. |
InputStream |
downloadFile(String fileName)
Downloading the File. |
InputStream |
downloadLosslessOVF()
Download lossless vApp OVF. |
InputStream |
downloadOVFFile()
Downloading the OVF File. |
void |
downloadVapp(String downloadLocation)
Download the vApp as an ovf package. |
Task |
enableDownload()
Enable a vApp for download |
static Task |
enableDownload(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Enable a vApp for download |
void |
enableMaintenance()
Enable vApp for Maintenance mode. |
static void |
enableMaintenance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Enable vApp for Maintenance mode. |
List<Vapp> |
getChildrenVapps()
Returns the list of children Vapp |
List<VM> |
getChildrenVms()
Returns the list of children Vm |
com.vmware.vcloud.api.rest.schema.ControlAccessParamsType |
getControlAccess()
Returns VApp Control access |
HashMap<String,com.vmware.vcloud.api.rest.schema.ovf.FileType> |
getDownloadFileNames()
Returns all the file names which can be downloaded. |
com.vmware.vcloud.api.rest.schema.LeaseSettingsSectionType |
getLeaseSettingsSection()
Returns the LeaseSettingsSection for the given vapp |
static com.vmware.vcloud.api.rest.schema.LeaseSettingsSectionType |
getLeaseSettingsSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the LeaseSettingsSection |
com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork |
getNetworkByName(String networkName)
Returns the Network By Name of a VApp |
com.vmware.vcloud.api.rest.schema.NetworkConfigSectionType |
getNetworkConfigSection()
Returns the NetworkConfigSection for the given vapp |
static com.vmware.vcloud.api.rest.schema.NetworkConfigSectionType |
getNetworkConfigSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the NetworkConfigSection |
Set<String> |
getNetworkNames()
Returns Network Names of a VApp |
Collection<com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork> |
getNetworks()
Returns the Networks of a VApp |
HashMap<String,com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork> |
getNetworksByName()
Returns the Networks By Name of a Vapp |
com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionType |
getNetworkSection()
Returns the NetworkSection for the given vapp |
static com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionType |
getNetworkSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the NetworkSection |
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType |
getNetworkVimRef(String vAppNetworkName)
Given a vAppNetwork name. |
com.vmware.vcloud.api.rest.schema.ovf.EnvelopeType |
getOvf()
Get the ovf of the vapp |
static com.vmware.vcloud.api.rest.schema.ovf.EnvelopeType |
getOvf(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Get the ovf of the vapp |
String |
getOvfAsString()
Returns the ovf of vapp as a String |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getOwner()
Returns the owner of the vapp. |
static com.vmware.vcloud.api.rest.schema.ReferenceType |
getOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the owner of the vapp |
com.vmware.vcloud.api.rest.schema.ovf.StartupSectionType |
getStartUpSection()
Returns the StartUpSection for the given vapp |
static com.vmware.vcloud.api.rest.schema.ovf.StartupSectionType |
getStartUpSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the StartupSection |
Set<String> |
getUploadedFileNames()
Get the uploaded file names for this vApp. |
Set<String> |
getUploadFileNames()
Get the upload vmdk file names and the manifest file (if any) for this vApp. |
static Vapp |
getVappById(VcloudClient client,
String vCloudId)
Get Vapp helper using the vCloud ID |
static Vapp |
getVappByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns vApp for the given reference |
com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType |
getVappNetworkConfigurationByName(String vappNetworkConfigurationName)
Returns the Vapp Network Configuration By Name |
Set<String> |
getVappNetworkConfigurationNames()
Returns the Vapp Network Configuration Names |
Collection<com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType> |
getVappNetworkConfigurations()
Returns Vapp Network Configurations |
HashMap<String,com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType> |
getVappNetworkConfigurationsByName()
Returns Vapp Network Configurations By Name |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getVappNetworkRefsByName()
Returns the vApp Network References by name. |
BigInteger |
getVappSize()
Returns the vApp size in MB. |
VappStatus |
getVappStatus()
Returns the vApp status. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getVdcReference()
Returns the Parent Vdc ReferenceType. |
HashMap<String,String> |
getVmUUIDsByName()
Returns a map of the vm's UUIDs based on the name |
Task |
recomposeVapp(com.vmware.vcloud.api.rest.schema.RecomposeVAppParamsType recomposeVappParamsType)
Recompose vApp |
Task |
resetvAppNetwork(String vAppNetworkName)
Reset VApp network. |
Task |
syncSyslogServer(String vAppNetworkName)
Synchronizes the syslog server settings with the system defaults. |
com.vmware.vcloud.api.rest.schema.ControlAccessParamsType |
updateControlAccess(com.vmware.vcloud.api.rest.schema.ControlAccessParamsType controlAccessParams)
Update Vapp Control access |
Task |
updateSection(com.vmware.vcloud.api.rest.schema.ovf.SectionType sectionType)
Updating the vApp. |
Task |
updateVapp(com.vmware.vcloud.api.rest.schema.VAppType vAppType)
Updates name and description of a vApp. |
void |
uploadFile(String fileName,
InputStream is,
long size)
Upload the vApp related files. |
void |
uploadOVFFile(InputStream is,
long size)
Upload the OVF file for the vApp. |
| Methods inherited from class com.vmware.vcloud.sdk.AbstractVapp |
|---|
createSnapshot, createSnapshot, delete, delete, deploy, deploy, discardSuspend, discardSuspend, getProductSections, getProductSections, getResource, getSnapshotSection, getSnapshotSection, isDeployed, powerOff, powerOff, powerOn, powerOn, reboot, reboot, removeAllSnapshots, removeAllSnapshots, reset, reset, revertToCurrentSnapshot, revertToCurrentSnapshot, shutdown, shutdown, suspend, suspend, undeploy, undeploy, updateProductSections |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vapp(VcloudClient client,
com.vmware.vcloud.api.rest.schema.VAppType vAppType)
client - VcloudClientvAppType - VAppTypeVAppType| Method Detail |
|---|
public static Vapp getVappByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vCloud API client VcloudClientvappRef - ReferenceType to the vApp ReferenceType
Vapp
VCloudExceptionVdc.getVappRefs(),
Vdc.getVappRefsByName()
public static Vapp getVappById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Vapp
VCloudException
public Task updateVapp(com.vmware.vcloud.api.rest.schema.VAppType vAppType)
throws VCloudException
vAppType - VAppType
Task
VCloudExceptionVAppTypepublic VappStatus getVappStatus()
VappStatus
public List<Vapp> getChildrenVapps()
throws VCloudException
List
VCloudException
public List<VM> getChildrenVms()
throws VCloudException
List
VCloudException
public com.vmware.vcloud.api.rest.schema.LeaseSettingsSectionType getLeaseSettingsSection()
throws VCloudException
LeaseSettingsSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.LeaseSettingsSectionType getLeaseSettingsSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
LeaseSettingsSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.StartupSectionType getStartUpSection()
throws VCloudException
StartupSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ovf.StartupSectionType getStartUpSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
StartupSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionType getNetworkSection()
throws VCloudException
NetworkSectionType
VCloudException
VCloudException
public static com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionType getNetworkSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
NetworkSectionType
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork> getNetworksByName()
throws VCloudException
HashMap<String, NetworkSectionNetwork
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork getNetworkByName(String networkName)
throws VCloudException
networkName -
NetworkSectionNetwork
VCloudException
public Set<String> getNetworkNames()
throws VCloudException
Set
VCloudException
public Collection<com.vmware.vcloud.api.rest.schema.ovf.NetworkSectionNetwork> getNetworks()
throws VCloudException
Collection
VCloudException
public com.vmware.vcloud.api.rest.schema.NetworkConfigSectionType getNetworkConfigSection()
throws VCloudException
NetworkConfigSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.NetworkConfigSectionType getNetworkConfigSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
NetworkConfigSectionType
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getVappNetworkRefsByName()
HashMap< String, ReferenceType>
public HashMap<String,com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType> getVappNetworkConfigurationsByName()
throws VCloudException
HashMap<String, VAppNetworkConfigurationType
VCloudException
public com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType getVappNetworkConfigurationByName(String vappNetworkConfigurationName)
throws VCloudException
vappNetworkConfigurationName -
VAppNetworkConfigurationType
VCloudException
public Set<String> getVappNetworkConfigurationNames()
throws VCloudException
Set
VCloudException
public Collection<com.vmware.vcloud.api.rest.schema.VAppNetworkConfigurationType> getVappNetworkConfigurations()
throws VCloudException
Collection<VAppNetworkConfigurationType>
VCloudException
public Task updateSection(com.vmware.vcloud.api.rest.schema.ovf.SectionType sectionType)
throws VCloudException
sectionType -
Task
VCloudException
public com.vmware.vcloud.api.rest.schema.ControlAccessParamsType getControlAccess()
throws VCloudException
ControlAccessParamsType
VCloudException
public com.vmware.vcloud.api.rest.schema.ControlAccessParamsType updateControlAccess(com.vmware.vcloud.api.rest.schema.ControlAccessParamsType controlAccessParams)
throws VCloudException
controlAccessParams - ControlAccessParamsType
ControlAccessParamsType
VCloudException
public BigInteger getVappSize()
throws VCloudException
BigInteger
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getVdcReference()
throws VCloudException
ReferenceType
VCloudException
public com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getNetworkVimRef(String vAppNetworkName)
throws VCloudException
vAppNetworkName -
VimObjectRefType
VCloudException
public Task recomposeVapp(com.vmware.vcloud.api.rest.schema.RecomposeVAppParamsType recomposeVappParamsType)
throws VCloudException
recomposeVappParamsType - RecomposeVAppParamsType
Task
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getOwner()
throws VCloudException
ReferenceType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ReferenceType getOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - - VcloudClientvappRef - - ReferenceType ReferenceType of the vApp.
ReferenceType
VCloudException
public static void changeOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef,
com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
throws VCloudException
client - - VcloudClientvappRef - - ReferenceType vApp ReferenceType contained in the VDCuserReference - ReferenceType
VCloudException
public void changeOwner(com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
throws VCloudException
userReference - ReferenceType
VCloudException
public Task resetvAppNetwork(String vAppNetworkName)
throws VCloudException
vAppNetworkName - - Name of the vApp Network getVappNetworkRefsByName()
getVappNetworkConfigurationByName(String)
getVappNetworkConfigurationNames()
getVappNetworkConfigurations()
getVappNetworkConfigurationsByName()
Task
VCloudException
public Task syncSyslogServer(String vAppNetworkName)
throws VCloudException
vAppNetworkName - - Name of the vApp Network getVappNetworkRefsByName()
getVappNetworkConfigurationByName(String)
getVappNetworkConfigurationNames()
getVappNetworkConfigurations()
getVappNetworkConfigurationsByName()
Task
VCloudException
public void enableMaintenance()
throws VCloudException
VCloudException
public void disableMaintenance()
throws VCloudException
VCloudException
public static void enableMaintenance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - VcloudClientvappRef - ReferenceType
VCloudException
public static void disableMaintenance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - VcloudClientvappRef - ReferenceType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ovf.EnvelopeType getOvf(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
EnvelopeType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.EnvelopeType getOvf()
throws VCloudException
EnvelopeType
VCloudException
public Task enableDownload()
throws VCloudException
Task
VCloudException
public static Task enableDownload(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - VcloudClientvappRef - ReferenceType
VCloudException
public void disableDownload()
throws VCloudException
VCloudException
public static void disableDownload(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - VcloudClientvappRef - ReferenceType
VCloudException
public InputStream downloadOVFFile()
throws VCloudException
VCloudException
public InputStream downloadLosslessOVF()
throws VCloudException
VCloudException
public HashMap<String,com.vmware.vcloud.api.rest.schema.ovf.FileType> getDownloadFileNames()
throws VCloudException
VCloudExceptiondownloadOVFFile(),
downloadFile(String),
enableDownload(),
disableDownload()
public InputStream downloadFile(String fileName)
throws VCloudException
fileName - - Name of the file which needs to be downloaded
VCloudExceptiongetDownloadFileNames(),
downloadOVFFile(),
enableDownload(),
disableDownload()
public void downloadVapp(String downloadLocation)
throws VCloudException
downloadLocation -
VCloudExceptionenableDownload()
public void uploadOVFFile(InputStream is,
long size)
throws VCloudException
is - Input stream for the file contentssize - File Size
VCloudException
public Set<String> getUploadFileNames()
throws VCloudException
Set
VCloudException
public Set<String> getUploadedFileNames()
throws VCloudException
Set
VCloudException
public void uploadFile(String fileName,
InputStream is,
long size)
throws VCloudException
fileName - vApp File nameis - Input stream for the file contentssize - The total file size
VCloudException
public String getOvfAsString()
throws VCloudException
String
VCloudException
public HashMap<String,String> getVmUUIDsByName()
throws VCloudException
HashMap
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||