gcloud alpha app-topology resources-graph generate

INFORMATION
gcloud alpha app-topology resources-graph generate is not available in universe domain universe.
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 SRE domain:
gcloud alpha app-topology resources-graph generate --domains=SRE

To 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 project attribute:

  • provide the argument --location on the command line with a fully specified name;
  • App Topology currently supports global location by default with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.
--location=LOCATION
ID of the location or fully qualified identifier for the location.

To set the location attribute:

  • provide the argument --location on the command line;
  • App Topology currently supports global location by default.
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.
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 help for 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.