1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getAuditTrails
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataSafe.getAuditTrails

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getAuditTrails:getAuditTrails
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel 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.
    AuditTrailId string
    A optional filter to return only resources that match the specified id.
    CompartmentIdInSubtree bool
    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.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetAuditTrailsFilter>
    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.
    TargetId string
    A filter to return only items related to a specific target OCID.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel 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.
    AuditTrailId string
    A optional filter to return only resources that match the specified id.
    CompartmentIdInSubtree bool
    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.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetAuditTrailsFilter
    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.
    TargetId string
    A filter to return only items related to a specific target OCID.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    auditTrailId String
    A optional filter to return only resources that match the specified id.
    compartmentIdInSubtree Boolean
    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.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetAuditTrailsFilter>
    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.
    targetId String
    A filter to return only items related to a specific target OCID.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    auditTrailId string
    A optional filter to return only resources that match the specified id.
    compartmentIdInSubtree boolean
    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.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetAuditTrailsFilter[]
    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.
    targetId string
    A filter to return only items related to a specific target OCID.
    compartment_id 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_id str
    A optional filter to return only resources that match the specified id.
    compartment_id_in_subtree bool
    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 Sequence[datasafe.GetAuditTrailsFilter]
    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.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    auditTrailId String
    A optional filter to return only resources that match the specified id.
    compartmentIdInSubtree Boolean
    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.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>
    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.
    targetId String
    A filter to return only items related to a specific target OCID.

    getAuditTrails Result

    The following output properties are available:

    AuditTrailCollections List<GetAuditTrailsAuditTrailCollection>
    The list of audit_trail_collection.
    CompartmentId 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.
    AccessLevel string
    AuditTrailId string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the audit trail.
    Filters List<GetAuditTrailsFilter>
    State string
    The current state of the audit trail.
    Status string
    The current sub-state of the audit trail.
    TargetId string
    The OCID of the Data Safe target for which the audit trail is created.
    AuditTrailCollections []GetAuditTrailsAuditTrailCollection
    The list of audit_trail_collection.
    CompartmentId 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.
    AccessLevel string
    AuditTrailId string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the audit trail.
    Filters []GetAuditTrailsFilter
    State string
    The current state of the audit trail.
    Status string
    The current sub-state of the audit trail.
    TargetId string
    The OCID of the Data Safe target for which the audit trail is created.
    auditTrailCollections List<GetAuditTrailsAuditTrailCollection>
    The list of audit_trail_collection.
    compartmentId 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.
    accessLevel String
    auditTrailId String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the audit trail.
    filters List<GetAuditTrailsFilter>
    state String
    The current state of the audit trail.
    status String
    The current sub-state of the audit trail.
    targetId String
    The OCID of the Data Safe target for which the audit trail is created.
    auditTrailCollections GetAuditTrailsAuditTrailCollection[]
    The list of audit_trail_collection.
    compartmentId 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.
    accessLevel string
    auditTrailId string
    compartmentIdInSubtree boolean
    displayName string
    The display name of the audit trail.
    filters GetAuditTrailsFilter[]
    state string
    The current state of the audit trail.
    status string
    The current sub-state of the audit trail.
    targetId string
    The OCID of the Data Safe target for which the audit trail is created.
    audit_trail_collections Sequence[datasafe.GetAuditTrailsAuditTrailCollection]
    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_id str
    compartment_id_in_subtree bool
    display_name str
    The display name of the audit trail.
    filters Sequence[datasafe.GetAuditTrailsFilter]
    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.
    auditTrailCollections List<Property Map>
    The list of audit_trail_collection.
    compartmentId 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.
    accessLevel String
    auditTrailId String
    compartmentIdInSubtree Boolean
    displayName 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.
    targetId String
    The OCID of the Data Safe target for which the audit trail is created.

    Supporting Types

    GetAuditTrailsAuditTrailCollection

    GetAuditTrailsAuditTrailCollectionItem

    AuditCollectionStartTime string
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    AuditProfileId string
    The OCID of the parent audit.
    AuditTrailId string
    A optional filter to return only resources that match the specified id.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    DefinedTags Dictionary<string, object>
    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
    The description of the audit trail.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags Dictionary<string, object>
    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 string
    The OCID of the audit trail.
    IsAutoPurgeEnabled 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.
    LifecycleDetails string
    Details about the current state of the audit trail in Data Safe.
    PeerTargetDatabaseKey int
    The secondary id assigned for the peer database registered with Data Safe.
    PurgeJobDetails string
    The details of the audit trail purge job that ran on the "purgeJobTime".
    PurgeJobStatus string
    The current status of the audit trail purge job.
    PurgeJobTime 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.
    ResumeTrigger int
    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.
    SystemTags Dictionary<string, object>
    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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreated string
    The date and time the audit trail was created, in the format defined by RFC3339.
    TimeLastCollected 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.
    TimeUpdated string
    The date and time the audit trail was updated, in the format defined by RFC3339.
    TrailLocation string
    An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
    TrailSource string
    The underlying source of unified audit trail.
    WorkRequestId string
    The OCID of the workrequest for audit trail which collects audit records.
    AuditCollectionStartTime string
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    AuditProfileId string
    The OCID of the parent audit.
    AuditTrailId string
    A optional filter to return only resources that match the specified id.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    DefinedTags map[string]interface{}
    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
    The description of the audit trail.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags map[string]interface{}
    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 string
    The OCID of the audit trail.
    IsAutoPurgeEnabled 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.
    LifecycleDetails string
    Details about the current state of the audit trail in Data Safe.
    PeerTargetDatabaseKey int
    The secondary id assigned for the peer database registered with Data Safe.
    PurgeJobDetails string
    The details of the audit trail purge job that ran on the "purgeJobTime".
    PurgeJobStatus string
    The current status of the audit trail purge job.
    PurgeJobTime 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.
    ResumeTrigger int
    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.
    SystemTags map[string]interface{}
    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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreated string
    The date and time the audit trail was created, in the format defined by RFC3339.
    TimeLastCollected 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.
    TimeUpdated string
    The date and time the audit trail was updated, in the format defined by RFC3339.
    TrailLocation string
    An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
    TrailSource string
    The underlying source of unified audit trail.
    WorkRequestId string
    The OCID of the workrequest for audit trail which collects audit records.
    auditCollectionStartTime String
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    auditProfileId String
    The OCID of the parent audit.
    auditTrailId String
    A optional filter to return only resources that match the specified id.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    definedTags Map<String,Object>
    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
    The description of the audit trail.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<String,Object>
    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 String
    The OCID of the audit trail.
    isAutoPurgeEnabled 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.
    lifecycleDetails String
    Details about the current state of the audit trail in Data Safe.
    peerTargetDatabaseKey Integer
    The secondary id assigned for the peer database registered with Data Safe.
    purgeJobDetails String
    The details of the audit trail purge job that ran on the "purgeJobTime".
    purgeJobStatus String
    The current status of the audit trail purge job.
    purgeJobTime 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.
    resumeTrigger Integer
    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.
    systemTags Map<String,Object>
    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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreated String
    The date and time the audit trail was created, in the format defined by RFC3339.
    timeLastCollected 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.
    timeUpdated String
    The date and time the audit trail was updated, in the format defined by RFC3339.
    trailLocation String
    An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
    trailSource String
    The underlying source of unified audit trail.
    workRequestId String
    The OCID of the workrequest for audit trail which collects audit records.
    auditCollectionStartTime string
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    auditProfileId string
    The OCID of the parent audit.
    auditTrailId string
    A optional filter to return only resources that match the specified id.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    definedTags {[key: string]: any}
    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
    The description of the audit trail.
    displayName string
    A filter to return only resources that match the specified display name.
    freeformTags {[key: string]: any}
    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 string
    The OCID of the audit trail.
    isAutoPurgeEnabled 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.
    lifecycleDetails string
    Details about the current state of the audit trail in Data Safe.
    peerTargetDatabaseKey number
    The secondary id assigned for the peer database registered with Data Safe.
    purgeJobDetails string
    The details of the audit trail purge job that ran on the "purgeJobTime".
    purgeJobStatus string
    The current status of the audit trail purge job.
    purgeJobTime 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.
    resumeTrigger number
    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.
    systemTags {[key: string]: any}
    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"}
    targetId string
    A filter to return only items related to a specific target OCID.
    timeCreated string
    The date and time the audit trail was created, in the format defined by RFC3339.
    timeLastCollected 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.
    timeUpdated string
    The date and time the audit trail was updated, in the format defined by RFC3339.
    trailLocation string
    An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
    trailSource string
    The underlying source of unified audit trail.
    workRequestId string
    The OCID of the workrequest for audit trail which collects audit records.
    audit_collection_start_time str
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    audit_profile_id str
    The OCID of the parent audit.
    audit_trail_id str
    A optional filter to return only resources that match the specified id.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    defined_tags Mapping[str, Any]
    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
    The description of the audit trail.
    display_name str
    A filter to return only resources that match the specified display name.
    freeform_tags Mapping[str, Any]
    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 str
    The OCID of the audit trail.
    is_auto_purge_enabled 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 str
    Details about the current state of the audit trail in Data Safe.
    peer_target_database_key int
    The secondary id assigned for the peer database registered with Data Safe.
    purge_job_details str
    The details of the audit trail purge job that ran on the "purgeJobTime".
    purge_job_status str
    The current status of the audit trail purge job.
    purge_job_time 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 int
    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.
    system_tags Mapping[str, Any]
    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
    A filter to return only items related to a specific target OCID.
    time_created str
    The date and time the audit trail was created, in the format defined by RFC3339.
    time_last_collected 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 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_id str
    The OCID of the workrequest for audit trail which collects audit records.
    auditCollectionStartTime String
    The date from which the audit trail must start collecting data, in the format defined by RFC3339.
    auditProfileId String
    The OCID of the parent audit.
    auditTrailId String
    A optional filter to return only resources that match the specified id.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    definedTags Map<Any>
    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
    The description of the audit trail.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<Any>
    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 String
    The OCID of the audit trail.
    isAutoPurgeEnabled 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.
    lifecycleDetails String
    Details about the current state of the audit trail in Data Safe.
    peerTargetDatabaseKey Number
    The secondary id assigned for the peer database registered with Data Safe.
    purgeJobDetails String
    The details of the audit trail purge job that ran on the "purgeJobTime".
    purgeJobStatus String
    The current status of the audit trail purge job.
    purgeJobTime 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.
    resumeTrigger Number
    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.
    systemTags Map<Any>
    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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreated String
    The date and time the audit trail was created, in the format defined by RFC3339.
    timeLastCollected 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.
    timeUpdated String
    The date and time the audit trail was updated, in the format defined by RFC3339.
    trailLocation String
    An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
    trailSource String
    The underlying source of unified audit trail.
    workRequestId String
    The OCID of the workrequest for audit trail which collects audit records.

    GetAuditTrailsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi