[ Web Proxy ]
URL:
Viewing: https://docs.digitalocean.com/reference/terraform/reference/data-sources/tags/ [Back]  [Original]

digitalocean_tags | DigitalOcean Documentation

For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).

digitalocean_tags

Generated on 18 Aug 2026 from Terraform version v2.100.0

Copy page as Markdown View page as Markdown

Returns a list of tags in your DigitalOcean account, with the ability to filter and sort the results. If no filters are specified, all tags will be returned.

Example Usage

data "digitalocean_tags" "list" {
  sort {
    key       = "total_resource_count"
    direction = "asc"
  }
}

output "sorted_tags" {
  value = data.digitalocean_tags.list.tags
}

Argument Reference

The following arguments are supported:

filter supports the following arguments:

sort supports the following arguments:

Attributes Reference

The following attributes are exported for each tag:

In this article...


We can't find any results for your search.

Try using different keywords or simplifying your search terms.


Web Proxy Viewer  |  New URL  |  Original Page