public interface VAppApi
VApp objects.VAppAsyncApiVApp get(String vAppUrn)
VApp.
 
 The VApp could be in one of these statuses:
 FAILED_CREATION(-1) - Transient entity state, e.g., model object is addd but the
 corresponding VC backing does not exist yet. This is further sub-categorized in the respective
 entities.
 UNRESOLVED(0) - Entity is whole, e.g., VM creation is complete and all the required model
 objects and VC backings are created.
 RESOLVED(1) - Entity is resolved.
 DEPLOYED(2) - Entity is deployed.
 SUSPENDED(3) - All VMs of the vApp are suspended.
 POWERED_ON(4) - All VMs of the vApp are powered on.
 WAITING_FOR_INPUT(5) - VM is pending response on a question.
 UNKNOWN(6) - Entity state could not be retrieved from the inventory, e.g., VM power state is
 null.
 UNRECOGNIZED(7) - Entity state was retrieved from the inventory but could not be mapped to an
 internal state.
 POWERED_OFF(8) - All VMs of the vApp are powered off.
 INCONSISTENT_STATE(9) - Apply to VM status, if a vm is POWERED_ON, or
 WAITING_FOR_INPUT, but is undeployed, it is in an inconsistent state.
 MIXED(10)
 - vApp status is set to MIXED when the VMs in the vApp are in different power states
 
 GET /vApp/{id}
 Task edit(String vAppUrn, VApp vApp)
VApp.
 
 
 PUT /vApp/{id}
 ControlAccessParams editControlAccess(String vAppUrn, ControlAccessParams params)
VApp.
 
 
 POST /vApp/{id}/action/controlAccess
 ControlAccessParams editControlAccess(URI vAppHref, ControlAccessParams params)
Task deploy(String vAppUrn, DeployVAppParams params)
VApp.
 
 Deployment means allocation of all resource for a vApp/VM like CPU and memory from a vDC
 resource pool. Deploying a vApp automatically deploys all of the virtual machines it contains.
 As of version 1.5 the operation supports force customization passed with
 DeployVAppParamsType#setForceCustomization(Boolean) parameter.
 
 
 POST /vApp/{id}/action/deploy
 Task deploy(URI vAppHref, DeployVAppParams params)
Task discardSuspendedState(String vAppUrn)
VApp.
 
 Discarding suspended state of a vApp automatically discarded suspended states of all of the
 virtual machines it contains.
 
 
 POST /vApp/{id}/action/discardSuspendedState
 void enterMaintenanceMode(String vAppUrn)
VApp into maintenance mode.
 
 While in maintenance mode, a system admin can operate on the vApp as usual, but end users are
 restricted to read-only operations. Any user-initiated tasks running when the vApp enters
 maintenance mode will continue.
 
 
 POST /vApp/{id}/action/enterMaintenanceMode
 void enterMaintenanceMode(URI vAppHref)
void exitMaintenanceMode(String vAppUrn)
VApp out of maintenance mode.
 
 
 POST /vApp/{id}/action/exitMaintenanceMode
 void exitMaintenanceMode(URI vAppHref)
Task recompose(String vAppUrn, RecomposeVAppParams params)
VApp by removing its own VMs and/or adding new ones from other vApps or
 vApp templates.
 
 To remove VMs you should put their references in elements. The way you add VMs is the same as
 described in compose vApp operation
 VdcApi#composeVApp(String, org.jclouds.vcloud.director.v1_5.domain.ComposeVAppParams).
 The status of vApp will be in
 org.jclouds.vcloud.director.v1_5.domain.ResourceEntityType.Status#UNRESOLVED until the
 recompose task is finished.
 
 
 POST /vApp/{id}/action/recomposeVApp
 Task recompose(URI vAppHref, RecomposeVAppParams params)
Task undeploy(String vAppUrn, UndeployVAppParams params)
VApp.
 
 Undeployment means deallocation of all resources for a vApp/VM like CPU and memory from a vDC
 resource pool. Undeploying a vApp automatically undeploys all of the virtual machines it
 contains.
 
 
 POST /vApp/{id}/action/undeploy
 Task undeploy(URI vAppHref, UndeployVAppParams params)
