Up-to-date reference of API arguments for DNS zone you can get at documentation portal (private zone) and documentation portal (public zone)
opentelekomcloud_dns_zone_v2¶
Use this data source to get the ID of an available OpenTelekomCloud DNS zone.
Example Usage¶
data "opentelekomcloud_dns_zone_v2" "zone_1" {
name = "example.com."
}
Argument Reference¶
zone_type- (Optional) The type of the zone:privateorpublic. This argument is required to matchprivatezones.name- (Optional) The name of the zone. A fuzzy search will be performed.description- (Optional) A description of the zone.email- (Optional) The email contact for the zone record.status- (Optional) The zone's status.ttl- (Optional) The time to live (TTL) of the zone.tags- (Optional) Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
Attributes Reference¶
In addition to all arguments above, the following attributes are exported:
masters- An array of master DNS servers.created_at- The time the zone was created.updated_at- The time the zone was last updated.serial- The serial number of the zone.pool_id- The ID of the pool hosting the zone.project_id- The project ID that owns the zone.