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/v1alpha2/{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 webpage 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, structured with gRPC Transcoding syntax."],["The request requires a path parameter, `name`, which represents the policy's resource name in the format `projects/*/policy`."],["The request body must be empty, and a successful response returns a `Policy` instance."],["Authorization requires the `binaryauthorization.policy.get` IAM permission on the specified resource name and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]