oci_dns_record

Deprecated. Use oci_dns_rrset instead.

This resource provides the Record resource in Oracle Cloud Infrastructure DNS service.

Replaces records in the specified zone with the records specified in the request body. If a specified record does not exist, it will be created. If the record exists, then it will be updated to represent the record in the body of the request. If a record in the zone does not exist in the request body, the record will be removed from the zone.

Example Usage

resource "oci_dns_record" "test_record" {
	#Required
	zone_name_or_id = oci_dns_zone_name_or.test_zone_name_or.id
	domain = var.record_items_domain
	rtype = var.record_items_rtype

	#Optional
	compartment_id = var.compartment_id
	rdata = var.record_items_rdata
	ttl = var.record_items_ttl
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Record * update - (Defaults to 20 minutes), when updating the Record * delete - (Defaults to 20 minutes), when destroying the Record

Import

Import is not supported for this resource.