blob: 0066916ad2fbbaafd4d4b51bebc2c64b31577dbe [file] [log] [blame]
cm-botb9c4dd42024-09-06 12:30:25 -07001---
2subcategory: "Cloud DNS"
3description: |-
4 Provides access to a list of zones within Google Cloud DNS
5---
6
7# google_dns_managed_zones
8
9Provides access to a list of zones within Google Cloud DNS.
10For more information see
11[the official documentation](https://cloud.google.com/dns/zones/)
12and
13[API](https://cloud.google.com/dns/api/v1/managedZones).
14
15```hcl
16data "google_dns_managed_zones" "zones" {
17 project = "my-project-id"
18}
19```
20
21## Argument Reference
22
23* `project` - (Optional) The ID of the project containing Google Cloud DNS zones. If this is not provided the default project will be used.
24
25## Attributes Reference
26
27The following attributes are exported:
28
29* `managed_zones` - A list of managed zones.
30
31To see the attributes available for each zone in the list, see the singular [google_dns_managed_zone](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/dns_managed_zone#attributes-reference) data source for details of the available attributes.