EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
64 VMware, Inc.
TheresponseisasparselypopulatedvAppbodythatcontainsaTaskelementThestatusofthevAppisinitially
0.WheninstantiationiscompleteandthevAppispowe redon,theTasknolongerappearsinthevAppbody,
andthevAppstatuschangesto4,indicatingthatall
ofitschildrenarepoweredon.Youcancheckthestatus
ofthetaskbyissuingaGETrequesttothetaskURLoryoucancheckthestatusofthevAppbyissuingaGET
requesttothevAppURL.TheseURLsarereturnedinthevalueofthe
object’shrefattribute.
Retrieve or Modify the CustomizationSection of a vApp Template
AvApptemplatecanincludeaCustomizationSectionelementthatspecifieswhetherornotthevirtual
machinesinthevAppshouldbecustomizedwhenthevAppisinstantiated.Example 52retrievesthissection
fromavApptemplate.
Example 5-2. Retrieve vApp Template CustomizationSection
Request:
GET http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-3/customizationSection
Response:
200 OK
Content-type: application/vnd.vmware.vcloud.customizationSection+xml
...
<CustomizationSection xmlns="http://www.vmware.com/vcloud/v1"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" ovf:required="false"
vcloud:href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-3/
customizationSection/"
vcloud:type="application/vnd.vmware.vcloud.customizationSection+xml" ...>
<ovf:Info>VApp template customization section</ovf:Info>
<CustomizeOnInstantiate>true</CustomizeOnInstantiate>
<Link rel="edit" type="application/vnd.vmware.vcloud.customizationSection+xml"
href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-3/
customizationSection/"/>
</CustomizationSection>
TochangethevalueofCustomizeOnInstantiate,PUTaCustomizationSectionbodythathasthechanged
valuetothesection’srel="edit"URL,asshowninExample 53.
Example 5-3. Modify vApp Template CustomizationSection
Request:
PUT http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-3/customizationSection
Content-type: application/vnd.vmware.vcloud.customizationSection+xml
...
<CustomizationSection xmlns="http://www.vmware.com/vcloud/v1"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" ovf:required="false"
vcloud:href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-3/
customizationSection/"
vcloud:type="application/vnd.vmware.vcloud.customizationSection+xml">
<ovf:Info>VApp template customization section</ovf:Info>
<CustomizeOnInstantiate>false</CustomizeOnInstantiate>
</CustomizationSection>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>

Table of Contents

Related product manuals