Use this data source to access information about an existing DNS SOA Record within Azure DNS.
data "azurerm_dns_soa_record" "example" {
zone_name = "test-zone"
resource_group_name = "test-rg"
}
output "dns_soa_record_id" {
value = data.azurerm_dns_soa_record.example.id
}
resource_group_name
- Specifies the resource group where the DNS Zone (parent resource) exists.
zone_name
- Specifies the DNS Zone where the resource exists.
id
- The DNS SOA Record ID.
name
- The name of the DNS SOA Record.
fqdn
- The FQDN of the DNS SOA Record.
ttl
- The Time To Live (TTL) of the DNS record in seconds.
email
- The email contact for the SOA record.
host_name
- The domain name of the authoritative name server for the SOA record.
expire_time
- The expire time for the SOA record.
minimum_ttl
- The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration.
refresh_time
- The refresh time for the SOA record.
retry_time
- The retry time for the SOA record.
serial_number
- The serial number for the SOA record.
tags
- A mapping of tags assigned to the resource.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the DNS SOA Record.