5.5

Table Of Contents
n
any resource defined by the service that created the ACL rule
Rights for specific entity types are specified in the following container elements:
ServiceResourceAccess
This specification is optional.
OrganizationAccess
Access for the organizations. This specification is required.
PrincipalAccess
Access control for users, or for any role that includes a specified right. This
specification is required.
If the Access element in any of these containers has the value Entity, the container must also include an
Entity element that provides a reference to a resource entity, organization, user, or right.
Table 112. ACL Rules
Container Element
Access
Comments
ServiceResourceAccess
Shared The action is authorized for all resources in this resource class
Entity
The action is authorized for the service resource referenced in the Entity
element in this container.
OrganizationAccess
Shared The action is authorized for all members of the organization that owns the
resource.
Published The action is authorized for all members of any organization in the cloud.
Entity The action is authorized for members of the organization referenced in the
Entity element in this container.
PrincipalAccess
Shared The action is authorized for all users
Entity
The action is authorized for the User referenced in the Entity element in
this container, or for any role that includes the Right referenced in the
Entity element in this container.
A ResourceClassAction can include an arbitrary number of AclRule elements. The action is permitted if the
user or resource attempting the action matches any rule.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator.
Procedure
1 Retrieve the XML representation of the resource class action.
This request retrieves the XML representation of the resource class action created in “Example: Define
an Action for a Resource Class,” on page 345:
GET https://vcloud.example.com/api/admin/extension/service/resourceclassaction/268
2 Examine the response to find the Link for specifying ACL rules for the resource class action.
This Link has the following form:
<vcloud:Link
rel="add"
type="application/vnd.vmware.vcloud.query.aclRule+xml"
href="https://vcloud.example.com/api/admin/extension/service/resourceclassaction/268/aclrules
" />
3 Construct an AclRule element.
See the request portion of “Example: Define an ACL Rule for a Resource Class Action,” on page 348 for
information about the contents of this element.
Chapter 11 vCloud Director Extension Services
VMware, Inc. 347