- NAME
-
- gcloud alpha resource-manager tags bindings update - updates TagBindings bound to the specified resource
- SYNOPSIS
-
-
gcloud alpha resource-manager tags bindings update
--resource-name
=RESOURCE_NAME
(--clear-tags
|--replace-tags
=[REPLACE_TAGS
,…] |--remove-tags
=REMOVE_TAGS
,[REMOVE_TAGS
,…]--update-tags
=[UPDATE_TAGS
,…]) [--location
=LOCATION
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Updates TagBindings bound to the specified resource. - REQUIRED FLAGS
-
--resource-name
=RESOURCE_NAME
- Full resource name of the resource to attach to the tagValue.
-
Tags to update for a resource.
Exactly one of these must be specified:
- Clear all tags on the resource.
-
Replace all existing tags on the resource with the specified key-value pairs.
Sets
replace_tags
value.KEY
-
Sets
KEY
value. VALUE
-
Sets
VALUE
value.
Shorthand Example:
--replace-tags=string=string
JSON Example:
--replace-tags='{"string": "string"}'
File Example:
--replace-tags=path_to_file.(yaml|json)
-
Tags to add/remove for a resource.
- Remove the specified tags from the resource.
-
Add/update tags to the resource. Sets
update_tags
value.KEY
-
Sets
KEY
value. VALUE
-
Sets
VALUE
value.
Shorthand Example:
--update-tags=string=string
JSON Example:
--update-tags='{"string": "string"}'
File Example:
--update-tags=path_to_file.(yaml|json)
- OPTIONAL FLAGS
-
--location
=LOCATION
- Region or zone of the resource to bind to the TagValue. This field is not required if the resource is a global resource like projects, folders and organizations.
- 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.
gcloud alpha resource-manager tags bindings 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 2025-07-22 UTC.