oci.DataSafe.getAuditTrails
Explore with Pulumi AI
This data source provides the list of Audit Trails in Oracle Cloud Infrastructure Data Safe service.
Gets a list of all audit trails.
The ListAuditTrails operation returns only the audit trails in the specified compartmentId
.
The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the
requestor has INSPECT permissions on at least one resource directly
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
Principal doesn’t have access to even one of the child compartments. This is valid only when
compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListAuditTrails on the
compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned.
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAuditTrails = oci.DataSafe.getAuditTrails({
compartmentId: compartmentId,
accessLevel: auditTrailAccessLevel,
auditTrailId: testAuditTrail.id,
compartmentIdInSubtree: auditTrailCompartmentIdInSubtree,
displayName: auditTrailDisplayName,
state: auditTrailState,
status: auditTrailStatus,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_audit_trails = oci.DataSafe.get_audit_trails(compartment_id=compartment_id,
access_level=audit_trail_access_level,
audit_trail_id=test_audit_trail["id"],
compartment_id_in_subtree=audit_trail_compartment_id_in_subtree,
display_name=audit_trail_display_name,
state=audit_trail_state,
status=audit_trail_status,
target_id=test_target["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetAuditTrails(ctx, &datasafe.GetAuditTrailsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(auditTrailAccessLevel),
AuditTrailId: pulumi.StringRef(testAuditTrail.Id),
CompartmentIdInSubtree: pulumi.BoolRef(auditTrailCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(auditTrailDisplayName),
State: pulumi.StringRef(auditTrailState),
Status: pulumi.StringRef(auditTrailStatus),
TargetId: pulumi.StringRef(testTarget.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAuditTrails = Oci.DataSafe.GetAuditTrails.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = auditTrailAccessLevel,
AuditTrailId = testAuditTrail.Id,
CompartmentIdInSubtree = auditTrailCompartmentIdInSubtree,
DisplayName = auditTrailDisplayName,
State = auditTrailState,
Status = auditTrailStatus,
TargetId = testTarget.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetAuditTrailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testAuditTrails = DataSafeFunctions.getAuditTrails(GetAuditTrailsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(auditTrailAccessLevel)
.auditTrailId(testAuditTrail.id())
.compartmentIdInSubtree(auditTrailCompartmentIdInSubtree)
.displayName(auditTrailDisplayName)
.state(auditTrailState)
.status(auditTrailStatus)
.targetId(testTarget.id())
.build());
}
}
variables:
testAuditTrails:
fn::invoke:
function: oci:DataSafe:getAuditTrails
arguments:
compartmentId: ${compartmentId}
accessLevel: ${auditTrailAccessLevel}
auditTrailId: ${testAuditTrail.id}
compartmentIdInSubtree: ${auditTrailCompartmentIdInSubtree}
displayName: ${auditTrailDisplayName}
state: ${auditTrailState}
status: ${auditTrailStatus}
targetId: ${testTarget.id}
Using getAuditTrails
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAuditTrails(args: GetAuditTrailsArgs, opts?: InvokeOptions): Promise<GetAuditTrailsResult>
function getAuditTrailsOutput(args: GetAuditTrailsOutputArgs, opts?: InvokeOptions): Output<GetAuditTrailsResult>
def get_audit_trails(access_level: Optional[str] = None,
audit_trail_id: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_datasafe.GetAuditTrailsFilter]] = None,
state: Optional[str] = None,
status: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuditTrailsResult
def get_audit_trails_output(access_level: Optional[pulumi.Input[str]] = None,
audit_trail_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetAuditTrailsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuditTrailsResult]
func GetAuditTrails(ctx *Context, args *GetAuditTrailsArgs, opts ...InvokeOption) (*GetAuditTrailsResult, error)
func GetAuditTrailsOutput(ctx *Context, args *GetAuditTrailsOutputArgs, opts ...InvokeOption) GetAuditTrailsResultOutput
> Note: This function is named GetAuditTrails
in the Go SDK.
public static class GetAuditTrails
{
public static Task<GetAuditTrailsResult> InvokeAsync(GetAuditTrailsArgs args, InvokeOptions? opts = null)
public static Output<GetAuditTrailsResult> Invoke(GetAuditTrailsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuditTrailsResult> getAuditTrails(GetAuditTrailsArgs args, InvokeOptions options)
public static Output<GetAuditTrailsResult> getAuditTrails(GetAuditTrailsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getAuditTrails:getAuditTrails
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Audit
Trail stringId - A optional filter to return only resources that match the specified id.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
Changes to this property will trigger replacement.
Audit Trails Filter> - State string
- A optional filter to return only resources that match the specified lifecycle state.
- Status string
- A optional filter to return only resources that match the specified sub-state of audit trail.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Audit
Trail stringId - A optional filter to return only resources that match the specified id.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
Changes to this property will trigger replacement.
Audit Trails Filter - State string
- A optional filter to return only resources that match the specified lifecycle state.
- Status string
- A optional filter to return only resources that match the specified sub-state of audit trail.
- Target
Id string - A filter to return only items related to a specific target OCID.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- audit
Trail StringId - A optional filter to return only resources that match the specified id.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
Changes to this property will trigger replacement.
Audit Trails Filter> - state String
- A optional filter to return only resources that match the specified lifecycle state.
- status String
- A optional filter to return only resources that match the specified sub-state of audit trail.
- target
Id String - A filter to return only items related to a specific target OCID.
- compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- audit
Trail stringId - A optional filter to return only resources that match the specified id.
- compartment
Id booleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name string - A filter to return only resources that match the specified display name.
- filters
Changes to this property will trigger replacement.
Audit Trails Filter[] - state string
- A optional filter to return only resources that match the specified lifecycle state.
- status string
- A optional filter to return only resources that match the specified sub-state of audit trail.
- target
Id string - A filter to return only items related to a specific target OCID.
- compartment_
id This property is required. str - A filter to return only resources that match the specified compartment OCID.
- access_
level str - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- audit_
trail_ strid - A optional filter to return only resources that match the specified id.
- compartment_
id_ boolin_ subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display_
name str - A filter to return only resources that match the specified display name.
- filters
Changes to this property will trigger replacement.
Get Audit Trails Filter] - state str
- A optional filter to return only resources that match the specified lifecycle state.
- status str
- A optional filter to return only resources that match the specified sub-state of audit trail.
- target_
id str - A filter to return only items related to a specific target OCID.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- audit
Trail StringId - A optional filter to return only resources that match the specified id.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
Changes to this property will trigger replacement.
- state String
- A optional filter to return only resources that match the specified lifecycle state.
- status String
- A optional filter to return only resources that match the specified sub-state of audit trail.
- target
Id String - A filter to return only items related to a specific target OCID.
getAuditTrails Result
The following output properties are available:
- Audit
Trail List<GetCollections Audit Trails Audit Trail Collection> - The list of audit_trail_collection.
- 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.
- Access
Level string - Audit
Trail stringId - Compartment
Id boolIn Subtree - Display
Name string - The display name of the audit trail.
- Filters
List<Get
Audit Trails Filter> - State string
- The current state of the audit trail.
- Status string
- The current sub-state of the audit trail.
- Target
Id string - The OCID of the Data Safe target for which the audit trail is created.
- Audit
Trail []GetCollections Audit Trails Audit Trail Collection - The list of audit_trail_collection.
- 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.
- Access
Level string - Audit
Trail stringId - Compartment
Id boolIn Subtree - Display
Name string - The display name of the audit trail.
- Filters
[]Get
Audit Trails Filter - State string
- The current state of the audit trail.
- Status string
- The current sub-state of the audit trail.
- Target
Id string - The OCID of the Data Safe target for which the audit trail is created.
- audit
Trail List<GetCollections Audit Trails Audit Trail Collection> - The list of audit_trail_collection.
- 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.
- access
Level String - audit
Trail StringId - compartment
Id BooleanIn Subtree - display
Name String - The display name of the audit trail.
- filters
List<Get
Audit Trails Filter> - state String
- The current state of the audit trail.
- status String
- The current sub-state of the audit trail.
- target
Id String - The OCID of the Data Safe target for which the audit trail is created.
- audit
Trail GetCollections Audit Trails Audit Trail Collection[] - The list of audit_trail_collection.
- 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.
- access
Level string - audit
Trail stringId - compartment
Id booleanIn Subtree - display
Name string - The display name of the audit trail.
- filters
Get
Audit Trails Filter[] - state string
- The current state of the audit trail.
- status string
- The current sub-state of the audit trail.
- target
Id string - The OCID of the Data Safe target for which the audit trail is created.
- audit_
trail_ Sequence[datasafe.collections Get Audit Trails Audit Trail Collection] - The list of audit_trail_collection.
- 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.
- access_
level str - audit_
trail_ strid - compartment_
id_ boolin_ subtree - display_
name str - The display name of the audit trail.
- filters
Sequence[datasafe.
Get Audit Trails Filter] - state str
- The current state of the audit trail.
- status str
- The current sub-state of the audit trail.
- target_
id str - The OCID of the Data Safe target for which the audit trail is created.
- audit
Trail List<Property Map>Collections - The list of audit_trail_collection.
- 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.
- access
Level String - audit
Trail StringId - compartment
Id BooleanIn Subtree - display
Name String - The display name of the audit trail.
- filters List<Property Map>
- state String
- The current state of the audit trail.
- status String
- The current sub-state of the audit trail.
- target
Id String - The OCID of the Data Safe target for which the audit trail is created.
Supporting Types
GetAuditTrailsAuditTrailCollection
- Items
This property is required. List<GetAudit Trails Audit Trail Collection Item>
- Items
This property is required. []GetAudit Trails Audit Trail Collection Item
- items
This property is required. List<GetAudit Trails Audit Trail Collection Item>
- items
This property is required. GetAudit Trails Audit Trail Collection Item[]
- items
This property is required. Sequence[datasafe.Get Audit Trails Audit Trail Collection Item]
- items
This property is required. List<Property Map>
GetAuditTrailsAuditTrailCollectionItem
- Audit
Collection Start Time This property is required. string - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile Id This property is required. string - The OCID of the parent audit.
- Audit
Trail Id This property is required. string - A optional filter to return only resources that match the specified id.
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
This property is required. Dictionary<string, string>- 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
This property is required. string - The description of the audit trail.
- Display
Name This property is required. string - A filter to return only resources that match the specified display name.
This property is required. Dictionary<string, string>- 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
This property is required. string - The OCID of the audit trail.
- Is
Auto Purge Enabled This property is required. bool - 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 This property is required. string - Details about the current state of the audit trail in Data Safe.
- Peer
Target Database Key This property is required. int - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job Details This property is required. string - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job Status This property is required. string - The current status of the audit trail purge job.
- Purge
Job Time This property is required. string - 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 This property is required. int - State
This property is required. string - A optional filter to return only resources that match the specified lifecycle state.
- Status
This property is required. string - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. 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 This property is required. string - A filter to return only items related to a specific target OCID.
- Time
Created This property is required. string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last Collected This property is required. string - 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 This property is required. string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location This property is required. 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 This property is required. string - The underlying source of unified audit trail.
- Work
Request Id This property is required. string - The OCID of the workrequest for audit trail which collects audit records.
- Audit
Collection Start Time This property is required. string - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile Id This property is required. string - The OCID of the parent audit.
- Audit
Trail Id This property is required. string - A optional filter to return only resources that match the specified id.
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
This property is required. map[string]string- 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
This property is required. string - The description of the audit trail.
- Display
Name This property is required. string - A filter to return only resources that match the specified display name.
This property is required. map[string]string- 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
This property is required. string - The OCID of the audit trail.
- Is
Auto Purge Enabled This property is required. bool - 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 This property is required. string - Details about the current state of the audit trail in Data Safe.
- Peer
Target Database Key This property is required. int - The secondary id assigned for the peer database registered with Data Safe.
- Purge
Job Details This property is required. string - The details of the audit trail purge job that ran on the "purgeJobTime".
- Purge
Job Status This property is required. string - The current status of the audit trail purge job.
- Purge
Job Time This property is required. string - 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 This property is required. int - State
This property is required. string - A optional filter to return only resources that match the specified lifecycle state.
- Status
This property is required. string - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. 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 This property is required. string - A filter to return only items related to a specific target OCID.
- Time
Created This property is required. string - The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last Collected This property is required. string - 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 This property is required. string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location This property is required. 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 This property is required. string - The underlying source of unified audit trail.
- Work
Request Id This property is required. string - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection Start Time This property is required. String - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile Id This property is required. String - The OCID of the parent audit.
- audit
Trail Id This property is required. String - A optional filter to return only resources that match the specified id.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
This property is required. Map<String,String>- 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
This property is required. String - The description of the audit trail.
- display
Name This property is required. String - A filter to return only resources that match the specified display name.
This property is required. Map<String,String>- 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
This property is required. String - The OCID of the audit trail.
- is
Auto Purge Enabled This property is required. Boolean - 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 This property is required. String - Details about the current state of the audit trail in Data Safe.
- peer
Target Database Key This property is required. Integer - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job Details This property is required. String - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job Status This property is required. String - The current status of the audit trail purge job.
- purge
Job Time This property is required. String - 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 This property is required. Integer - state
This property is required. String - A optional filter to return only resources that match the specified lifecycle state.
- status
This property is required. String - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. 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 This property is required. String - A filter to return only items related to a specific target OCID.
- time
Created This property is required. String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last Collected This property is required. String - 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 This property is required. String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location This property is required. 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 This property is required. String - The underlying source of unified audit trail.
- work
Request Id This property is required. String - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection Start Time This property is required. string - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile Id This property is required. string - The OCID of the parent audit.
- audit
Trail Id This property is required. string - A optional filter to return only resources that match the specified id.
- compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
This property is required. {[key: string]: string}- 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
This property is required. string - The description of the audit trail.
- display
Name This property is required. string - A filter to return only resources that match the specified display name.
This property is required. {[key: string]: string}- 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
This property is required. string - The OCID of the audit trail.
- is
Auto Purge Enabled This property is required. boolean - 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 This property is required. string - Details about the current state of the audit trail in Data Safe.
- peer
Target Database Key This property is required. number - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job Details This property is required. string - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job Status This property is required. string - The current status of the audit trail purge job.
- purge
Job Time This property is required. string - 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 This property is required. number - state
This property is required. string - A optional filter to return only resources that match the specified lifecycle state.
- status
This property is required. string - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. {[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 This property is required. string - A filter to return only items related to a specific target OCID.
- time
Created This property is required. string - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last Collected This property is required. string - 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 This property is required. string - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location This property is required. 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 This property is required. string - The underlying source of unified audit trail.
- work
Request Id This property is required. string - The OCID of the workrequest for audit trail which collects audit records.
- audit_
collection_ start_ time This property is required. str - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit_
profile_ id This property is required. str - The OCID of the parent audit.
- audit_
trail_ id This property is required. str - A optional filter to return only resources that match the specified id.
- compartment_
id This property is required. str - A filter to return only resources that match the specified compartment OCID.
This property is required. Mapping[str, str]- 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
This property is required. str - The description of the audit trail.
- display_
name This property is required. str - A filter to return only resources that match the specified display name.
This property is required. Mapping[str, str]- 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
This property is required. str - The OCID of the audit trail.
- is_
auto_ purge_ enabled This property is required. bool - 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 This property is required. str - Details about the current state of the audit trail in Data Safe.
- peer_
target_ database_ key This property is required. int - The secondary id assigned for the peer database registered with Data Safe.
- purge_
job_ details This property is required. str - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge_
job_ status This property is required. str - The current status of the audit trail purge job.
- purge_
job_ time This property is required. str - 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 This property is required. int - state
This property is required. str - A optional filter to return only resources that match the specified lifecycle state.
- status
This property is required. str - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. 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 This property is required. str - A filter to return only items related to a specific target OCID.
- time_
created This property is required. str - The date and time the audit trail was created, in the format defined by RFC3339.
- time_
last_ collected This property is required. str - 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 This property is required. str - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail_
location This property is required. 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 This property is required. str - The underlying source of unified audit trail.
- work_
request_ id This property is required. str - The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection Start Time This property is required. String - The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile Id This property is required. String - The OCID of the parent audit.
- audit
Trail Id This property is required. String - A optional filter to return only resources that match the specified id.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
This property is required. Map<String>- 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
This property is required. String - The description of the audit trail.
- display
Name This property is required. String - A filter to return only resources that match the specified display name.
This property is required. Map<String>- 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
This property is required. String - The OCID of the audit trail.
- is
Auto Purge Enabled This property is required. Boolean - 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 This property is required. String - Details about the current state of the audit trail in Data Safe.
- peer
Target Database Key This property is required. Number - The secondary id assigned for the peer database registered with Data Safe.
- purge
Job Details This property is required. String - The details of the audit trail purge job that ran on the "purgeJobTime".
- purge
Job Status This property is required. String - The current status of the audit trail purge job.
- purge
Job Time This property is required. String - 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 This property is required. Number - state
This property is required. String - A optional filter to return only resources that match the specified lifecycle state.
- status
This property is required. String - A optional filter to return only resources that match the specified sub-state of audit trail.
This property is required. 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 This property is required. String - A filter to return only items related to a specific target OCID.
- time
Created This property is required. String - The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last Collected This property is required. String - 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 This property is required. String - The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location This property is required. 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 This property is required. String - The underlying source of unified audit trail.
- work
Request Id This property is required. String - The OCID of the workrequest for audit trail which collects audit records.
GetAuditTrailsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.