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 6‐7onpage 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 6‐19doesthis,usingtheURLinthisLinkshowninExample 6‐3.
<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