2.2 KiB
2.2 KiB
| page_title | subcategory | description |
|---|---|---|
| stackit_dns_zone Resource - stackit | DNS Zone resource schema. |
stackit_dns_zone (Resource)
DNS Zone resource schema.
Example Usage
resource "stackit_dns_zone" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "Example zone"
dns_name = "example-zone.com"
contact_email = "aa@bb.ccc"
type = "primary"
acl = "192.168.0.0/24"
description = "Example description"
default_ttl = 1230
}
# Only use the import statement, if you want to import an existing dns zone
import {
to = stackit_dns_zone.import-example
id = "${var.project_id},${var.zone_id}"
}
Schema
Required
dns_name(String) The zone name. E.g.example.comname(String) The user given name of the zone.project_id(String) STACKIT project ID to which the dns zone is associated.
Optional
acl(String) The access control list. E.g.0.0.0.0/0,::/0active(Boolean)contact_email(String) A contact e-mail for the zone.default_ttl(Number) Default time to live. E.g. 3600.description(String) Description of the zone.expire_time(Number) Expire time. E.g. 1209600.is_reverse_zone(Boolean) Specifies, if the zone is a reverse zone or not. Defaults tofalsenegative_cache(Number) Negative caching. E.g. 60primaries(List of String) Primary name server for secondary zone. E.g. ["1.2.3.4"]refresh_time(Number) Refresh time. E.g. 3600retry_time(Number) Retry time. E.g. 600type(String) Zone type. Defaults toprimary. Possible values are:primary,secondary.
Read-Only
id(String) Terraform's internal resource ID. It is structured as "project_id,zone_id".primary_name_server(String) Primary name server. FQDN.record_count(Number) Record count how many records are in the zone.serial_number(Number) Serial number. E.g.2022111400.state(String) Zone state. E.g.CREATE_SUCCEEDED.visibility(String) Visibility of the zone. E.g.public.zone_id(String) The zone ID.