Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.07 KB

File metadata and controls

46 lines (33 loc) · 1.07 KB
subcategory layout page_title sidebar_current description
Cloud DNS
ionoscloud
IonosCloud: ionoscloud_dns_zone
docs-resource-dns_zone
Creates and manages DNS Zone objects.

ionoscloud_dns_zone

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.
  • description - (Optional)[string] The description for the DNS Zone.
  • enabled - (Optional)[bool] Indicates if the DNS Zone is active or not. Default is true.

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:

terraform import ionoscloud_dns_zone.example {zone_id}