oci_data_safe_discovery_job

This resource provides the Discovery Job resource in Oracle Cloud Infrastructure Data Safe service.

Performs incremental data discovery for the specified sensitive data model. It uses the target database associated with the sensitive data model. After performing data discovery, you can use ListDiscoveryJobResults to view the discovery results, PatchDiscoveryJobResults to specify the action you want perform on these results, and then ApplyDiscoveryJobResults to process the results and apply them to the sensitive data model.

Example Usage

resource "oci_data_safe_discovery_job" "test_discovery_job" {
	#Required
	compartment_id = var.compartment_id
	sensitive_data_model_id = oci_data_safe_sensitive_data_model.test_sensitive_data_model.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	discovery_type = var.discovery_job_discovery_type
	display_name = var.discovery_job_display_name
	freeform_tags = {"Department"= "Finance"}
	is_app_defined_relation_discovery_enabled = var.discovery_job_is_app_defined_relation_discovery_enabled
	is_include_all_schemas = var.discovery_job_is_include_all_schemas
	is_include_all_sensitive_types = var.discovery_job_is_include_all_sensitive_types
	is_sample_data_collection_enabled = var.discovery_job_is_sample_data_collection_enabled
	schemas_for_discovery = var.discovery_job_schemas_for_discovery
	sensitive_type_ids_for_discovery = var.discovery_job_sensitive_type_ids_for_discovery
	tables_for_discovery {
		#Required
		schema_name = var.discovery_job_tables_for_discovery_schema_name

		#Optional
		table_names = var.discovery_job_tables_for_discovery_table_names
	}
}

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 Discovery Job * update - (Defaults to 20 minutes), when updating the Discovery Job * delete - (Defaults to 20 minutes), when destroying the Discovery Job

Import

DiscoveryJobs can be imported using the id, e.g.

$ terraform import oci_data_safe_discovery_job.test_discovery_job "id"