- NAME
-
- gcloud beta resource-manager tags bindings create - creates a TagBinding resource
- SYNOPSIS
-
-
gcloud beta resource-manager tags bindings create
--parent
=PARENT
--tag-value
=TAG_VALUE
[--async
] [--location
=LOCATION
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
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/1234
gcloud beta resource-manager tags bindings create --tag-value=tagValues/123 --parent=//cloudresourcemanager.googleapis.com/projects/1234
To create a TagBinding between TagValue
under TagKeytest
and Project with nameenv
run://cloudresourcemanager.googleapis.com/projects/1234
gcloud beta 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 help
for details. - NOTES
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloud resource-manager tags bindings create
gcloud alpha 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 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-02-06 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-06 UTC."]]