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. 113
Chapter 6 Administrative Operations
Response:
200 OK
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="user@example.com" type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/85" ...>
<Link rel="edit" type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/85"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/user/85"/>
<FullName>Example User Full Name</FullName>
<EmailAddress>user@example.com</EmailAddress>
<Role type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
<IsEnabled>false</IsEnabled>
</User>
Remove a User
Beforeyoucanremoveauser,youmustdisabletheUserobjectbychangingthevalueofitsIsEnabled
elementtofalse,asshowninExample 627.Afterithasbeendisabled,theUserelementcontainsalink
whererel="remove".Anadministratorcanusethislinkremovetheuser
fromtheorganization,asshownin
Example 628.
Example 6-28. Remove a User
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/user/85
Response:
204 No Content
Group Administration
GroupsmustbeimportedfromLDAP.YoucannotusethevCloudAPItoaddorremovegroupmembers,or
changethenameofthegroup.Instead,youmustmakethechangesinthesourceLDAPdatabaseandthen
importthegroupagain.
Import a Group
ToimportagroupfromanLDAPdirectoryservice,POSTanemptyGroupbodytotheorganization’saddURL
forgroups.Thevalueofthenameattributeintherequestbodymustmatchthevalueofthegroup’sname
attributeinLDAP.
Example 6-29. Import a Group from LDAP
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/groups
Content-Type: application/vnd.vmware.admin.group+xml
<Group name="Engineering" xmlns="http://www.vmware.com/vcloud/v1">
<Role type="application/vnd.vmware.admin.role+xml" name="vApp Wrangler"
href="http://vcloud.example.com/api/v1.0/admin/role/102"/>
</Group>

Table of Contents

Related product manuals