feat(dns): add option to get dns_zone by dns_name (#856)

* feat: add option to get dns_zone by dns_name
This commit is contained in:
Marcel Jacek 2025-05-22 11:06:04 +02:00 committed by GitHub
parent d7b6530b87
commit 913cc1415e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 159 additions and 43 deletions

View file

@ -25,6 +25,10 @@ data "stackit_dns_zone" "example" {
### Required
- `project_id` (String) STACKIT project ID to which the dns zone is associated.
### Optional
- `dns_name` (String) The zone name. E.g. `example.com`
- `zone_id` (String) The zone ID.
### Read-Only
@ -34,7 +38,6 @@ data "stackit_dns_zone" "example" {
- `contact_email` (String) A contact e-mail for the zone.
- `default_ttl` (Number) Default time to live.
- `description` (String) Description of the zone.
- `dns_name` (String) The zone name. E.g. `example.com`
- `expire_time` (Number) Expire time.
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`zone_id`".
- `is_reverse_zone` (Boolean) Specifies, if the zone is a reverse zone or not.