What are Tags?
Tags are metadata labels that you can attach to your Latitude.sh resources. Tags help you:- Organize resources by purpose, owner, environment, or any other criteria relevant to your workflow
- Quickly find and filter resources based on your assigned tags
- Manage access control and permissions for grouped resources
Supported resources
Currently, you can assign tags to the following resources on Latitude.sh:- Servers
- VLANs
Creating and managing Tags
You can create, edit, and delete tags through the Latitude.sh dashboard or API.Using the dashboard
- Navigate to the resource (server or VLAN) you want to tag.
- Open the Tags select.
- Start typing your tag to create a new one
Using the API
You can manage tags programmatically using the Latitude.sh API. Refer to the Tags endpoint for detailed instructions on creating, updating, and deleting tags using API calls.Searching and filtering Resources by Tags
Once you have assigned tags to your resources, you can use them to search and filter resources.Using the dashboard
- Navigate to the resource type (servers or VLANs) you want to search or filter.
- Click on the “Filter” and select Tags dropdown.
- Select the desired tag to filter the resources.
Using the API
You can search and filter resources by tags using the API. Refer to the specific API documentation for detailed instructions on constructing API calls with tag-based filtering. Here’s an example on how you can retrieve a server with tag k8sBest practices
- Use a consistent naming convention to maintain clarity and avoid confusion. Many companies use tags as key-value pairs to manage growing environments. You can use key-value pairs by splitting the tag with
:
. Here are a key-value examples:env:production
env:development
, …k8s:etcd
k8s:worker
k8s:control-plane
- Assign tags that reflect your organization’s resource management practices, such as cost allocation, ownership, or environment.
- Regularly review and clean up unused or obsolete tags to keep your tagging system organized and efficient.