Skip to main content

Create a policy

POST 

/v1/projects/:project_id/policies

Creates a project policy when project_id is given or the credential is bound to a project: its Allow statements may name only that project's resources (srn:<project_id>:<type>:<id>), else 400; an Allow without resource grants every resource of that project. Without a project, creates a global policy, which only the unrestricted admin may.

Request​

Responses​

Policy created successfully