gcloud alpha resource-manager tags bindings create

NAME
gcloud alpha resource-manager tags bindings create - creates a TagBinding resource
SYNOPSIS
gcloud alpha resource-manager tags bindings create--parent=PARENT--tag-value=TAG_VALUE[--async][--location=LOCATION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Creates a TagBinding given the TagValue and the parentcloud resource the TagValue will be attached to. The TagValue can be representedwith its numeric id or its namespaced name of{parent_namespace}/{tag_key_short_name}/{tag_value_short_name}. The parentresource 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//cloudresourcemanager.googleapis.com/projects/1234run:
gcloudalpharesource-managertagsbindingscreate--tag-value=tagValues/123--parent=//cloudresourcemanager.googleapis.com/projects/1234

To create a TagBinding between TagValuetest under TagKeyenv and Project with name//cloudresourcemanager.googleapis.com/projects/1234run:

gcloudalpharesource-managertagsbindingscreate--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 formtagValues/{numeric_id}. The namespaced name should be in the form{org_id}/{tag_key_short_name}/{short_name} where short_name must be 1-63characters, 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 notrequired if the resource is a global resource like projects, folders andorganizations.
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 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:
gcloudresource-managertagsbindingscreate
gcloudbetaresource-managertagsbindingscreate

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 2025-05-07 UTC.