oci.DataSafe.AuditTrail
Explore with Pulumi AI
This resource provides the Audit Trail resource in Oracle Cloud Infrastructure Data Safe service.
Updates one or more attributes of the specified audit trail.
Create AuditTrail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuditTrail(name: string, args: AuditTrailArgs, opts?: CustomResourceOptions);
@overload
def AuditTrail(resource_name: str,
args: AuditTrailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuditTrail(resource_name: str,
opts: Optional[ResourceOptions] = None,
audit_trail_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_auto_purge_enabled: Optional[bool] = None,
resume_trigger: Optional[int] = None,
state: Optional[str] = None)
func NewAuditTrail(ctx *Context, name string, args AuditTrailArgs, opts ...ResourceOption) (*AuditTrail, error)
public AuditTrail(string name, AuditTrailArgs args, CustomResourceOptions? opts = null)
public AuditTrail(String name, AuditTrailArgs args)
public AuditTrail(String name, AuditTrailArgs args, CustomResourceOptions options)
type: oci:DataSafe:AuditTrail
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AuditTrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AuditTrailArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuditTrailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuditTrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuditTrailArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var auditTrailResource = new Oci.DataSafe.AuditTrail("auditTrailResource", new()
{
AuditTrailId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
IsAutoPurgeEnabled = false,
ResumeTrigger = 0,
State = "string",
});
example, err := DataSafe.NewAuditTrail(ctx, "auditTrailResource", &DataSafe.AuditTrailArgs{
AuditTrailId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
IsAutoPurgeEnabled: pulumi.Bool(false),
ResumeTrigger: pulumi.Int(0),
State: pulumi.String("string"),
})
var auditTrailResource = new AuditTrail("auditTrailResource", AuditTrailArgs.builder()
.auditTrailId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.isAutoPurgeEnabled(false)
.resumeTrigger(0)
.state("string")
.build());
audit_trail_resource = oci.data_safe.AuditTrail("auditTrailResource",
audit_trail_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
is_auto_purge_enabled=False,
resume_trigger=0,
state="string")
const auditTrailResource = new oci.datasafe.AuditTrail("auditTrailResource", {
auditTrailId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
isAutoPurgeEnabled: false,
resumeTrigger: 0,
state: "string",
});
type: oci:DataSafe:AuditTrail
properties:
auditTrailId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
isAutoPurgeEnabled: false
resumeTrigger: 0
state: string
AuditTrail Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AuditTrail resource accepts the following input properties:
- Audit
Trail stringId - The OCID of the audit trail.
- Dictionary<string, string>
- (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 string
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (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 boolPurge Enabled - (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.
- Resume
Trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- State string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
- Audit
Trail stringId - The OCID of the audit trail.
- map[string]string
- (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 string
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- map[string]string
- (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 boolPurge Enabled - (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.
- Resume
Trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- State string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
- audit
Trail StringId - The OCID of the audit trail.
- Map<String,String>
- (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 String
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (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 BooleanPurge Enabled - (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.
- resume
Trigger Integer (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state String
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
- audit
Trail stringId - The OCID of the audit trail.
- {[key: string]: string}
- (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 string
- (Updatable) The description of the audit trail.
- display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (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 booleanPurge Enabled - (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.
- resume
Trigger number (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
- audit_
trail_ strid - The OCID of the audit trail.
- Mapping[str, str]
- (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 str
- (Updatable) The description of the audit trail.
- display_
name str - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (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_ boolpurge_ enabled - (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.
- resume_
trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state str
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
- audit
Trail StringId - The OCID of the audit trail.
- Map<String>
- (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 String
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String>
- (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 BooleanPurge Enabled - (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.
- resume
Trigger Number (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state String
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuditTrail resource produces the following output properties:
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId - The OCID of the parent audit.
- Compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Peer
Target intDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job stringStatus - The current status of the audit trail purge job.
- Purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- Status string
- The current sub-state of the audit trail.
- Dictionary<string, string>
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Trail
Source string - The underlying source of unified audit trail.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId - The OCID of the parent audit.
- Compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Peer
Target intDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job stringStatus - The current status of the audit trail purge job.
- Purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- Status string
- The current sub-state of the audit trail.
- map[string]string
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Trail
Source string - The underlying source of unified audit trail.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId - The OCID of the parent audit.
- compartment
Id String - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- peer
Target IntegerDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job StringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job StringStatus - The current status of the audit trail purge job.
- purge
Job StringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- status String
- The current sub-state of the audit trail.
- Map<String,String>
- 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 String - The OCID of the Data Safe target for which the audit trail is created.
- time
Created String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected - 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source String - The underlying source of unified audit trail.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile stringId - The OCID of the parent audit.
- compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- peer
Target numberDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job stringStatus - The current status of the audit trail purge job.
- purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- status string
- The current sub-state of the audit trail.
- {[key: string]: string}
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source string - The underlying source of unified audit trail.
- work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit_
collection_ strstart_ time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit_
profile_ strid - The OCID of the parent audit.
- compartment_
id str - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the audit trail in Data Safe.
- peer_
target_ intdatabase_ key - The secondary id assigned for the peer database registered with Data Safe.
- purge_
job_ strdetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge_
job_ strstatus - The current status of the audit trail purge job.
- purge_
job_ strtime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- status str
- The current sub-state of the audit trail.
- Mapping[str, str]
- 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 str - The OCID of the Data Safe target for which the audit trail is created.
- time_
created str - The date and time the audit trail was created, in the format defined by RFC3339.
- time_
last_ strcollected - 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 str - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail_
location str - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail_
source str - The underlying source of unified audit trail.
- work_
request_ strid - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId - The OCID of the parent audit.
- compartment
Id String - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- peer
Target NumberDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job StringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job StringStatus - The current status of the audit trail purge job.
- purge
Job StringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- status String
- The current sub-state of the audit trail.
- Map<String>
- 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 String - The OCID of the Data Safe target for which the audit trail is created.
- time
Created String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected - 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source String - The underlying source of unified audit trail.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
Look up Existing AuditTrail Resource
Get an existing AuditTrail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuditTrailState, opts?: CustomResourceOptions): AuditTrail
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_collection_start_time: Optional[str] = None,
audit_profile_id: Optional[str] = None,
audit_trail_id: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_auto_purge_enabled: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
peer_target_database_key: Optional[int] = None,
purge_job_details: Optional[str] = None,
purge_job_status: Optional[str] = None,
purge_job_time: Optional[str] = None,
resume_trigger: Optional[int] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_id: Optional[str] = None,
time_created: Optional[str] = None,
time_last_collected: Optional[str] = None,
time_updated: Optional[str] = None,
trail_location: Optional[str] = None,
trail_source: Optional[str] = None,
work_request_id: Optional[str] = None) -> AuditTrail
func GetAuditTrail(ctx *Context, name string, id IDInput, state *AuditTrailState, opts ...ResourceOption) (*AuditTrail, error)
public static AuditTrail Get(string name, Input<string> id, AuditTrailState? state, CustomResourceOptions? opts = null)
public static AuditTrail get(String name, Output<String> id, AuditTrailState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId - The OCID of the parent audit.
- Audit
Trail stringId - The OCID of the audit trail.
- Compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Dictionary<string, string>
- (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 string
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (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 boolPurge Enabled - (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.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Peer
Target intDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job stringStatus - The current status of the audit trail purge job.
- Purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- Resume
Trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- State string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - Status string
- The current sub-state of the audit trail.
- Dictionary<string, string>
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Trail
Source string - The underlying source of unified audit trail.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId - The OCID of the parent audit.
- Audit
Trail stringId - The OCID of the audit trail.
- Compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- map[string]string
- (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 string
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- map[string]string
- (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 boolPurge Enabled - (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.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Peer
Target intDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job stringStatus - The current status of the audit trail purge job.
- Purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- Resume
Trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- State string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - Status string
- The current sub-state of the audit trail.
- map[string]string
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Trail
Source string - The underlying source of unified audit trail.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId - The OCID of the parent audit.
- audit
Trail StringId - The OCID of the audit trail.
- compartment
Id String - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Map<String,String>
- (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 String
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (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 BooleanPurge Enabled - (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.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- peer
Target IntegerDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job StringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job StringStatus - The current status of the audit trail purge job.
- purge
Job StringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- resume
Trigger Integer (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state String
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - status String
- The current sub-state of the audit trail.
- Map<String,String>
- 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 String - The OCID of the Data Safe target for which the audit trail is created.
- time
Created String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected - 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source String - The underlying source of unified audit trail.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection stringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile stringId - The OCID of the parent audit.
- audit
Trail stringId - The OCID of the audit trail.
- compartment
Id string - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- {[key: string]: string}
- (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 string
- (Updatable) The description of the audit trail.
- display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (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 booleanPurge Enabled - (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.
- lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- peer
Target numberDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job stringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job stringStatus - The current status of the audit trail purge job.
- purge
Job stringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- resume
Trigger number (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state string
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - status string
- The current sub-state of the audit trail.
- {[key: string]: string}
- 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 string - The OCID of the Data Safe target for which the audit trail is created.
- time
Created string - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last stringCollected - 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location string - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source string - The underlying source of unified audit trail.
- work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit_
collection_ strstart_ time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit_
profile_ strid - The OCID of the parent audit.
- audit_
trail_ strid - The OCID of the audit trail.
- compartment_
id str - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Mapping[str, str]
- (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 str
- (Updatable) The description of the audit trail.
- display_
name str - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (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_ boolpurge_ enabled - (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.
- lifecycle_
details str - Details about the current state of the audit trail in Data Safe.
- peer_
target_ intdatabase_ key - The secondary id assigned for the peer database registered with Data Safe.
- purge_
job_ strdetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge_
job_ strstatus - The current status of the audit trail purge job.
- purge_
job_ strtime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- resume_
trigger int (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state str
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - status str
- The current sub-state of the audit trail.
- Mapping[str, str]
- 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 str - The OCID of the Data Safe target for which the audit trail is created.
- time_
created str - The date and time the audit trail was created, in the format defined by RFC3339.
- time_
last_ strcollected - 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 str - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail_
location str - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail_
source str - The underlying source of unified audit trail.
- work_
request_ strid - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId - The OCID of the parent audit.
- audit
Trail StringId - The OCID of the audit trail.
- compartment
Id String - The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource.
- Map<String>
- (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 String
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String>
- (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 BooleanPurge Enabled - (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.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- peer
Target NumberDatabase Key - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job StringDetails - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job StringStatus - The current status of the audit trail purge job.
- purge
Job StringTime - The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339.
- resume
Trigger Number (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value.
** 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
- state String
- (Updatable) The target state for the Audit Trail. Could be set to
ACTIVE
orINACTIVE
. - status String
- The current sub-state of the audit trail.
- Map<String>
- 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 String - The OCID of the Data Safe target for which the audit trail is created.
- time
Created String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected - 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String - An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- trail
Source String - The underlying source of unified audit trail.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
Import
AuditTrails can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/auditTrail:AuditTrail test_audit_trail "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.