Skip to content

GCP Indexed Resources

Overview

When you write a generation rule, you tell the workspace builder which cloud resources to match by listing one or more resource types under resourceTypes. This page lists the resource types the GCP indexer discovers, the names that work, and a working match rule example.

A transition from CloudQuery resource names to the native gcpapi indexer names is underway — the alias column lists the legacy CloudQuery names which will be deprecated. 404 resource types total — 12 typed (SDK collectors), 391 generic, 1 unmapped. Full catalog →

Commonly used resource types

Resource typeAliasesNotes
gcp_projectsprojectanchor, always indexed
gcp_compute_instancescompute_instancetyped
gcp_compute_diskstyped
gcp_compute_snapshotstyped
gcp_compute_networkstyped
gcp_compute_subnetworkstyped
gcp_compute_firewallstyped
gcp_compute_addressestyped
gcp_storage_bucketstyped
gcp_container_clusterstyped (GKE)
gcp_pubsub_topicstyped
gcp_pubsub_subscriptionstyped
gcp_iam_service_accountstyped
gcp_sql_instancesCAI-only (no typed collector)
gcp_run_servicesCAI-only (Cloud Run)

Built-in matchable properties

PropertyValue
nameResource name
projectGCP project ID

Use resource/<path> to reach raw JSON fields — e.g. resource/zone or resource/status.

Typed resources are always discovered with a rich payload via google-cloud-* SDKs. The remaining types require the optional Cloud Asset Inventory accelerator to be discovered (see cloud discovery user guide).

Example match rule

apiVersion: runwhen.com/v1
kind: GenerationRules
spec:
platform: gcp
generationRules:
- resourceTypes:
- gcp_compute_instances
matchRules:
- type: pattern
properties: [name]
pattern: "^prod-"
mode: substring
slxs:
- baseName: gce-health
qualifiers: [project, name]
baseTemplateName: gcp-gce-health
levelOfDetail: detailed
outputItems:
- type: slx
- type: runbook

Note: 12 types are always discovered via SDK collectors. The other 391 types require the optional Cloud Asset Inventory accelerator to be enabled. Check the full catalog for tier status. For credential setup and workspace configuration, see the cloud discovery user guide.