vCloud API Programming Guide
54 VMware, Inc.
Change the Name or Description of a Media Image
Example 4â21î ±changesî ±theî ±descriptionî ±ofî ±aî ±mediaî ±imageî ±thatî ±wasî ±createdî ±byî ±theî ±copyî ±operationî ±inî ±
Example 4â17.
Example 4-21. Change the Description of a Media Image
Request:
PUT http://vcloud.example.com/api/v1.0/media/277
Content-Type: application/vnd.vmware.vcloud.media+xml
...
<Media name="database.iso" size="242131" imageType="iso" xmlns="http://www.vmware.com/vcloud/v1">
<Description>New description</Description>
</Media>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>
Delete a vAppTemplate, vApp, or Media Image
Youî ±canî ±useî ±anî ±HTTPî ±DELETEî ±requestî ±toî ±deleteî ±aî ±vAppTemplate,î ±vApp,î ±orî ±mediaî ±image.î ±Allî ±ofî ±theseî ±
operationsî ±conformî ±toî ±theî ±prototypeî ±(DELETEî ±href,î ±whereî ±hrefî ±isî ±theî ±URLî ±ofî ±theî ±objectî ±youî ±wantî ±toî ±delete)î ±
shownî ±inî ±Example 2â10î ±onî ±page 30.î ±Youî ±cannotî ±deleteî ±anî ±objectî ±ifî ±it
î ±isî ±inî ±use.î ±Anyî ±objectî ±thatî ±isî ±beingî ±copiedî ±
orî ±movedî ±isî ±inî ±use.î ±Otherî ±criteriaî ±thatî ±determineî ±whetherî ±anî ±objectî ±isî ±inî ±useî ±dependî ±onî ±theî ±objectî ±type.
ïź Aî ±vAppî ±templateî ±isî ±inî ±useî ±ifî ±itî ±isî ±beingî ±instantiated.î ±Afterî ±instantiationî ±isî ±complete,î ±theî ±templateî ±isî ±noî ±
longerî ±inî ±use.
ïź Aî ±vAppî ±isî ±inî ±useî ±ifî ±itî ±isî ±deployed.
ïź Aî ±mediaî ±imageî ±isî ±inî ±useî ±ifî ±itî ±isî ±insertedî ±inî ±aî ±Vm.
Cataloging vApp Templates and Media Images
Althoughî ±referencesî ±toî ±vAppî ±templatesî ±andî ±mediaî ±imagesî ±canî ±beî ±retrievedî ±directlyî ±fromî ±theî ±vDCî ±toî ±whichî ±
theyî ±wereî ±uploaded,î ±itî ±isî ±aî ±commonî ±practiceî ±toî ±placeî ±referencesî ±toî ±suchî ±assetsî ±inî ±oneî ±ofî ±anî ±organizationâsî ±
catalogs.î ±Doingî ±soî ±makesî ±theî ±assetî ±easierî ±toî ±discover,î ±becauseî ±aî ±catalogî ±canî ±includeî ±assets
î ±fromî ±allî ±vDCsî ±inî ±anî ±
organization.î ±Itî ±alsoî ±providesî ±moreî ±flexibleî ±administrativeî ±controlî ±overî ±theseî ±assets,î ±becauseî ±accessî ±toî ±catalogsî ±
andî ±theî ±itemsî ±inî ±themî ±canî ±beî ±restrictedî ±toî ±specificî ±usersî ±andî ±groups.î ±Assetsî ±suchî ±asî ±vAppî ±templatesî ±areî ±notî ±
enabledî ±forî ±mostî ±usesî ±untilî ±youî ±includeî ±themî ±inî ±aî ±
catalog.î ±Forî ±example,î ±aî ±vAppî ±templateî ±thatî ±isî ±notî ±includedî ±
inî ±aî ±catalogî ±canî ±beî ±modifiedî ±butî ±cannotî ±beî ±instantiated.î ±Aî ±mediaî ±imageî ±thatî ±isî ±notî ±includedî ±inî ±aî ±catalogî ±cannotî ±
beî ±usedî ±byî ±anyoneî ±butî ±itsî ±owner.
Add an Item to a Catalog
Aî ±catalogî ±canî ±containî ±referencesî ±toî ±vAppî ±templatesî ±andî ±mediaî ±imagesî ±thatî ±haveî ±beenî ±uploadedî ±toî ±anyî ±vDCî ±
inî ±anî ±organization.î ±Aî ±vAppî ±templateî ±orî ±mediaî ±imageî ±canî ±beî ±listedî ±inî ±atî ±mostî ±oneî ±catalog.