oci_database_management_external_db_system_discovery

This resource provides the External Db System Discovery resource in Oracle Cloud Infrastructure Database Management service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-management/latest/ExternalDbSystemDiscovery

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databasemanagement

Creates an external DB system discovery resource and initiates the discovery process.

Patches the external DB system discovery specified by externalDbSystemDiscoveryId.

Example Usage

resource "oci_database_management_external_db_system_discovery" "test_external_db_system_discovery" {
	#Required
	agent_id = oci_cloud_bridge_agent.test_agent.id
	compartment_id = var.compartment_id
	external_db_system_discovery_id = var.external_db_system_discovery_external_db_system_discovery_id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.external_db_system_discovery_display_name
	freeform_tags = {"Department"= "Finance"}
	patch_operations {
		#Required
		operation = var.external_db_system_discovery_patch_operations_operation
		selection = var.external_db_system_discovery_patch_operations_selection

		#Optional
		value = var.external_db_system_discovery_patch_operations_value
	}
}

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

Import

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

$ terraform import oci_database_management_external_db_system_discovery.test_external_db_system_discovery "id"