digitalocean_dedicated_inference_accelerators
Generated on 6 May 2026
from Terraform version
v2.85.1
Returns a list of accelerators (GPUs) attached to a dedicated inference endpoint, with the ability to filter and sort the results.
Example Usage
data "digitalocean_dedicated_inference_accelerators" "example" {
dedicated_inference_id = digitalocean_dedicated_inference.example.id
}
output "accelerators" {
value = data.digitalocean_dedicated_inference_accelerators.example.accelerators
}Filter by slug
data "digitalocean_dedicated_inference_accelerators" "filtered" {
dedicated_inference_id = digitalocean_dedicated_inference.example.id
filter {
key = "slug"
values = ["gpu-h100x1-80gb"]
}
}Argument Reference
dedicated_inference_id- (Required) The ID of the dedicated inference endpoint to list accelerators for.filter- (Optional) Filter the results. Thefilterblock is documented below.sort- (Optional) Sort the results. Thesortblock is documented below.
filter supports the following arguments:
key- (Required) Filter the accelerators by this key. This may be one ofid,name,slug,status,created_at.values- (Required) A list of values to match against thekeyfield.match_by- (Optional) One ofexact(default),re, orsubstring.all- (Optional) Set totrueto require that a field match all of thevaluesinstead of just one.
sort supports the following arguments:
key- (Required) Sort the accelerators by this key. This may be one of the keys listed infilter.direction- (Optional) The sort direction. This may be eitherascordesc.
Attributes Reference
accelerators- A list of accelerators satisfying anyfilterandsortcriteria. Each element contains:id- The unique ID of the accelerator.name- The name of the accelerator.slug- The slug identifier for the accelerator type.status- The current status of the accelerator.created_at- The date and time when the accelerator was created.