EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Administrator Credentials and Privileges; Administrative Objects and Urls; Get an Administrative View of a Cloud

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. 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.

Table of Contents