oci_apiaccesscontrol_privileged_api_request

This resource provides the Privileged Api Request resource in Oracle Cloud Infrastructure Apiaccesscontrol service.

Creates a PrivilegedApiRequest.

Example Usage

resource "oci_apiaccesscontrol_privileged_api_request" "test_privileged_api_request" {
	#Required
	privileged_operation_list {
		#Required
		api_name = oci_apigateway_api.test_api.name

		#Optional
		attribute_names = var.privileged_api_request_privileged_operation_list_attribute_names
	}
	reason_summary = var.privileged_api_request_reason_summary
	resource_id = oci_cloud_guard_resource.test_resource.id

	#Optional
	compartment_id = var.compartment_id
	defined_tags = {"Operations.CostCenter"= "42"}
	duration_in_hrs = var.privileged_api_request_duration_in_hrs
	freeform_tags = {"Department"= "Finance"}
	notification_topic_id = oci_ons_notification_topic.test_notification_topic.id
	reason_detail = var.privileged_api_request_reason_detail
	severity = var.privileged_api_request_severity
	sub_resource_name_list = var.privileged_api_request_sub_resource_name_list
	ticket_numbers = var.privileged_api_request_ticket_numbers
	time_requested_for_future_access = var.privileged_api_request_time_requested_for_future_access
}

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

Import

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

$ terraform import oci_apiaccesscontrol_privileged_api_request.test_privileged_api_request "id"