Skip to main content
Google Cloud Documentation
Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Industry solutions
  • Migration
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • SDK, languages, frameworks, and tools
/
Console
  • English
  • 中文 – 简体
  • Binary Authorization
Start free
Overview Guides Reference Support Resources
Google Cloud Documentation
  • Technology areas
    • More
    • Overview
    • Guides
    • Reference
    • Support
    • Resources
  • Cross-product tools
    • More
  • Console
  • Binary Authorization
  • All APIs and reference
  • gcloud reference
  • REST reference
    • Overview
    • v1
      • REST Resources
      • projects
        • Overview
        • getPolicy
        • updatePolicy
      • projects.attestors
        • Overview
        • create
        • delete
        • get
        • getIamPolicy
        • list
        • setIamPolicy
        • testIamPermissions
        • update
        • validateAttestationOccurrence
      • projects.platforms.gke.policies
        • Overview
        • evaluate
      • projects.platforms.policies
        • Overview
        • create
        • delete
        • get
        • list
        • replacePlatformPolicy
      • projects.policy
        • Overview
        • getIamPolicy
        • setIamPolicy
        • testIamPermissions
      • systempolicy
        • Overview
        • getPolicy
      • Types
      • PkixPublicKey
    • v1alpha2
      • REST Resources
      • projects
        • Overview
        • getContinuousValidationConfig
        • getPolicy
        • updateContinuousValidationConfig
        • updatePolicy
      • projects.attestors
        • Overview
        • create
        • delete
        • get
        • getIamPolicy
        • list
        • setIamPolicy
        • testIamPermissions
        • update
        • validateAttestationOccurrence
      • projects.attestors.attestations
        • Overview
        • testIamPermissions
      • projects.continuousValidationConfig
        • Overview
        • getIamPolicy
        • setIamPolicy
        • testIamPermissions
      • projects.policy
        • Overview
        • getIamPolicy
        • setIamPolicy
        • testIamPermissions
      • systempolicy
        • Overview
        • getPolicy
      • Types
      • ContinuousValidationConfig
    • v1beta1
      • REST Resources
      • projects
        • Overview
        • getPolicy
        • updatePolicy
      • projects.attestors
        • Overview
        • create
        • delete
        • get
        • getIamPolicy
        • list
        • setIamPolicy
        • testIamPermissions
        • update
        • validateAttestationOccurrence
      • projects.policy
        • Overview
        • getIamPolicy
        • setIamPolicy
        • testIamPermissions
      • systempolicy
        • Overview
        • getPolicy
    • Shared types
      • Types
      • AdmissionRule
      • AdmissionWhitelistPattern
      • Attestor
      • Binding
      • CreateAttestorRequest
      • DeleteAttestorRequest
      • EnforcementMode
      • EvaluationMode
      • GetAttestorRequest
      • GetIamPolicyRequest
      • GetPolicyRequest
      • GetSystemPolicyRequest
      • GlobalPolicyEvaluationMode
      • ListAttestorsRequest
      • ListAttestorsResponse
      • Policy
      • Result
      • SetIamPolicyRequest
      • SignatureAlgorithm
      • TestIamPermissionsRequest
      • TestIamPermissionsResponse
      • UpdateAttestorRequest
      • UpdatePolicyRequest
      • ValidateAttestationOccurrenceRequest
      • ValidateAttestationOccurrenceResponse
  • RPC reference
    • Overview
    • google.cloud.binaryauthorization.v1
    • google.cloud.binaryauthorization.v1alpha2
    • google.cloud.binaryauthorization.v1beta1
    • google.iam.v1
    • google.type
    • grafeas.v1
  • Policy YAML reference
  • Example policies
  • Separation of duties and IAM roles
  • Permissions and roles
  • Custom roles
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Industry solutions
  • Migration
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • SDK, languages, frameworks, and tools
  • Home
  • Documentation
  • Security
  • Binary Authorization
  • Reference

REST Resource: projects Stay organized with collections Save and categorize content based on your preferences.

  • Resource
  • Methods

Resource

There is no persistent data associated with this resource.

Methods

getPolicy

A policy specifies the attestors that must attest to a container image, before the project is allowed to deploy that image.

updatePolicy

Creates or updates a project's policy, and returns a copy of the new policy.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-30 UTC.

  • Support

    • Release Notes
  • Resources

    • GitHub
    • Getting Started with Google Cloud
    • Code samples
    • Cloud Architecture Center
  • Terms
  • Privacy
  • Manage cookies
  • English
  • 中文 – 简体