EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Modify a Role; Remove a Role; View a Right

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...
vCloud API Programming Guide
116 VMware, Inc.
<Link rel="edit" type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/102"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/role/102"/>
<Description>Create and manage vApps</Description>
<RightReferences>
<RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: View"
href="http://vcloud.example.com/api/v1.0/admin/right/16"/>
<RightReference type="application/vnd.vmware.admin.right+xml"
name="vApp: Power Operations"
href="http://vcloud.example.com/api/v1.0/admin/right/9"/>
<RightReference type="application/vnd.vmware.admin.right+xml"
name="vApp: Download"
href="http://vcloud.example.com/api/v1.0/admin/right/11"/>
<RightReference ... />
...
</RightReferences>
</Role>
Modify a Role
AsystemadministratorcanmodifyaroletoaddorremoverightsorchangethenameoftherolebyPUTting
amodifiedRolebodytotheeditURLoftheRole.SeeExample 627foranexampleoftheworkflowforthis
typeofrequest.
Remove a Role
AsystemadministratorcanusetheremovelinkinaRoleelementtoremovearolefromavCloud.
Example 633removestherolecreatedinExample 631.
Example 6-33. Remove a Role
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/role/102
Response:
204 No Content
View a Right
Asystemadministratorcanview,butnotmodify,thecontentsofaRightelement,asshowninExample 634,
whichprovidesaviewofoneoftheRightReferencesshowninExample 62.
Example 6-34. View a Right
Request:
GET http://vcloud.example.com/api/v1.0/admin/right/7
Response:
200 OK
Content-Type: application/vnd.vmware.admin.right+xml
...
<Right xmlns="http://www.vmware.com/vcloud/v1" name="Catalog: Sharing"
type="application/vnd.vmware.admin.right+xml"
href="http://vcloud.example.com/api/v1.0/admin/right/7" ... >
<Description>Share a Catalog</Description>
<Category>catalog</Category>
</Right>

Table of Contents

Related product manuals