digitalocean_tags

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: