Method: projects.locations.collections.fetchCollectionAcl

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

string

Required. The name of the collection. projects/{projectNumber}/locations/{location}/collections/{documentId}. It takes the form projects/{project}/locations/{location}/collections/{collection}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestMetadata": {
    object (RequestMetadata)
  }
}
Fields
requestMetadata

object (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 (Policy)
  },
  "metadata": {
    object (ResponseMetadata)
  }
}
Fields
policy

object (Policy)

The IAM policy.

metadata

object (ResponseMetadata)

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.