5.5

Table Of Contents
2 Modify the Owner element to specify a different User.
The user must be a member of the organization that contains the object.
NOTE You cannot modify the Owner of a Media or VAppTemplate object.
3 To change the owner, make a PUT request to the Owner element's rel="edit" URL and supply an Owner
element in the request body.
The User element in the Owner element references the new owner. See “Example: Change the Owner of
a vApp,” on page 84.
Example: Change the Owner of a vApp
Request:
PUT https://vcloud.example.com/api/vApp/vapp-7/owner
Content-type: application/vnd.vmware.vcloud.owner+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<Owner
xmlns="http://www.vmware.com/vcloud/v1.5">
<User
type="application/vnd.vmware.admin.user+xml"
href="https://vcloud.example.com/api/admin/user/120" />
</Owner>
Response:
204 No Content
Controlling Access to vApps and Catalogs
Upon creation, catalogs and vApps grant full access to their owners and no access to other users. The
vCloud API access control mechanism enables object owners to retrieve or update these access controls as
needed.
To retrieve or update the access controls on a vApp or catalog, use controlAccess links. The controlAccess
links for catalogs are included when you retrieve the containing AdminOrg. The controlAccess links for a
vApp are included in the VApp element itself.
vCloud Director defines three levels of access:
ReadOnly
The ReadOnly access level grants rights to read or use the object.
Change
The Change access level includes all rights granted by ReadOnly access and
grants additional rights to modify the object and its properties.
FullControl
The FullControl access level includes all rights granted by Change access and
grants additional rights to change the owner of the object, share it, or delete
it.
See “Access Rights to vCloud Director Objects,” on page 87 for detailed information about the rights
granted by each access level.
vCloud API Programming Guide
84 VMware, Inc.