对于 IAM 资源(包括 IAMPolicy、IAMPartialPolicy、IAMPolicyMember 和 IAMAuditConfig),您无需提供作用域。而是通过 spec.resourceRef 字段将这些资源附加到其他资源。 Google Cloud 此其他 Google Cloud 资源可以是 PubSubTopic、SpannerInstance,甚至是项目、文件夹、组织等“作用域”,它们本身都被建模为 Google Cloud 资源。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-27。"],[[["Config Connector manages Google Cloud resources at project, folder, or organization levels, determining the scope through either a resource spec field or an annotation."],["Resources can be scoped using `projectRef`, `folderRef`, or `organizationRef` fields, or via annotations like `cnrm.cloud.google.com/project-id`."],["Scope-defining fields are recommended over annotations for making resource specs self-contained and enabling single-step scope creation, and are preferred when available."],["Once a resource's scope is set, it's immutable, and changing the scope requires deleting the resource and creating it anew."],["Some resources don't require scope specification, such as those linked to billing accounts or IAM resources attached to other Google Cloud resources."]]],[]]