cm-bot | b9c4dd4 | 2024-09-06 12:30:25 -0700 | [diff] [blame] | 1 | --- |
| 2 | subcategory: "Cloud DNS" |
| 3 | description: |- |
| 4 | Provides access to a list of zones within Google Cloud DNS |
| 5 | --- |
| 6 | |
| 7 | # google_dns_managed_zones |
| 8 | |
| 9 | Provides access to a list of zones within Google Cloud DNS. |
| 10 | For more information see |
| 11 | [the official documentation](https://cloud.google.com/dns/zones/) |
| 12 | and |
| 13 | [API](https://cloud.google.com/dns/api/v1/managedZones). |
| 14 | |
| 15 | ```hcl |
| 16 | data "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 | |
| 27 | The following attributes are exported: |
| 28 | |
| 29 | * `managed_zones` - A list of managed zones. |
| 30 | |
| 31 | To 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. |