- NAME
-
- gcloud resource-manager tags bindings create - creates a TagBinding resource
- SYNOPSIS
-
-
gcloud resource-manager tags bindings create--parent=PARENT--tag-value=TAG_VALUE[--async] [--location=LOCATION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Creates a TagBinding given the TagValue and the parent cloud resource the TagValue will be attached to. The TagValue can be represented with its numeric id or its namespaced name of {parent_namespace}/{tag_key_short_name}/{tag_value_short_name}. The parent resource should be represented with its full resource name. See: https://cloud.google.com/apis/design/resource_names#full_resource_name .
- EXAMPLES
- To create a TagBinding between tagValues/123 and Project with name
run://cloudresourcemanager.googleapis.com/projects/1234gcloud resource-manager tags bindings create --tag-value = tagValues/123 --parent = //cloudresourcemanager.googleapis.com/projects/1234To create a TagBinding between TagValue
under TagKeytestand Project with nameenvrun://cloudresourcemanager.googleapis.com/projects/1234gcloud resource-manager tags bindings create --tag-value = 789 /env/test --parent = //cloudresourcemanager.googleapis.com/projects/1234 - REQUIRED FLAGS
-
-
--parent=PARENT - Full resource name of the resource to attach to the tagValue.
-
--tag-value=TAG_VALUE - Tag value name or namespaced name. The name should be in the form
tagValues/{numeric_id}. The namespaced name should be in the form
{org_id}/{tag_key_short_name}/{short_name} where short_name must be 1-63
characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z])
with dashes (-), underscores (
), dots (.), and alphanumerics between.
-
- OPTIONAL FLAGS
-
-
--async - Return immediately, without waiting for the operation in progress to complete.
-
--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 helpfor details. - NOTES
- These variants are also available:
gcloud alpha resource-manager tags bindings creategcloud beta resource-manager tags bindings create
gcloud resource-manager tags 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.

