oci_cloud_guard_adhoc_query

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

Creates a AdhocQuery resource.

Example Usage

resource "oci_cloud_guard_adhoc_query" "test_adhoc_query" {
	#Required
	adhoc_query_details {
		#Required
		adhoc_query_resources {

			#Optional
			region = var.adhoc_query_adhoc_query_details_adhoc_query_resources_region
			resource_ids = var.adhoc_query_adhoc_query_details_adhoc_query_resources_resource_ids
			resource_type = var.adhoc_query_adhoc_query_details_adhoc_query_resources_resource_type
		}
		query = var.adhoc_query_adhoc_query_details_query
	}
	compartment_id = var.compartment_id

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

Import

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

$ terraform import oci_cloud_guard_adhoc_query.test_adhoc_query "id"