oci_cloud_guard_saved_query

This resource provides the Saved Query resource in Oracle Cloud Infrastructure Cloud Guard service.

Creates a SavedQuery resource.

Example Usage

resource "oci_cloud_guard_saved_query" "test_saved_query" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.saved_query_display_name
	query = var.saved_query_query

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.saved_query_description
	freeform_tags = {"bar-key"= "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 Saved Query * update - (Defaults to 20 minutes), when updating the Saved Query * delete - (Defaults to 20 minutes), when destroying the Saved Query

Import

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

$ terraform import oci_cloud_guard_saved_query.test_saved_query "id"