EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Enable or Disable a VDC; Remove a VDC; Catalog Administration; Create 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...
VMware, Inc. 107
Chapter 6 Administrative Operations
<ComputeCapacity>
<Cpu>
<Units>MHz</Units>
<Allocated>4096</Allocated>
<Limit>4096</Limit>
</Cpu>
...
</ComputeCapacity>
...
</AdminVdc>
Enable or Disable a vDC
AnadministratorcanusetheenableordisableactionlinksinanAdminVdcbodytoenableordisableavDC.
TherequestandresponsearesimilartothoseshowninExample 67onpage 98.Theenablementstateofthe
vDCisshowninitsIsEnabledelement.
Remove a vDC
BeforeyoucanremoveavDC,youmustdisableit.AfterthevDChasbeendisabled,itsrepresentationincludes
arel="remove"link.AnadministratorcanmakeaDELETErequesttothatlinktoremoveavDCfroman
organization.
Example 6-18. Remove a vDC
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/vdc/6
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Deleted Virtual Datacenter (6)" ...>
...
</Task>
Catalog Administration
Anewlycreatedorganizationhasnocatalogsinit.Anorganizationadministratormustcreatethemand
specifytheirscopebeforeitemscanbecatalogued.Youdonothavetobeanadministratortoaddorremove
CatalogItemelements.See“CatalogingvAppTemplatesandMediaImages”onpage 54.
Create a Catalog
EveryorganizationhasanaddURLforcatalogs.AnadministratorcancreateacatalogbyPOSTingaCatalog
bodytothisURL.Example 619doesthis,usingtheURLinthisLinkshowninExample 63.
<Link rel="add" type="application/vnd.vmware.admin.catalog+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/catalogs"/>
Theresponseechoestherequest,andincludestheseadditionscreatedbytheserver.
AURL(thevalueofthehrefattributeoftheresponsebody)thatreferencesthenewcatalog.
Linksthataclientcanusetorequestoperationslikeaddanitemtothecatalog,editcatalogproperties,or
removethecatalog.
Alinktothealternate(user)viewofthiscatalog
AnemptyCatalogItemselement

Table of Contents

Related product manuals