hcloud-server-tf/data.tf

19 lines
419 B
Terraform
Raw Normal View History

2022-09-01 19:43:01 +00:00
data "cloudflare_zones" "zones" {
for_each = toset(try(var.cloudflare_zones, []))
filter {
name = each.key
status = "active"
}
}
data "restapi_object" "ucs_zones" {
for_each = toset(try(var.ucs_zones, []))
query_string = "filter=univentionObjectType=dns/forward_zone"
path = "/dns/forward_zone/"
search_key = "id"
search_value = each.key
results_key = "_embedded/udm:object"
}