EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Role Administration

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...
vCloud API Programming Guide
114 VMware, Inc.
Response:
201 Created
Content-Type: application/vnd.vmware.admin.user+xml
...
<Group name="Engineering" type="application/vnd.vmware.admin.group+xml"
href="http://vcloud.example.com/api/v1.0/admin/group/44" ...>
<Link rel="edit" type="application/vnd.vmware.admin.group+xml"
href="http://vcloud.example.com/api/v1.0/admin/group/44"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/group/44"/>
<Description>Research and development</Description>
...
<UsersList/>
<Role type="application/vnd.vmware.admin.role+xml" name="vApp Wrangler"
href="http://vcloud.example.com/api/v1.0/admin/role/102"/>
</Group>
View Group Metadata
EachgroupinanorganizationcanbereferencedbytheURLcontainedinoneofitsGroupReference
elements.TheseelementsarecontainedbytheGroupselementofanAdminOrgbody.Agroup’sURLalso
appearsintheresponsetotherequestthatimportsthegroup.AnadministratorcanGETagroup
URLtoview
theGroupbody.
Modify Group Metadata
AnadministratorcanmodifyaGroupbodytochangeitsDescriptionorRolebyPUTtingamodifiedGroup
bodytotheeditURLforthegroup.SeeExample 6‐27foranexampleoftheworkflowforthistypeofrequest.
Remove a Group
AnadministratorcanusetheremovelinkinaGroupbodytoremoveagroupfromavCloud.Example 6‐30
removesthegroupimportedinExample 6‐29.
Example 6-30. Remove a Group
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/group/44
Response:
204 No Content
Role Administration
Aroleassociatesthenameofauserorgroupwithasetofrights.RolenamesmustbeuniqueinavCloud
instance.
Create a Role
AsystemadministratorcancreatearolebyaggregatingasetofrightsinaRolebody,andthenPOSTingthe
bodytotheaddURLforroles.Example 6‐31createsanewrolenamedvAppWranglerandaddsittothe
vCloudshowninExample 6‐2. Theresponse,likeother
responsestorequeststhatcreateanobject,includes
thePOSTedcontent,alinktothenewobject,andlinksoftypeeditandremovethatanadministratorcanuse
tomanagethisrole.

Table of Contents