NAME

gcloud alpha anthos config sync resources list - list resources and their status that are synced by Config Sync

SYNOPSIS

gcloud alpha anthos config sync resources list [--cluster=CLUSTER] [--membership=MEMBERSHIP] [--sync-name=SYNC_NAME] [--sync-namespace=SYNC_NAMESPACE] [GCLOUD_WIDE_FLAG ...]

DESCRIPTION

(ALPHA) List resources and their status that are synced by Config Sync.

EXAMPLES

To list all managed resources in the current project, run:

$ gcloud alpha anthos config sync resources list list

To list all managed resources in a specific Config Controller cluster, run:

$ gcloud alpha anthos config sync resources list list \ --cluster=<CLUSTER>

To list managed resources from a Git repo synced by Config Sync across multiple clusters, run:

$ gcloud alpha anthos config sync resources list list \ --sync-name=root-sync --sync-namespace=config-management-system

To list managed resources from a Git repo synced by Config Sync from a specific cluster, run:

$ gcloud alpha anthos config sync resources list list \ --sync-namespace=<NAMESPACE> --sync-name=repo-sync \ --cluster=<CLUSTER>

FLAGS

--cluster=CLUSTER

The cluster name or the membership name that a repository is synced to.

--membership=MEMBERSHIP

The membership name that the listed Config Sync repos are synced to. A membership is for a registered cluster to a fleet. It supports a single membership or multiple memberships with the format membership1,membership2 or membership.

--sync-name=SYNC_NAME

Name of the RootSync or RepoSync CR to sync a repository.

--sync-namespace=SYNC_NAMESPACE

Namespace of the RootSync or RepoSync CR to sync a repository.

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.

PREREQUISITES

Please setup Connect Gateway in order to use this command with non-GKE registered clusters. The instructions can be found at https://cloud.google.com/anthos/multicluster-management/gateway/setup.

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.