Zudoku
Cloud Platform

Tagging

Tags are labels that you can attach to instances, volumes, instance templates, and volume templates to organize and filter your resources. Don't confuse them with image tags which serve a different purpose.

Tag format

Tags can be up to 256 characters long and may contain alphanumeric characters plus -, +, _, ., :, and =. Each resource (instance, volume, instance template, volume template) can have up to 16 tags.

Adding tags

Add tags to a resource at creation time:

unikraft instance create \ --metro fra \ --image ... \ --memory ... \ --tag production \ --tag customer_A

Add tags to an existing resource ("op": "set" will replace all existing tags):

unikraft instance edit <instance-name> \ --tag testsystem \ --tag customer_B

Add tags to a resource without replacing existing ones ("op": "add"):

unikraft instance edit <instance-name> --add tags=legacy

Tags are automatically deduplicated. Adding a tag already attached to a resource has no effect.

Removing tags

Remove specific tags from a resource ("op": "del"):

unikraft instance edit <instance-name> --del tags=legacy

Filtering by tag

Filter the instance list, volume list, instance template list, or volume template list by one or more tags. Only resources that have all the specified tags appear in the results.

unikraft instance list --field +tags --filter 'tags.*==production,tags.*==customer_A'

In the API, separate tags by commas (,) in the tags query parameter. In the CLI, write one tags.*==<tag> selector per tag inside a single --filter, separated by commas: every selector must match. tags==production,customer_A doesn't work: the comma starts a second selector, so the CLI prints an empty list without an error. The default list table doesn't show tags, so --field +tags adds the column. Elsewhere, pass one tag per --tag flag—the CLI no longer splits a flag value on commas.

Learn more

Last modified on