Manage tags with firectl
Upgrade firectl before using the tag commands:1.8.3 or later.
Set one tag:
--key with --value or one or more --tag flags. Do not combine the two forms in one command.
List tags:
set overwrites existing values for the specified keys. unset ignores keys that do not exist. Each command changes all supplied keys in one request or makes no changes.
firectl uses logical tag keys and manages the API’s
custom/ prefix for you. Do not add that prefix to firectl keys. For example, --key environment writes the API key custom/environment; --key custom/environment writes custom/custom/environment.Manage tags with the REST API
The REST API exposes canonical tag keys. Customer-managed keys must begin withcustom/.
Set one or more tags:
Add tags when creating a deployment
Direct API clients can include canonical keys in the deployment’sannotations map:
:setTags and :deleteTags. Regular account callers cannot replace the complete annotations map through UpdateDeployment.
Read tags
For regular account users,GetDeployment and ListDeployments return only customer-owned deployment tags, with the canonical custom/ prefix:
deployment tag list command shows deployment tags and removes one leading custom/ prefix from each displayed key.
Validation
- A deployment can have at most 64 customer tags.
- firectl logical keys can contain 1–121 ASCII characters. API keys can contain at most 128 characters, including
custom/. - The
custom/API prefix is case-sensitive. - The firectl logical key—and the portion of a REST key after
custom/—may contain ASCII letters, digits,-,_,., and/. It must start and end with an ASCII letter or digit. - Values must be non-empty valid UTF-8 with at most 128 Unicode code points.
- Values cannot have leading or trailing whitespace or contain control characters.
Deployment list filtering
Tag filtering inListDeployments and firectl deployment list is not currently supported.