Skip to content
This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
layout page_title sidebar_current description
TelefonicaOpenCloud: telefonicaopencloud_dns_zone_v2
Manages a DNS zone in the TelefonicaOpenCloud DNS Service


Manages a DNS zone in the TelefonicaOpenCloud DNS Service.

Example Usage

Automatically detect the correct network

resource "telefonicaopencloud_dns_zone_v2" "" {
  name = ""
  email = ""
  description = "An example zone"
  ttl = 3000
  type = "PRIMARY"

Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

  • name - (Required) The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

  • email - (Optional) The email contact for the zone record.

  • type - (Optional) The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

  • attributes - (Optional) Attributes for the DNS Service scheduler. Changing this creates a new zone.

  • ttl - (Optional) The time to live (TTL) of the zone.

  • description - (Optional) A description of the zone.

  • masters - (Optional) An array of master DNS servers. For when type is SECONDARY.

  • value_specs - (Optional) Map of additional options. Changing this creates a new zone.

Attributes Reference

The following attributes are exported:

  • region - See Argument Reference above.
  • name - See Argument Reference above.
  • email - See Argument Reference above.
  • type - See Argument Reference above.
  • attributes - See Argument Reference above.
  • ttl - See Argument Reference above.
  • description - See Argument Reference above.
  • masters - See Argument Reference above.
  • value_specs - See Argument Reference above.


This resource can be imported by specifying the zone ID:

$ terraform import telefonicaopencloud_dns_zone_v2.zone_1 <zone_id>