Learn how to organize and categorize your Vultr Cloud GPU instances using the tag management system
Tagging enables the assignment of specific labels called tags on an instance for identification in your Vultr account. Tags consist of multiple characters that help identify, organize, and manage instances in your Vultr account.
Follow this guide to manage tags on a Vultr Cloud GPU instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET request to the List Instances endpoint and note the target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH request to the Update Instance endpoint to add new tags to the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"tags" : ["tag1", "tag2"]
}'
List all instances in your Vultr account and note the target instance's ID.
$ vultr-cli instance list
Add new tags to the instance.
$ vultr-cli instance tags <instance_id> --tags <tag1,tag2>
Open your Terraform configuration for the existing Cloud GPU instance.
Update the tags value in the instance resource to include the desired tags.
resource "vultr_instance" "gpu" {
# ...existing fields (region, plan, label, etc.)
tags = ["tag1", "tag2"]
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.