Data Source: oci_dns_rrset
This data source provides details about a specific Rrset resource in Oracle Cloud Infrastructure DNS service.
Gets a list of all records in the specified RRSet. The results are sorted by recordHash
by default. For
private zones, the scope query parameter is required with a value of PRIVATE
. When the zone name is
provided as a path parameter and PRIVATE
is used for the scope query parameter then the viewId query
parameter is required.
Example Usage
data "oci_dns_rrset" "test_rrset" {
#Required
domain = var.rrset_domain
rtype = var.rrset_rtype
zone_name_or_id = oci_dns_zone.test_zone.id
#Optional
compartment_id = var.compartment_id
scope = var.rrset_scope
view_id = oci_dns_view.test_view.id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Optional) The OCID of the compartment the resource belongs to.domain
- (Required) The target fully-qualified domain name (FQDN) within the target zone.rtype
- (Required) The type of the target RRSet within the target zone.scope
- (Optional) Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS andPRIVATE
when listing private Rrsets.view_id
- (Optional) The OCID of the view the resource is associated with.zone_name_or_id
- (Required) The name or OCID of the target zone.zone_version
- (Optional) The version of the zone for which data is requested.
Attributes Reference
The following attributes are exported:
items
-domain
- The fully qualified domain name where the record can be located.is_protected
- A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.rdata
- The record’s data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Typesrecord_hash
- A unique identifier for the record within its zone.rrset_version
- The latest version of the record’s zone in which its RRSet differs from the preceding version.rtype
- The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.ttl
- The Time To Live for the record, in seconds.