Qstack supports using tags in resources. Tags store metadata about resources and can be useful when searching for and categorising resources. Each resource can have multiple tags, e.g. "webserver", "database", etc. Tags can be set both upon resource creation or afterwards.
Tags can be set for the following resources (in the different modules):
- Compute (User module): Virtual machine (instance), platforms, volume, snapshot, user template, ISO, firewall rule
- Infrastructure: Storage (primary, secondary), Service offering (Storage tags - used for creating storage tiers)
Tags can be set and configured through the UI or through the API commands ec2-create-tags, ec2-delete-tags, and ec2-describe-tags. Multiple tags can be set for each resource. There is no limit on the number of tags possible to define. Each tag can be up to 255 characters long. Users can define tags on the resources they own, and administrators can define tags on any resources in the cloud.
Qstack currently supports using the key=tags when using the above API commands, e.g
(generic) ec2-create-tags <ResourceType>:<ResourceID> --tag key=value
(example)ec2-create-tags instance:i-1234abcd --tag tags=webserver
Setting a tag on a new instance
Setting a tag on existing instance