oci_database_tools_database_tools_sql_report

This resource provides the Database Tools Sql Report resource in Oracle Cloud Infrastructure Database Tools service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-tools/latest/DatabaseToolsSqlReport

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

Creates a new Database Tools Sql Report.

Example Usage

resource "oci_database_tools_database_tools_sql_report" "test_database_tools_sql_report" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.database_tools_sql_report_display_name
	source = var.database_tools_sql_report_source
	type = var.database_tools_sql_report_type

	#Optional
	columns {
		#Required
		description = var.database_tools_sql_report_columns_description
		name = var.database_tools_sql_report_columns_name
		type = var.database_tools_sql_report_columns_type
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.database_tools_sql_report_description
	freeform_tags = {"bar-key"= "value"}
	instructions = var.database_tools_sql_report_instructions
	locks {
		#Required
		type = var.database_tools_sql_report_locks_type

		#Optional
		message = var.database_tools_sql_report_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.database_tools_sql_report_locks_time_created
	}
	purpose = var.database_tools_sql_report_purpose
	variables {
		#Required
		description = var.database_tools_sql_report_variables_description
		name = var.database_tools_sql_report_variables_name
		type = var.database_tools_sql_report_variables_type
	}
}

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 Database Tools Sql Report * update - (Defaults to 20 minutes), when updating the Database Tools Sql Report * delete - (Defaults to 20 minutes), when destroying the Database Tools Sql Report

Import

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

$ terraform import oci_database_tools_database_tools_sql_report.test_database_tools_sql_report "id"