public interface VAppClient
VApp
objects.VAppAsyncClient
Modifier and Type | Method and Description |
---|---|
Task |
deleteVApp(URI vAppURI)
Deletes a
VApp . |
Task |
deploy(URI vAppURI,
DeployVAppParams params)
Deploys a
VApp . |
Task |
discardSuspendedState(URI vAppURI)
Discard suspended state of a
VApp . |
void |
enterMaintenanceMode(URI vAppURI)
Place the
VApp into maintenance mode. |
void |
exitMaintenanceMode(URI vAppURI)
Take the
VApp out of maintenance mode. |
ControlAccessParams |
getControlAccess(URI vAppURI)
Retrieves the control access information for a
VApp . |
LeaseSettingsSection |
getLeaseSettingsSection(URI vAppURI)
Retrieves the lease settings section of a
VApp . |
MetadataClient.Writeable |
getMetadataClient()
Synchronous access to
VApp Metadata features. |
NetworkConfigSection |
getNetworkConfigSection(URI vAppURI)
Retrieves the network config section of a
VApp . |
NetworkSection |
getNetworkSection(URI vAppURI)
Retrieves the network section of a
VApp . |
Owner |
getOwner(URI vAppURI)
Retrieves the owner of a
VApp . |
ProductSectionList |
getProductSections(URI vAppURI)
Retrieves
VApp product sections. |
StartupSection |
getStartupSection(URI vAppURI)
Retrieves the startup section of a
VApp . |
VApp |
getVApp(URI vAppURI)
Retrieves a
VApp . |
ControlAccessParams |
modifyControlAccess(URI vAppURI,
ControlAccessParams params)
Modifies the control access of a
VApp . |
Task |
modifyLeaseSettingsSection(URI vAppURI,
LeaseSettingsSection section)
Modifies the lease settings section of a
VApp . |
Task |
modifyNetworkConfigSection(URI vAppURI,
NetworkConfigSection section)
Modifies the network config section of a
VApp . |
void |
modifyOwner(URI vAppURI,
Owner owner)
Changes
VApp owner. |
Task |
modifyProductSections(URI vAppURI,
ProductSectionList sectionList)
Modifies the product section information of a
VApp . |
Task |
modifyStartupSection(URI vAppURI,
StartupSection section)
Modifies the startup section of a
VApp . |
Task |
modifyVApp(URI vAppURI,
VApp vApp)
Modifies the name/description of a
VApp . |
Task |
powerOff(URI vAppURI)
Powers off a
VApp . |
Task |
powerOn(URI vAppURI)
Powers on a
VApp . |
Task |
reboot(URI vAppURI)
Reboots a
VApp . |
Task |
recompose(URI vAppURI,
RecomposeVAppParams params)
Recompose a
VApp by removing its own VMs and/or adding new ones from other
vApps or vApp templates. |
Task |
reset(URI vAppURI)
Resets a
VApp . |
Task |
shutdown(URI vAppURI)
Shuts down a
VApp . |
Task |
suspend(URI vAppURI)
Suspends a
VApp . |
Task |
undeploy(URI vAppURI,
UndeployVAppParams params)
Undeploy a
VApp . |
VApp getVApp(URI vAppURI)
VApp
.
The VApp
could be in one of these statuses:
FAILED_CREATION(-1)
-
Transient entity state, e.g., model object is created 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 modifyVApp(URI vAppURI, VApp vApp)
VApp
.
PUT /vApp/{id}
ControlAccessParams modifyControlAccess(URI vAppURI, ControlAccessParams params)
VApp
.
POST /vApp/{id}/action/controlAccess
Task deploy(URI vAppURI, 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 discardSuspendedState(URI vAppURI)
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(URI vAppURI)
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 exitMaintenanceMode(URI vAppURI)
VApp
out of maintenance mode.
POST /vApp/{id}/action/exitMaintenanceMode
Task recompose(URI vAppURI, 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
VdcClient#composeVApp(URI, 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 undeploy(URI vAppURI, 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
ControlAccessParams getControlAccess(URI vAppURI)
VApp
.
The vApp could be shared to everyone or could be shared to specific user,
by modifying the control access values.
GET /vApp/{id}/controlAccess
Task powerOff(URI vAppURI)
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(URI vAppURI)
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(URI vAppURI)
VApp
.
The vApp/VM should be started in order to reboot it.
POST /vApp/{id}/power/action/reboot
Task reset(URI vAppURI)
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(URI vAppURI)
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(URI vAppURI)
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(URI vAppURI)
VApp
.
GET /vApp/{id}/leaseSettingsSection
Task modifyLeaseSettingsSection(URI vAppURI, LeaseSettingsSection section)
VApp
.
PUT /vApp/{id}/leaseSettingsSection
NetworkConfigSection getNetworkConfigSection(URI vAppURI)
VApp
.
GET /vApp/{id}/networkConfigSection
Task modifyNetworkConfigSection(URI vAppURI, NetworkConfigSection section)
VApp
.
PUT /vApp/{id}/networkConfigSection
NetworkSection getNetworkSection(URI vAppURI)
VApp
.
GET /vApp/{id}/networkSection
void modifyOwner(URI vAppURI, Owner owner)
VApp
owner.
PUT /vApp/{id}/owner
ProductSectionList getProductSections(URI vAppURI)
VApp
product sections.
GET /vApp/{id}/productSections
Task modifyProductSections(URI vAppURI, ProductSectionList sectionList)
VApp
.
PUT /vApp/{id}/productSections
StartupSection getStartupSection(URI vAppURI)
VApp
.
GET /vApp/{id}/startupSection
Task modifyStartupSection(URI vAppURI, StartupSection section)
VApp
.
PUT /vApp/{id}/startupSection
MetadataClient.Writeable getMetadataClient()
VApp
Metadata
features.Copyright © 2009-2012 jclouds. All Rights Reserved.