Gets the access control policy for the collection. Returns NOT_FOUND error if the collection does not exist. Returns an empty policy if the collection exists but does not have a policy set.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{name}:fetchCollectionAcl
Path parameters
Parameters | |
---|---|
name |
Required. The name of the collection. projects/{projectNumber}/locations/{location}/collections/{documentId}. It takes the form |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestMetadata": {
object ( |
Fields | |
---|---|
requestMetadata |
The meta information collected about the end user, used to enforce access control for the service. |
Response body
If successful, the response body contains data with the following structure:
Response message for CollectionService.FetchAcl.
JSON representation |
---|
{ "policy": { object ( |
Fields | |
---|---|
policy |
The IAM policy. |
metadata |
Additional information for the API invocation. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
contentwarehouse.collections.getIamPolicy
For more information, see the IAM documentation.