VMware, Inc. 93
Chapter 6 Administrative Operations
Administrator Credentials and Privileges
ThevCloudAPIdefinestwolevelsofadministrativeprivilege:
Organizationadministrators,whohaveadministrativeprivilegesinaspecificorganization.
Systemadministrators,whohavesuperuserprivilegesthroughoutthesystem.Systemadministratorscan
create,read,update,anddeleteallobjectsinavCloud,andhaveorganizationadministratorrightsinall
organizationsinavCloud,andcanoperatedirectlyonvSphereresourcestocreateandmodifyprovider
vDCs.
Someadministrativeoperations(andall
vSphereplatformoperations)arerestrictedtothesystem
administrator.Beforeattemptinganyoftheseoperations,logintotheSystemorganizationwiththeusername
andpasswordofthesystemadministratoraccountthatwascreatedwhenvCloudServiceDirectorwas
installed.Forexample,ifthesystemadministrator’snameandpasswordhad
beendefinedasadministrator
andPa55w0rd,thesystemadministratorlogincredentialswouldbetheMIMEBase64encodingofthestring
administrator@System:Pa55w0rd.
TheSystemorganizationiscreatedautomaticallywhenvCloudServiceDirectorisinstalled,andalwayshasa
URLoftheform
API‐URL/org/1.ItisnotlistedinanOrgList,butcanberetrievedwithanexplicitGET
request,asshowninExample 6‐1.
Example 6-1. The System Organization
Request:
GET http://vcloud.example.com/api/v1.0/org/1
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.org+xml
...
<Org xmlns="http://www.vmware.com/vcloud/v1" name="System" ...>
...
</Org>
Administrative Objects and URLs
ThevCloudAPIdefinesseveralobjectsthatareusedonlyinadministrativeoperations.Theseobjectsarelisted
inChapter 11,“AdministrativeAPIReference,”onpage 179.Some,likeUser,Group,andRoleareuniqueto
administrativeoperations.OthersextendcommonvCloudAPIobjectstoaddelementsandattributesthat
enableadministrativecontrol.
AnAdminOrg,forexample,supportstheadministrativeviewofanOrg,andan
AdminVdcdoesthesamethingforaVdc.
Get an Administrative View of a Cloud
Anadministratorcanaccessacloud‐widenamespaceofadministrativeobjectsatAPI‐URL/admin,where
API‐URLisaURLoftheformhttp://vcloud.example.com/api/v1.0.Theprimaryadministrativeobjectsina
vCloudincludeorganizations,providervDCs,rights,roles,andexternalnetworks.Eachobjecttypeis
representedinaVCloudelementby
zeroormorereferences,asillustratedinExample 6‐2.Asystem
administratorcanobtainmoreinformationaboutanyoftheseobjectsbymakingaGETrequesttotheobject
reference(thevalueofitshrefattribute).
ThevCloudresponsedocumentincludeslinksthatenableasystemadministratortoaddrolesand
organizations.Subordinateobjectssuchasusers,catalogs,andvDCs,arecontainedbyindividual
organizationsandarenotlistedatthislevel.Otherobjects,suchasrights,canbelistedbutcannotbemodified
usingthevCloudAPI.