- NAME
-
- gcloud alpha resource-manager tags keys create - creates a TagKey resource under the specified tag parent
- SYNOPSIS
-
-
gcloud alpha resource-manager tags keys create
(SHORT_NAME
--parent
=PARENT
) [--async
] [--description
=DESCRIPTION
] [--purpose
=PURPOSE
] [--purpose-data
=[organization
],[network
=NETWORK
]] [GCLOUD_WIDE_FLAG …
]
-
- EXAMPLES
-
To create a TagKey with the name env under 'organizations/123' with description
'description', run:
gcloud alpha resource-manager tags keys create env --parent=organizations/123 --description=description
- POSITIONAL ARGUMENTS
-
-
TagKey.
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 TagKey in the form of organizations/{org_id}.
This flag argument must be specified if any of the other arguments in this group are specified.
-
TagKey.
- 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.
--purpose
=PURPOSE
-
Purpose specifier of the TagKey that can only be set on creation. Specifying
this field adds additional validation from the policy system that corresponds to
the purpose.
PURPOSE
must be one of:GCE_FIREWALL
,DATA_GOVERNANCE
. --purpose-data
=[organization
],[network
=NETWORK
]- Purpose data of the TagKey that can only be set on creation. This data is validated by the policy system that corresponds to the purpose.
- 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 keys create
gcloud beta resource-manager tags keys 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-12-10 UTC.