ionoscloud_dns_zone
Creates and manages DNS Zone objects.
Manages a DNS Zone.
⚠️ Only tokens are accepted for authorization in the ionoscloud_dns_zone resource. Please ensure you are using tokens as other methods will not be valid.
Example Usage
resource "ionoscloud_dns_zone" "example" {
name = "example.com"
description = "description"
enabled = false
}Argument reference
name- (Required)[string] The name of the DNS Zone. This property is immutable.description- (Optional)[string] The description for the DNS Zone.enabled- (Optional)[bool] Indicates if the DNS Zone is active or not. Default istrue.
Import
In order to import a DNS Zone, you can define an empty DNS Zone resource in the plan:
resource "ionoscloud_dns_zone" "example" {
}The resource can be imported using the zone_id, for example:
In Terraform v1.12.0 and later, the import block can also be used with the identity attribute:
Identity Schema
Required
id(String) The UUID of the DNS Zone.
Query (List Resource)
DNS Zones can be listed using terraform query (requires Terraform 1.14+). List blocks must be placed in a dedicated query file, whose name ends in .tfquery.hcl (for example queries.tfquery.hcl).
See the ionoscloud_dns_zone list resource documentation for filters and the full attribute reference.
Last updated
