支持标记的服务

借助标记,您可以为资源添加注解,在某些情况下,还可以根据资源是否具有特定标记,有条件地强制执行政策。本文档列出了支持标记的 Google Cloud 服务、政策引擎服务和资源类型。如需了解详情,请参阅标记概览。

政策引擎(例如 Identity and Access Management [IAM])会评估标记,以控制访问权限和配置。当服务资源支持标记附加且政策引擎支持该资源类型时,您可以有条件地对其强制执行政策。对于政策引擎无法直接定位的资源,请为父级项目、文件夹或组织添加标记,以便通过继承来管理政策。每个政策引擎都会在政策引擎服务部分中列出支持的资源。如需附加标记,请参阅创建和管理标记。

政策引擎服务

以下服务包括可包含标记的政策。通过在这些政策中引用标记,您可以微调它们在 Google Cloud 资源层次结构中对受支持资源的操作方式。

Google Cloud 服务 资源类型
Cloud Billing
Identity and Access Management (IAM)
Organization Policy Service
Cloud Next Generation Firewall

以下各部分介绍了如何将标记与政策引擎服务搭配使用。

Identity and Access Management

您可以根据资源是否具有特定标记来有条件地授予 IAM 角色或有条件地拒绝 IAM 权限。

资源会从其父级组织、文件夹和项目中继承标记值。因此,您可以使用标记来管理对任何 Google Cloud 资源的访问权限。

如需详细了解如何将标记与 IAM 搭配使用来帮助控制对 Google Cloud 资源的访问权限,请参阅标记和访问权限控制。

Organization Policy Service

您可以将组织政策与标记搭配使用,以控制组织政策限制条件在特定资源上的应用方式。通过引用附加到受支持资源的标记,可以有条件地强制执行使用代管式和自定义限制条件的组织政策。

大多数旧版托管式限制都不能包含涉及附加到服务资源的标记的条件。如需查看支持对附加到服务资源的标记设置条件的旧版托管式限制条件的列表,请参阅使用标记限定组织政策的范围。

Cloud Next Generation Firewall

您可以使用标记在网络防火墙政策和区域防火墙政策中定义来源和目标。如需了解详情,请参阅使用安全标记管理虚拟机流量。

Cloud Billing

Cloud Billing 导出到 BigQuery 的数据包含资源从其父级项目、文件夹和组织继承的标记。除了继承的标记之外,系统还会报告 Compute Engine 实例、Spanner 实例和 Artifact Registry 代码库的资源级标记。

支持的服务资源

您可以将标记附加到以下类型的 Google Cloud 资源:

Google Cloud 服务 资源类型
AlloyDB for PostgreSQL
API Gateway
  • API
  • 网关
API Hub
反洗钱 AI
Artifact Registry
Backup and DR Service
BigQuery
Bigtable
Google Cloud Armor
Certificate Manager
Certificate Authority Service
  • CA 池
  • 证书模板
Cloud Data Fusion
Cloud Deploy
Cloud Domains
  • 注册
Cloud Key Management Service (Cloud KMS)
Cloud Load Balancing
Cloud Logging
Cloud Monitoring
Cloud Router
Cloud Interconnect
Cloud VPN
Cloud Run
Cloud Service Mesh
Cloud SQL
Cloud Storage
Cloud Workstations
Transcoder API
  • 作业
  • JobTemplate
Managed Service for Apache Airflow
Compute Engine
配置控制器
Cloud Next Generation Firewall
Dataform
Managed Service for Apache Spark
Dataproc Metastore
Datastore
Datastream
Cloud DNS
Eventarc
Filestore
Firestore
Google Distributed Cloud
  • BareMetalCluster
  • BareMetalAdminCluster
  • VMWareCluster
  • VMWareAdminCluster
Google Kubernetes Engine (GKE)
GKE 关联集群
Identity and Access Management
Infrastructure Manager
Knowledge Catalog
Live Stream API
Looker (Google Cloud Core)
Microsoft Active Directory 托管服务(Microsoft AD 托管服务)
Memorystore for Memcached
Memorystore for Redis
Memorystore for Redis Cluster
Migrate to Virtual Machines
Network Connectivity Center
Network Intelligence Center
Parameter Manager
Pub/Sub
reCAPTCHA Enterprise
  • 键
Resource Manager
Secret Manager
Spanner
Vertex AI Workbench
Google Cloud VMware Engine
  • 私有云
  • 专用连接
  • 网络
  • 网络对等互连
  • 网络政策
VPC
Workflows