- NAME
-
- gcloud alpha resource-manager tags values create - creates a TagValue resource
- SYNOPSIS
-
-
gcloud alpha resource-manager tags values create
(SHORT_NAME
--parent
=PARENT
) [--async
] [--description
=DESCRIPTION
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Creates a TagValue resource given the short_name and description (optional) as well as the parent, the of the TagValue. The parent of the TagValue is always a TagKey and the TagKey's details can be passed as a numeric id or the namespaced name. - EXAMPLES
-
To create a TagValue with the short name 'test' and the description
'description' under a TagKey with a short name 'env' under 'organizations/123',
run:
gcloud alpha resource-manager tags values create test --parent=123/env --description=description
To create a TagValue with the short name 'test' under TagKey with id '456', run:
gcloud alpha resource-manager tags values create test --parent=tagKeys/456 --description=description
- POSITIONAL ARGUMENTS
-
-
TagValue.
This must be specified.
SHORT_NAME
-
User specified, friendly name of the TagKey or TagValue. The field must be 1-63
characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z])
with dashes (-), underscores ( _ ), dots (.), and alphanumerics between.
This positional argument must be specified if any of the other arguments in this group are specified.
--parent
=PARENT
-
Parent of the TagValue in either in the form of tagKeys/{id} or
{org_id}/{tagkey_short_name}
This flag argument must be specified if any of the other arguments in this group are specified.
-
TagValue.
- FLAGS
-
--async
- Return immediately, without waiting for the operation in progress to complete.
--description
=DESCRIPTION
- User-assigned description of the TagKey or TagValue. Must not exceed 256 characters.
- 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. These variants are also available:
gcloud resource-manager tags values create
gcloud beta resource-manager tags values 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"
}]