dtz_containers_domain
last updated: 2025-10-27
The dtz_containers_domain data source returns information about a registered Containers domain. If name is provided it returns that domain. If name is omitted, it returns the system-generated domain ending with .containers.dtz.dev when present; otherwise it falls back to the first domain in the list.
Example Usage
# Return the default (system) domain when present, else the first
data "dtz_containers_domain" "default" {}
output "default_domain" {
value = data.dtz_containers_domain.default.name
}
# Return a specific domain by name
data "dtz_containers_domain" "example" {
name = "example.com"
}
output "example_domain_verified" {
value = data.dtz_containers_domain.example.verified
}
Schema
Optional
name(String) Domain name to fetch. If omitted, the system domain is returned.
Read-Only
context_id(String)created(String)verified(Boolean)