gcloud alpha container hub config-management describe Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha container hub config-management describe - describe the Config Management feature
- SYNOPSIS
gcloud alpha container hub config-management describe[--view=VIEW:--filter=EXPRESSION--sort-by=[FIELD,…]][--memberships=[MEMBERSHIPS,…] :--location=LOCATION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Describe the Config Management feature.- EXAMPLES
- To describe the entire Config Management feature, run:
gcloudalphacontainerhubconfig-managementdescribeTo describe select membership configurations, run:
gcloudalphacontainerhubconfig-managementdescribe--memberships=example-membership-1,example-membership-2To list the membership configurations, run:
gcloudalphacontainerhubconfig-managementdescribe--view=listMEMBERSHIP LOCATION STATUS INSTALL_STATE STOP_STATE SYNC_STATE VERSION SYNCED_TO_FLEET_DEFAULT example-membership-1 asia-east1 OK CONFIG_SYNC_NOT_INSTALLED NOT_INSTALLED FLEET_DEFAULT_NOT_CONFIGURED example-membership-2 us-central1 OK CONFIG_SYNC_INSTALLED NOT_STOPPED SYNCED 1.22.0 FLEET_DEFAULT_NOT_CONFIGURED example-membership-3 us-central1 ERROR CONFIG_SYNC_INSTALLED NOT_STOPPED ERROR 1.21.3 FLEET_DEFAULT_NOT_CONFIGURED - FLAGS
--view=VIEW- View of the feature.
VIEWmust be one of:config- Membership configuration in a format that is passable to the
--configflag on theupdatecommand. Note that theconfiguration includes any deprecated fields that are set. Errors if--membershipsdoes not specify exactly one membership.To describe the configuration for a given membership, run:
gcloudalphacontainerhubconfig-managementdescribe--view=config--memberships=example-membership-1 fleet-default-member-config- Fleet-defaultmembership configuration in a format that is passable to the
--fleet-default-member-configflag on theenableandupdatecommands. Note that the configuration includes anydeprecated fields that are set. Errors if the fleet-default membershipconfiguration is not set on the feature. Errors if specified with the--membershipsflag. Tab to auto-complete this flag value. full- Default view. Prints the entire feature.
list- List of membership configurations. Default format is a table summary.
The
SYNCED_TO_FLEET_DEFAULTcolumn may displayUNKNOWNfor any membership whose configuration has not been updated since thefleet-defaultmembership configuration enablement.To view the underlying configurations instead of the table summary for selectmemberships, run:
gcloudalphacontainerhubconfig-managementdescribe--view=list--format=yaml--memberships=example-membership-1,example-membership-2
- List command flags. Only specify when
--view=list. Does not includesupport for--limit. --filter=EXPRESSION- Apply a Boolean filter
EXPRESSIONto each resource itemto be listed. If the expression evaluatesTrue, then that item islisted. For more details and examples of filter expressions, run $gcloud topic filters. This flaginteracts with other flags that are applied in this order:--flatten,--sort-by,--filter,--limit.To filter for memberships with an overall status of
ERROR, use thepattern and run:COLUMN~VALUEgcloudalphacontainerhubconfig-managementdescribe--view=list--filter=STATUS~ERRORTo filter for memberships that are synced to the fleet-default membershipconfiguration, run:
gcloudalphacontainerhubconfig-managementdescribe--view=list--filter="spec.origin.type.synced_to_fleet_default()~YES"SYNCED_TO_FLEET_DEFAULTis the only column that requires filteringon the underlying configuration field instead of the column name. An alternativeis to--sort-by=SYNCED_TO_FLEET_DEFAULTand filter by eye.To filter on a configuration field not in the table summary, in this case theConfig Sync repo, run:
gcloudalphacontainerhubconfig-managementdescribe--view=list--format=yaml--filter="spec.configmanagement.configSync.git.syncRepo~https://\github.com/GoogleCloudPlatform/anthos-config-management-samples.git" --sort-by=[FIELD,…]- Comma-separated list of resource field key names to sort by. The default orderis ascending. Prefix a field with ``~´´ for descending order on thatfield. This flag interacts with other flags that are applied in this order:
--flatten,--sort-by,--filter,--limit.The default table summary sorts by
LOCATIONthenMEMBERSHIP.To sort the table by
VERSIONinstead, run:gcloudalphacontainerhubconfig-managementdescribe--view=list--sort-by=VERSIONTo sort by a configuration field not in the table summary, in this case theConfig Sync repo, and print its values in a table, run:
gcloudalphacontainerhubconfig-managementdescribe--view=list--sort-by="spec.configmanagement.configSync.git.syncRepo"--format="table(MEMBERSHIP,LOCATION,spec.configmanagement.configSync.git.syncRepo:label=REPO)"
- MEMBERSHIP FLAGS
- Memberships to print configurations for. Errors if a specified membership doesnot have a configuration for this feature.
- Membership resource - The group of arguments defining one or more memberships.The arguments in this group can be used to specify the attributes of thisresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
To set the
projectattribute:- provide the argument
--membershipson the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
- provide the argument
--memberships=[MEMBERSHIPS,…]- IDs of the memberships or fully qualified identifiers for the memberships.
To set the
membershipsattribute:- provide the argument
--membershipson the command line.
This flag argument must be specified if any of the other arguments in this groupare specified.
- provide the argument
--location=LOCATION- Location for the memberships.
To set the
locationattribute:- provide the argument
--membershipson the command line with a fullyspecified name; - provide the argument
--locationon the command line; - set the property
gkehub/location.
- provide the argument
- 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 thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcontainerhubconfig-managementdescribegcloudbetacontainerhubconfig-managementdescribe
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-27 UTC.