- INFORMATION
-
gcloud alpha app-topology resources-graph generateis not available in universe domainuniverse. - NAME
-
- gcloud alpha app-topology resources-graph generate - generate a resource topology graph
- SYNOPSIS
-
-
gcloud alpha app-topology resources-graph generate--domains=[DOMAINS,…] [--location=LOCATION] [--pattern=PATTERN|--pattern-file=PATTERN_FILE] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Queries the App Topology service to construct and return a directed graph of discovered cloud resources and their relationships across the specified domains.Queries the App Topology service to construct and return a directed graph of discovered cloud resources and their relationships across the specified domains.
- EXAMPLES
-
To generate a resource topology graph for the
SREdomain:gcloud alpha app-topology resources-graph generate --domains=SRETo generate a topology graph with an inline pattern filter:
gcloud alpha app-topology resources-graph generate --domains=SRE,DEVOPS --pattern='{"starting_node": {"label_matcher_expr": "AppHub"}'To generate a topology graph using a pattern filter from a file:
gcloud alpha app-topology resources-graph generate --domains=SRE --pattern-file=path/to/pattern.yaml - REQUIRED FLAGS
-
--domains=[DOMAINS,…]- List of App Topology domains to include in the topology query (e.g., SRE, DEVOPS, SECURITY).
- OPTIONAL FLAGS
-
-
Location resource - The location to query topology in. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
To set the
projectattribute:-
provide the argument
--locationon the command line with a fully specified name; - App Topology currently supports global location by default with a fully specified name;
-
provide the argument
--projecton the command line; -
set the property
core/project.
-
provide the argument
--location=LOCATION-
ID of the location or fully qualified identifier for the location.
To set the
locationattribute:-
provide the argument
--locationon the command line; - App Topology currently supports global location by default.
-
provide the argument
-
Graph pattern filter options.
At most one of these can be specified:
--pattern=PATTERN- A GraphPattern query filter definition in proto3 YAML/JSON string format.
--pattern-file=PATTERN_FILE- Path to a YAML or JSON file (or "-" for standard input) containing the GraphPattern query filter definition.
-
Location resource - The location to query topology in. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha app-topology resources-graph generate
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-09-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-09-09 UTC."],[],[]]