oci_data_safe_audit_trail_management
This resource provides the Audit Trail Management resource in Oracle Cloud Infrastructure Data Safe service.
Updates one or more attributes of the specified audit trail.
Example Usage
resource "oci_data_safe_audit_trail_management" "test_audit_trail_management" {
#Required
compartment_id = var.compartment_id
target_id = oci_data_safe_target_database.test_target_database.id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
description = var.audit_trail_management_description
display_name = var.audit_trail_management_display_name
freeform_tags = {"Department"= "Finance"}
is_auto_purge_enabled = var.audit_trail_management_is_auto_purge_enabled
}
Argument Reference
The following arguments are supported:
target_id
- (Required) The OCID of the target.compartment_id
- (Required) The OCID of the compartment that contains the target.defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:{"Operations.CostCenter": "42"}
description
- (Optional) (Updatable) The description of the audit trail.display_name
- (Optional) (Updatable) The display name of the audit trail. The name does not have to be unique, and it’s changeable.freeform_tags
- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:{"Department": "Finance"}
is_auto_purge_enabled
- (Optional) (Updatable) Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database’s audit trail does not become too large.state
- (Optional) (Updatable) The target state for the Audit Trail Management. Could be set toACTIVE
orINACTIVE
.start_trigger
- (Optional) (Updatable) An optional property when set to true triggers Start.stop_trigger
- (Optional) (Updatable) An optional property when set to true triggers Stop.resume_trigger
- (Optional) (Updatable) An optional property when set to true triggers Resume.audit_collection_start_time
- (Optional) The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** 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:
audit_collection_start_time
- The date from which the audit trail must start collecting data, in the format defined by RFC3339.audit_profile_id
- The OCID of the parent audit.compartment_id
- The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:{"Operations.CostCenter": "42"}
description
- The description of the audit trail.display_name
- The display name of the audit trail.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:{"Department": "Finance"}
id
- The OCID of the audit trail.is_auto_purge_enabled
- Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database’s audit trail does not become too large.lifecycle_details
- Details about the current state of the audit trail in Data Safe.state
- The current state of the audit trail.status
- The current sub-state of the audit trail.system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"orcl-cloud.free-tier-retained": "true"}
target_id
- The OCID of the Data Safe target for which the audit trail is created.time_created
- The date and time the audit trail was created, in the format defined by RFC3339.time_last_collected
- The date and time until when the audit events were collected from the target database by the Data Safe audit trail collection process, in the format defined by RFC3339.time_updated
- The date and time the audit trail was updated, in the format defined by RFC3339.trail_location
- An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.work_request_id
- The OCID of the workrequest for audit trail which collects audit records.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Audit Trail Management
* update
- (Defaults to 20 minutes), when updating the Audit Trail Management
* delete
- (Defaults to 20 minutes), when destroying the Audit Trail Management
Import
Import is not supported for this resource.