Cloud Run 함수는 Cloud Run 함수 (1세대)와Google Cloud Functions v2 API를 통해 만든 Cloud Run 함수의 두 가지 제품 버전을 제공합니다. 조직에서 버전 중 하나만 사용하여 새 함수를 배포할 수 있도록 지정하는 제한사항을 적용하려는 경우 제약조건constraints/cloudfunctions.restrictAllowedGenerations와 함께 새 조직 정책을 정의할 수 있습니다. 이 제약조건을 사용하여 정책이 적용되는 폴더 또는 프로젝트에서 허용하거나 거부하려는 세대(버전)를 지정합니다.
이러한 제한사항은 처음 배포되는 새 함수에만 적용됩니다. 정책을 준수하지 않더라도 기존 함수를 계속 재배포할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-21(UTC)"],[[["Cloud Run functions have two versions, 1st gen and 2nd gen, and organizations can restrict new deployments to a specific version using organization policies."],["The `constraints/cloudfunctions.restrictAllowedGenerations` constraint allows specifying which Cloud Run function version (1stGen or 2ndGen) can be used for new deployments within a folder or project."],["Setting this restriction only applies to new function deployments; existing functions can still be redeployed regardless of the policy."],["To create or modify organization policies, the account must have the `roles/orgpolicy.policyAdmin` role."],["You can use the Google Cloud CLI to enforce these restrictions by using the `gcloud resource-manager org-policies allow cloudfunctions.restrictAllowedGenerations` command."]]],[]]