oci_database_data_guard_association

This resource provides the Data Guard Association resource in Oracle Cloud Infrastructure Database service.

Creates a new Data Guard association. A Data Guard association represents the replication relationship between the specified database and a peer database. For more information, see Using Oracle Data Guard.

All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource’s OCID by using a List API operation on that resource type, or by viewing the resource in the Console. For more information, see Resource Identifiers.

Example Usage

resource "oci_database_data_guard_association" "test_data_guard_association" {
	#Required
	creation_type = var.data_guard_association_creation_type
	database_admin_password = var.data_guard_association_database_admin_password
	database_id = oci_database_database.test_database.id
	delete_standby_db_home_on_delete = var.data_guard_association_delete_standby_db_home_on_delete
	protection_mode = var.data_guard_association_protection_mode
	transport_type = var.data_guard_association_transport_type

	#Optional
	availability_domain = var.data_guard_association_availability_domain
	backup_network_nsg_ids = var.data_guard_association_backup_network_nsg_ids
	cpu_core_count = var.data_guard_association_cpu_core_count
	database_defined_tags = var.data_guard_association_database_defined_tags
	database_freeform_tags = var.data_guard_association_database_freeform_tags
	data_collection_options {

		#Optional
		is_diagnostics_events_enabled = var.data_guard_association_data_collection_options_is_diagnostics_events_enabled
		is_health_monitoring_enabled = var.data_guard_association_data_collection_options_is_health_monitoring_enabled
		is_incident_logs_enabled = var.data_guard_association_data_collection_options_is_incident_logs_enabled
	}
	database_software_image_id = oci_database_database_software_image.test_database_software_image.id
	db_system_defined_tags = var.data_guard_association_db_system_defined_tags
	db_system_freeform_tags = var.data_guard_association_db_system_freeform_tags
	display_name = var.data_guard_association_display_name
	domain = var.data_guard_association_domain
	fault_domains = var.data_guard_association_fault_domains
	hostname = var.data_guard_association_hostname
	is_active_data_guard_enabled = var.data_guard_association_is_active_data_guard_enabled
	license_model = var.data_guard_association_license_model
	node_count = var.data_guard_association_node_count
	nsg_ids = var.data_guard_association_nsg_ids
	peer_db_home_id = oci_database_db_home.test_db_home.id
	peer_db_system_id = oci_database_db_system.test_db_system.id
	peer_db_unique_name = var.data_guard_association_peer_db_unique_name
	peer_sid_prefix = var.data_guard_association_peer_sid_prefix
	peer_vm_cluster_id = oci_database_vm_cluster.test_vm_cluster.id
	private_ip = var.data_guard_association_private_ip
	shape = var.data_guard_association_shape
	storage_volume_performance_mode = var.data_guard_association_storage_volume_performance_mode
	subnet_id = oci_core_subnet.test_subnet.id
	time_zone = var.data_guard_association_time_zone
}

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 2 hours), when creating the Data Guard Association * update - (Defaults to 2 hours), when updating the Data Guard Association * delete - (Defaults to 2 hours), when destroying the Data Guard Association

Import

Import is not supported for this resource.