Response:
201 Created
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="ExampleUser" type="application/vnd.vmware.admin.user+xml"
<Link rel="edit" type="application/vnd.vmware.admin.user+xml"
<FullName>Example User Full Name</FullName>
<EmailAddress>user@example.com</EmailAddress>
<IsEnabled>true</IsEnabled>
<IsAlertEnabled>false</IsAlertEnabled>
<IsDefaultCached>false</IsDefaultCached>
<StoredVmQuota>0</StoredVmQuota>
<DeployedVmQuota>0</DeployedVmQuota>
<Role type="application/vnd.vmware.admin.role+xml"
<GroupReferences/>
</User>
To import a user from an LDAP directory service, POST a User body whose name attribute specifies the user's
name in the LDAP directory, and includes an IsExternal element with a value of true. The server matches
the value of the name attribute in the request body with the value of the LDAP attribute that the organization
has specified for the user name (the value of the UserName element in UserAttributes), and imports that user
from LDAP. See "UserAttributes" on page 184.
Example
6‐25 illustrates this sort of request.
Example 6-25. Import a User from LDAP
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/users
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="user@example.com" type="application/vnd.vmware.admin.user+xml"
<IsExternal>true</IsExternal>
<Role type="application/vnd.vmware.admin.role+xml"
</User>
Response:
201 Created
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="user@example.com" type="application/vnd.vmware.admin.user+xml"
<Link rel="edit" type="application/vnd.vmware.admin.user+xml"
<FullName>Example User</FullName>
<EmailAddress>user@example.com</EmailAddress>
<IsEnabled>false</IsEnabled>
<IM/>
<NameInSource>\F4\D3\42\8E\6A\BC\D3</NameInSource>
<IsAlertEnabled>false</IsAlertEnabled>
<IsDefaultCached>false</IsDefaultCached>
<StoredVmQuota>0</StoredVmQuota>
<DeployedVmQuota>0</DeployedVmQuota>
<Role type="application/vnd.vmware.admin.role+xml"
<GroupReferences/>
</User>
VMware, Inc.
href="http://vcloud.example.com/api/v1.0/admin/user/85" ...>
href="http://vcloud.example.com/api/v1.0/admin/user/85"/>
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
xmlns="http://www.vmware.com/vcloud/v1">
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
href="http://vcloud.example.com/api/v1.0/admin/user/85" ...>
href="http://vcloud.example.com/api/v1.0/admin/user/85"/>
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
Chapter 6 Administrative Operations
111
Need help?
Do you have a question about the VCLOUD API 1.0 - API and is the answer not in the manual?
Questions and answers