Skip to main content

Synopsis

Report a snapshot of Cloud Run services and jobs in a Google Cloud project and region to Kosli.
Coverage:
Each Cloud Run service contributes one artifact per revision in its traffic configuration. Each Cloud Run Job contributes one artifact, identified by the image bound to the Job (Jobs do not have a revision/traffic-split model). Idle Jobs (no currently-running Execution) are included. GCP authentication uses Application Default Credentials. On a developer machine, run gcloud auth application-default login; in GCE/GKE/Cloud Run the metadata server / Workload Identity is used automatically. The caller needs roles/run.viewer on the target project. To resolve the digest of a tag-pinned image it also needs artifactregistry.tags.get on the Artifact Registry repository (or the project), and --resolve-names needs artifactregistry.dockerimages.get. Both are metadata reads: neither grants permission to pull an image. roles/artifactregistry.reader also works. Missing these permissions is non-fatal: tag-pinned artifacts then surface with empty digests. Digest resolution covers Artifact Registry (*-docker.pkg.dev) and gcr.io hosts, which Artifact Registry now serves. Images from other registries (Docker Hub, Quay, ECR, etc.) are reported as-is. Skip all filtering flags to report every service and every job in the given project + region. Use --include and/or --include-regex to snapshot only a subset, OR --exclude and/or --exclude-regex to omit a subset; include and exclude are mutually exclusive. Filters apply uniformly to both service and job names and are case-sensitive. Pass --resolve-names to rewrite digest-pinned Service artifact names back to their deploy-time tags (commit SHA / version) via an Artifact Registry reverse-lookup. Supported for Artifact Registry (*-docker.pkg.dev) and gcr.io hosts.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on November 30, 2026