List policies
GET/v1/projects/:project_id/policies
Returns the policies of the project project_id names, or of the project a project-scoped credential is bound to. Without either, the unrestricted admin lists every policy, global and project ones. Pass user_id (unrestricted admin only) to list only the policies attached to that user.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
List of policies
The request was malformed or failed validation.
Unauthorized
Forbidden: the caller may not list policies in the project, or lists global policies without being the unrestricted admin
The project does not exist or the caller is not a member of it (RESOURCE_NOT_FOUND).
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded