EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
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,ifthesystemadministratorsnameandpasswordhad
beendefinedasadministrator
andPa55w0rd,thesystemadministratorlogincredentialswouldbetheMIMEBase64encodingofthestring
administrator@System:Pa55w0rd.
TheSystemorganizationiscreatedautomaticallywhenvCloudServiceDirectorisinstalled,andalwayshasa
URLoftheform
APIURL/org/1.ItisnotlistedinanOrgList,butcanberetrievedwithanexplicitGET
request,asshowninExample 61.
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
AnadministratorcanaccessacloudwidenamespaceofadministrativeobjectsatAPIURL/admin,where
APIURLisaURLoftheformhttp://vcloud.example.com/api/v1.0.Theprimaryadministrativeobjectsina
vCloudincludeorganizations,providervDCs,rights,roles,andexternalnetworks.Eachobjecttypeis
representedinaVCloudelementby
zeroormorereferences,asillustratedinExample 62.Asystem
administratorcanobtainmoreinformationaboutanyoftheseobjectsbymakingaGETrequesttotheobject
reference(thevalueofitshrefattribute).
ThevCloudresponsedocumentincludeslinksthatenableasystemadministratortoaddrolesand
organizations.Subordinateobjectssuchasusers,catalogs,andvDCs,arecontainedbyindividual
organizationsandarenotlistedatthislevel.Otherobjects,suchasrights,canbelistedbutcannotbemodified
usingthevCloudAPI.

Table of Contents

Related product manuals