gcloud container fleet scopes rbacrolebindings update (NAME : --location=LOCATION --scope=SCOPE) [--update-labels=[KEY=VALUE,…]] [--clear-labels | --remove-labels=[KEY,…]] [--custom-role=CUSTOM_ROLE | --role=ROLE] [--group=GROUP | --user=USER] [GCLOUD_WIDE_FLAG …]
RBRB in scope SCOPE in
the active project to the viewer role:
gcloud container fleet scopes rbacrolebindings update RBRB --scope=SCOPE --role=viewer
To update the RBAC RoleBinding RBRB in scope SCOPE in
the active project to the custom role custom-role:
gcloud container fleet scopes rbacrolebindings update RBRB --scope=SCOPE --custom-role=custom-role
To update the RBAC RoleBinding RBRB in scope SCOPE in
the active project to the user someone@google.com:
gcloud container fleet scopes rbacrolebindings update RBRB --scope=SCOPE --user=someone@google.com
To set the project attribute:
NAME on the command line with a fully
specified name;
--project on the command line;
core/project.
NAME
To set the rbacrolebinding attribute:
NAME on the command line.
--location=LOCATIONlocation attribute:
NAME on the command line with a fully
specified name;
--location on the command line;
gkehub/location.
--scope=SCOPEscope attribute:
NAME on the command line with a fully
specified name;
--scope on the command line.
--update-labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
At most one of these can be specified:
--clear-labels--update-labels is also specified then
--clear-labels is applied first.
For example, to remove all labels:
gcloud container fleet scopes rbacrolebindings update --clear-labels
To remove all existing labels and create two new labels,
and
foo:
baz
gcloud container fleet scopes rbacrolebindings update --clear-labels --update-labels foo=bar,baz=qux--remove-labels=[KEY,…]--update-labels is also specified then
--update-labels is applied first.
--custom-role=CUSTOM_ROLE--role=ROLEROLE must be one of: admin,
edit, view.
--group=GROUP--user=USER--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 fleet scopes rbacrolebindings updategcloud beta container fleet scopes rbacrolebindings update
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.