EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Change the Name or Description of a Media Image; Delete a Vapptemplate, Vapp, or Media Image; Cataloging Vapp Templates and Media Images; Add an Item to a Catalog

VMware VCLOUD API 1.0 - API
212 pages
Print Icon
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
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.

Table of Contents