VMware, Inc.
57
Chapter 4 Provisioning
Example 4-25.
Viewing Access Control Settings for a Catalog
Request:
GET http://vcloud.example.com/api/v1.0/catalog/32/controlAccess/
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.controxml
...
<ControlAccessParams ...>
<IsSharedToEveryone>false</IsSharedToEveryone>
</ControlAccessParams>
Because
the
value
of
IsSharedToEveryone
is
false
,
the
administrator
must
grant
access
to
individual
users
or
groups,
specified
by
reference.
In
Example 4
‐
26
,
the
administrator
POSTs
a
modified
version
of
the
ControlAccessParams
element
received
in
Example 4
‐
25
to
the
catalog’s
access
control
URL.
The
modifications
populate
the
AccessSettings
container
with
two
AccessSetting
elements,
each
of
which
assigns
an
access
level
to
a
specific
user.
Example 4-26.
Granting Catalog Access to Users
Request:
POST http://vcloud.example.com/api/v1.0/catalog/32/action/controlAccess
Content-Type: application/vnd.vmware.vcloud.controxml
<ControlAccessParams xmlns="http://www.vmware.com/vcloud/v1">
<IsSharedToEveryone>false</IsSharedToEveryone>
<AccessSettings>
<AccessSetting>
<Subject type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/1"/>
<AccessLevel>FullControl</AccessLevel>
</AccessSetting>
<AccessSetting>
<Subject type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/6"/>
<AccessLevel>ReadOnly</AccessLevel>
</AccessSetting>
</AccessSettings>
</ControlAccessParams>
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.controxml
...
<ControlAccessParams ...>
<IsSharedToEveryone>false</IsSharedToEveryone>
<AccessSettings>
<AccessSetting>
<Subject type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/1"/>
<AccessLevel>FullControl</AccessLevel>
</AccessSetting>
<AccessSetting>
<Subject type="application/vnd.vmware.admin.user+xml"
href="http://vcloud.example.com/api/v1.0/admin/user/6"/>
<AccessLevel>ReadOnly</AccessLevel>
</AccessSetting>
</AccessSettings>
</ControlAccessParams>
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...