Skip to main content

acls

Creates, updates, deletes, gets or lists an acls resource.

Overview

Nameacls
TypeResource
Idgoogle.contentwarehouse.acls

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
metadataobjectAdditional information for the API invocation, such as the request tracking id. (id: GoogleCloudContentwarehouseV1ResponseMetadata)
policyobjectThe IAM policy. (id: GoogleIamV1Policy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_aclselectprojectsId, locationsId, documentsIdGets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
documentsIdstring
locationsIdstring
projectsIdstring

SELECT examples

Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.

SELECT
metadata,
policy
FROM google.contentwarehouse.acls
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND documentsId = '{{ documentsId }}' -- required;