oci_management_dashboard_management_saved_search

This resource provides the Management Saved Search resource in Oracle Cloud Infrastructure Management Dashboard service.

Creates a new saved search. Here’s an example of how you can use CLI to create a saved search. For information on the details that must be passed to CREATE, you can use the GET API to obtain the Create.json file: oci management-dashboard saved-search get --management-saved-search-id ocid1.managementsavedsearch.oc1..savedsearchId1 --query data > Create.json. You can then modify the Create.json file by removing the id attribute and making other required changes, and use the oci management-dashboard saved-search create command.

Example Usage

resource "oci_management_dashboard_management_saved_search" "test_management_saved_search" {
	#Required
	compartment_id = var.compartment_id
	data_config = var.management_saved_search_data_config
	description = var.management_saved_search_description
	display_name = var.management_saved_search_display_name
	is_oob_saved_search = var.management_saved_search_is_oob_saved_search
	metadata_version = var.management_saved_search_metadata_version
	nls = var.management_saved_search_nls
	provider_id = oci_management_dashboard_provider.test_provider.id
	provider_name = var.management_saved_search_provider_name
	provider_version = var.management_saved_search_provider_version
	screen_image = var.management_saved_search_screen_image
	type = var.management_saved_search_type
	ui_config = var.management_saved_search_ui_config
	widget_template = var.management_saved_search_widget_template
	widget_vm = var.management_saved_search_widget_vm
	drilldown_config = var.management_saved_search_drilldown_config
	parameters_config = var.management_saved_search_parameters_config

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	id = var.management_saved_search_id
}

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

Import

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

$ terraform import oci_management_dashboard_management_saved_search.test_management_saved_search "id"