How to Manage Tags on a Vultr Bare Metal Instance
-
by Blog Admin
- 13
How to Manage Tags on a Vultr Bare Metal Instance
Learn how to create, apply, and manage tags to organize and filter your Vultr Bare Metal instances.
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 Bare Metal instance using the Vultr Customer Portal, API, CLI, or Terraform.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Bare Metal instance to open its management page.
- Navigate to the Tags tab.
- Enter a new tag in the Add Tag field and click Add to apply the new tag.
- Find and click Delete within the Existing Tags section to remove a specific tag on your instance.
Vultr API
- Send a
GET
request to the List Bare Metal Instances endpoint and note the target instance’s ID.console$ curl "https://api.vultr.com/v2/bare-metals" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PATCH
request to the Update Bare Metal Instance endpoint to add new tags to the instance.console$ curl "https://api.vultr.com/v2/bare-metals/{baremetal-id}" \ -X PATCH \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "tags" : ["tag1", "tag2"] }'
Vultr CLI
- List all Bare Metal instances available in your Vultr account and note the target instance’s ID.
console
$ vultr-cli bare-metal list
- Add new tags to the instance.
console
$ vultr-cli bare-metal tags <instance_id> --tags <tag1,tag2>
Terraform
- Open your Terraform configuration for the existing Bare Metal instance.
- Update the
tags
value in the instance resource to include the desired tags.terraformresource "vultr_bare_metal_server" "bm1" { # ...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.
How to Manage Tags on a Vultr Bare Metal Instance Learn how to create, apply, and manage tags to organize and filter your Vultr Bare Metal instances. Tagging enables the assignment of specific labels called tags on an instance for identification in your Vultr account. Tags consist of multiple characters…
How to Manage Tags on a Vultr Bare Metal Instance Learn how to create, apply, and manage tags to organize and filter your Vultr Bare Metal instances. Tagging enables the assignment of specific labels called tags on an instance for identification in your Vultr account. Tags consist of multiple characters…