Tags allow you to apply custom labels to a Droplet. You can filter tagged Droplets, automatically include Droplets in Firewall or Load Balancer configurations by tag, and use the DigitalOcean API to initiate an action across multiple Droplets with the same tag.
There are three ways to tag a Droplet:
To begin, log into the DigitalOcean Control Panel and open the More menu to the right of the Droplet that you want to tag, then choose Add tags.
An Add Tags overlay window appears. In the Type tags here input box, enter a label to tag the Droplet. Choosing terms that describe what function a Droplet serves will help you to locate and administer the Droplets that share common roles. We have found that developers consider some of the following when tagging Droplets:
Add multiple terms by pressing the
ENTER key after each one.
With your desired tag in place, click the Save Tags button.
You will return to the Droplets section of the Control Panel where a Tags column now exists.
Additionally, when a Droplet has multiple tags assigned to it, the first one appears in the Tags column followed by a plus symbol and the number of additional tags. Clicking on the number reveals the other tags.
At this point, you have completed the necessary steps to tag a Droplet. You can edit the tags by performing the same actions.
You can also access the tags option by clicking on the name of a Droplet from the Droplet section of the Control Panel:
The following screenshots reflect assigning a tag to a Droplet for the first time.
The new page contains a list of options on the left-hand side. Click Tags at the bottom.
Next, click the Add Tags button.
In the Add Tags input box, enter a label to tag the Droplet and click the Save Tags button.
You will return to the Droplets section of the Control Panel where the Tags column now displays the tag(s) you created.
Click the Droplets link in the top-left corner of the page to go back to the Droplets page.
When you create a new Droplet, you can label it as well. Open the Create menu in the top-right corner of any page and choose Droplets.
At the bottom of the page in the Choose a hostname portion of the Finalize and create section, click the Add Tags link.
In the Type tags here field, enter a label to tag the Droplet.
Next, click the Create button.
We have now explored the three avenues for working with tags in the DigitalOcean Control Panel.
From the Droplets page, select a tag shared by multiple Droplets.
Presented is a filtered list of Droplets based on that tag assignment.