gcloud resource-manager tags bindings create Stay organized with collections Save and categorize content based on your preferences.
- 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 theTagValue will be attached to. The TagValue can be represented with its numericid 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
run://cloudresourcemanager.googleapis.com/projects/1234gcloudresource-managertagsbindingscreate--tag-value=tagValues/123--parent=//cloudresourcemanager.googleapis.com/projects/1234To create a TagBinding between TagValue
under TagKeytestand Project with nameenvrun://cloudresourcemanager.googleapis.com/projects/1234gcloudresource-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 helpfor details. - NOTES
- These variants are also available:
gcloudalpharesource-managertagsbindingscreategcloudbetaresource-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.