Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getAuditTrail

This data source provides details about a specific Audit Trail resource in Oracle Cloud Infrastructure Data Safe service.

Gets the details of audit trail.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testAuditTrail = Output.Create(Oci.DataSafe.GetAuditTrail.InvokeAsync(new Oci.DataSafe.GetAuditTrailArgs
        {
            AuditTrailId = oci_data_safe_audit_trail.Test_audit_trail.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.GetAuditTrail(ctx, &datasafe.GetAuditTrailArgs{
			AuditTrailId: oci_data_safe_audit_trail.Test_audit_trail.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_audit_trail = oci.DataSafe.get_audit_trail(audit_trail_id=oci_data_safe_audit_trail["test_audit_trail"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAuditTrail = oci.DataSafe.getAuditTrail({
    auditTrailId: oci_data_safe_audit_trail.test_audit_trail.id,
});

Coming soon!

Using getAuditTrail

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 getAuditTrail(args: GetAuditTrailArgs, opts?: InvokeOptions): Promise<GetAuditTrailResult>
function getAuditTrailOutput(args: GetAuditTrailOutputArgs, opts?: InvokeOptions): Output<GetAuditTrailResult>
def get_audit_trail(audit_trail_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAuditTrailResult
def get_audit_trail_output(audit_trail_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAuditTrailResult]
func GetAuditTrail(ctx *Context, args *GetAuditTrailArgs, opts ...InvokeOption) (*GetAuditTrailResult, error)
func GetAuditTrailOutput(ctx *Context, args *GetAuditTrailOutputArgs, opts ...InvokeOption) GetAuditTrailResultOutput

> Note: This function is named GetAuditTrail in the Go SDK.

public static class GetAuditTrail 
{
    public static Task<GetAuditTrailResult> InvokeAsync(GetAuditTrailArgs args, InvokeOptions? opts = null)
    public static Output<GetAuditTrailResult> Invoke(GetAuditTrailInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuditTrailResult> getAuditTrail(GetAuditTrailArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataSafe/getAuditTrail:getAuditTrail
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AuditTrailId string

The OCID of the audit trail.

AuditTrailId string

The OCID of the audit trail.

auditTrailId String

The OCID of the audit trail.

auditTrailId string

The OCID of the audit trail.

audit_trail_id str

The OCID of the audit trail.

auditTrailId String

The OCID of the audit trail.

getAuditTrail Result

The following output properties are available:

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
CompartmentId string

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

ResumeTrigger int
State string

The current state of the audit trail.

Status string

The current sub-state of the 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

The OCID of the Data Safe target for which the audit trail is created.

TimeCreated string

The date and time the audit trail was created, 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.

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
CompartmentId string

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

ResumeTrigger int
State string

The current state of the audit trail.

Status string

The current sub-state of the 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

The OCID of the Data Safe target for which the audit trail is created.

TimeCreated string

The date and time the audit trail was created, 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.

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
compartmentId String

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

resumeTrigger Integer
state String

The current state of the audit trail.

status String

The current sub-state of the 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

The OCID of the Data Safe target for which the audit trail is created.

timeCreated String

The date and time the audit trail was created, 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.

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
compartmentId string

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

resumeTrigger number
state string

The current state of the audit trail.

status string

The current sub-state of the 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

The OCID of the Data Safe target for which the audit trail is created.

timeCreated string

The date and time the audit trail was created, 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.

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
compartment_id str

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

resume_trigger int
state str

The current state of the audit trail.

status str

The current sub-state of the 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

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_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.

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
compartmentId String

The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.

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

The display name of the audit trail.

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.

resumeTrigger Number
state String

The current state of the audit trail.

status String

The current sub-state of the 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

The OCID of the Data Safe target for which the audit trail is created.

timeCreated String

The date and time the audit trail was created, 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.

workRequestId String

The OCID of the workrequest for audit trail which collects audit records.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.