Method: projects.getPolicy

Gets the policy for this project. Returns a default policy if the project does not have one.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



Required. The resource name of the policy to retrieve, in the format projects/*/policy.

Authorization requires the following Google IAM permission on the specified resource name:

  • binaryauthorization.policy.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Policy.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

Send feedback about...

Binary Authorization