gcloud container hub memberships bindings create (BINDING : --location=LOCATION --membership=MEMBERSHIP) --scope=SCOPE [--labels=[KEY=VALUE,…]] [GCLOUD_WIDE_FLAG …]
BINDING_NAME in global membership
MEMBERSHIP_NAME for scope SCOPE_NAME, run:
gcloud container hub memberships bindings create BINDING_NAME --membership=MEMBERSHIP_NAME --scope=SCOPE_NAME
To create a Binding BINDING_NAME associated with regional
membership MEMBERSHIP_NAME, provide the location LOCATION_NAME for
the Membership where the Binding belongs along with membership name and
associated Scope SCOPE_NAME.
gcloud container hub memberships bindings create BINDING_NAME --membership=MEMBERSHIP_NAME --scope=SCOPE_NAME --location=LOCATION_NAME
To set the project attribute:
BINDING on the command line with a fully
specified name;
--project on the command line;
core/project.
BINDING
To set the binding attribute:
BINDING on the command line.
--location=LOCATIONlocation attribute:
BINDING on the command line with a fully
specified name;
--location on the command line;
gkehub/location.
--membership=MEMBERSHIPmembership attribute:
BINDING on the command line with a fully
specified name;
--membership on the command line.
--scope=SCOPEscope attribute:
--scope on the command line.
--labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
--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.
gcloud alpha container hub memberships bindings creategcloud beta container hub memberships bindings create
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-05-27 UTC.