ControlAccessParams getAccessControl(String vAppUrn)
VApp.
 
 The vApp could be shared to everyone or could be shared to specific user, by editing the
 control access values.
 
 
 GET /vApp/{id}/controlAccess
 ControlAccessParams getAccessControl(URI vAppHref)
Task powerOff(String vAppUrn)
VApp.
 
 If the operation is used over a vApp then all VMs are powered off. This operation is allowed
 only when the vApp/VM is powered on.
 
 
 POST /vApp/{id}/power/action/powerOff
 Task powerOn(String vAppUrn)
VApp.
 
 If the operation is used over a vApp then all VMs are powered on. This operation is allowed
 only when the vApp/VM is powered off.
 
 
 POST /vApp/{id}/power/action/powerOn
 Task reboot(String vAppUrn)
VApp.
 
 The vApp/VM should be started in order to reboot it.
 
 
 POST /vApp/{id}/power/action/reboot
 Task reset(String vAppUrn)
VApp.
 
 If the operation is used over a vApp then all VMs are reset. This operation is allowed only
 when the vApp/VM is powered on.
 
 
 POST /vApp/{id}/power/action/reset
 Task shutdown(String vAppUrn)
VApp.
 
 If the operation is used over a vApp then all VMs are shutdown. This operation is allowed only
 when the vApp/VM is powered on.
 
 
 POST /vApp/{id}/power/action/shutdown
 Task suspend(String vAppUrn)
VApp.
 
 If the operation is used over a vApp then all VMs are suspended. This operation is allowed
 only when the vApp/VM is powered on.
 
 
 POST /vApp/{id}/power/action/suspend
 LeaseSettingsSection getLeaseSettingsSection(String vAppUrn)
VApp.
 
 
 GET /vApp/{id}/leaseSettingsSection
 LeaseSettingsSection getLeaseSettingsSection(URI vAppHref)
Task editLeaseSettingsSection(String vAppUrn, LeaseSettingsSection section)
VApp.
 
 
 PUT /vApp/{id}/leaseSettingsSection
 Task editLeaseSettingsSection(URI vAppHref, LeaseSettingsSection section)
NetworkConfigSection getNetworkConfigSection(String vAppUrn)
VApp.
 
 
 GET /vApp/{id}/networkConfigSection
 NetworkConfigSection getNetworkConfigSection(URI vAppHref)
Task editNetworkConfigSection(String vAppUrn, NetworkConfigSection section)
VApp.
 
 
 PUT /vApp/{id}/networkConfigSection
 Task editNetworkConfigSection(URI vAppHref, NetworkConfigSection section)
NetworkSection getNetworkSection(String vAppUrn)
VApp.
 
 
 GET /vApp/{id}/networkSection
 NetworkSection getNetworkSection(URI vAppHref)
Owner getOwner(String vAppUrn)
VApp.
 
 
 GET /vApp/{id}/owner
 void editOwner(String vAppUrn, Owner owner)
VApp owner.
 
 
 PUT /vApp/{id}/owner
 ProductSectionList getProductSections(String vAppUrn)
VApp product sections.
 
 
 GET /vApp/{id}/productSections
 ProductSectionList getProductSections(URI vAppHref)
Task editProductSections(String vAppUrn, ProductSectionList sectionList)
VApp.
 
 
 PUT /vApp/{id}/productSections
 Task editProductSections(URI vAppHref, ProductSectionList sectionList)
StartupSection getStartupSection(String vAppUrn)
VApp.
 
 
 GET /vApp/{id}/startupSection
 StartupSection getStartupSection(URI vAppHref)
Task editStartupSection(String vAppUrn, StartupSection section)
VApp.
 
 
 PUT /vApp/{id}/startupSection
 Task editStartupSection(URI vAppHref, StartupSection section)
MetadataApi.Writeable getMetadataApi(String vAppUrn)
MetadataApi.Writeable getMetadataApi(URI vAppHref)
Copyright © 2009-2013 jclouds. All Rights Reserved.