VMware, Inc.
111
Chapter 6 Administrative Operations
Response:
201 Created
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="ExampleUser" 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"/>
<FullName>Example User Full Name</FullName>
<EmailAddress>[email protected]</EmailAddress>
<IsEnabled>true</IsEnabled>
<IsAlertEnabled>false</IsAlertEnabled>
<IsDefaultCached>false</IsDefaultCached>
<StoredVmQuota>0</StoredVmQuota>
<DeployedVmQuota>0</DeployedVmQuota>
<Role type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
<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="[email protected]" type="application/vnd.vmware.admin.user+xml"
xmlns="http://www.vmware.com/vcloud/v1">
<IsExternal>true</IsExternal>
<Role type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
</User>
Response:
201 Created
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="[email protected]" 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"/>
<FullName>Example User</FullName>
<EmailAddress>[email protected]</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"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
<GroupReferences/>
</User>
Summary of Contents for VCLOUD API 1.0 - TECHNICAL NOTE
Page 10: ...vCloud API Programming Guide 10 VMware Inc...
Page 20: ...vCloud API Programming Guide 20 VMware Inc...
Page 32: ...vCloud API Programming Guide 32 VMware Inc...
Page 90: ...vCloud API Programming Guide 90 VMware Inc...
Page 150: ...vCloud API Programming Guide 150 VMware Inc...
Page 170: ...vCloud API Programming Guide 170 VMware Inc...