oci_opsi_news_report

This resource provides the News Report resource in Oracle Cloud Infrastructure Opsi service.

Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency.

Example Usage

resource "oci_opsi_news_report" "test_news_report" {
	#Required
	compartment_id = var.compartment_id
	content_types {

		#Optional
		capacity_planning_resources = var.news_report_content_types_capacity_planning_resources
		sql_insights_fleet_analysis_resources = var.news_report_content_types_sql_insights_fleet_analysis_resources
		sql_insights_performance_degradation_resources = var.news_report_content_types_sql_insights_performance_degradation_resources
		sql_insights_plan_changes_resources = var.news_report_content_types_sql_insights_plan_changes_resources
		sql_insights_top_databases_resources = var.news_report_content_types_sql_insights_top_databases_resources
		sql_insights_top_sql_by_insights_resources = var.news_report_content_types_sql_insights_top_sql_by_insights_resources
		sql_insights_top_sql_resources = var.news_report_content_types_sql_insights_top_sql_resources
	}
	description = var.news_report_description
	locale = var.news_report_locale
	name = var.news_report_name
	news_frequency = var.news_report_news_frequency
	ons_topic_id = oci_opsi_ons_topic.test_ons_topic.id

	#Optional
	are_child_compartments_included = var.news_report_are_child_compartments_included
	day_of_week = var.news_report_day_of_week
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	status = var.news_report_status
}

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

Import

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

$ terraform import oci_opsi_news_report.test_news_report "id"