vCloud API Programming Guide
112
VMware, Inc.
FullName
and
EmailAddress
are
retrieved
from
LDAP.
Values
for
IsEnabled
,
Description
,
and
other
elements
can
be
specified
in
the
request
body
or
add
later.
See
“Modify
User
Metadata”
on
page 112.
Get an Administrative View of a User
Each
user
in
an
organization
is
represented
by
a
UserReference
element.
A
GET
request
to
the
URL
in
the
href
attribute
of
a
UserReference
returns
a
User
element
in
the
response,
as
shown
in
Example 6
‐
26
.
Example 6-26.
Get an Administrative View of a User
Request:
GET http://vcloud.example.com/api/v1.0/admin/user/85
Response:
200 OK
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 Full Name</FullName>
<EmailAddress>[email protected]</EmailAddress>
<Telephone/>
<IsEnabled>true</IsEnabled>
<IM/>
<NameInSource>[email protected]</NameInSource>
<IsAlertEnabled>false</IsAlertEnabled>
<IsDefaultCached>false</IsDefaultCached>
<StoredVmQuota>1000</StoredVmQuota>
<DeployedVmQuota>100</DeployedVmQuota>
<Role type="application/vnd.vmware.admin.role+xml" name="User"
href="http://vcloud.example.com/api/v1.0/admin/role/1"/>
<GroupReferences/>
</User>
Modify User Metadata
An
administrator
can
use
the
edit
link
in
a
User
element
to
modify
user
metadata.
The
request
in
Example 6
‐
27
disables
the
User
object
by
setting
value
of
its
IsEnabled
element
to
false.
As
is
the
case
with
all
requests,
the
request
body
must
include
all
required
elements,
whether
or
not
you
are
changing
them.
The
response
is
the
full
User
element,
including
the
changed
metadata,
and
includes
the
links
and
other
metadata
typically
supplied
by
the
server.
Example 6-27.
Modify User Metadata
Request:
PUT http://vcloud.example.com/api/v1.0/admin/user/85
Content-Type: application/vnd.vmware.admin.user+xml
...
<User name="ExampleUser" xmlns="http://www.vmware.com/vcloud/v1">
<IsEnabled>false</IsEnabled>
<Role type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
</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...