A policy specifies the attestors that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy.
Gets the policy for this project. Returns a default policy if the project does not have one.
HTTP request
GET https://binaryauthorization.googleapis.com/v1/{name=projects/*/policy}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-12 UTC."],[[["This page details how to retrieve a project's policy, which dictates the attestors required for container image deployment."],["The request to get a project's policy is a GET request to a specific URL, utilizing gRPC Transcoding syntax."],["The only required parameter is `name`, which specifies the project whose policy you want to retrieve, and requires `binaryauthorization.policy.get` IAM permission."],["The request body must be empty when getting a policy, and a successful request returns a policy instance."],["Retrieving a policy requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform`."]]],[]]