oci.DataSafe.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 System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAuditTrail = Oci.DataSafe.GetAuditTrail.Invoke(new()
{
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
})
}
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.GetAuditTrailArgs;
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 testAuditTrail = DataSafeFunctions.getAuditTrail(GetAuditTrailArgs.builder()
.auditTrailId(oci_data_safe_audit_trail.test_audit_trail().id())
.build());
}
}
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,
});
variables:
testAuditTrail:
fn::invoke:
Function: oci:DataSafe:getAuditTrail
Arguments:
auditTrailId: ${oci_data_safe_audit_trail.test_audit_trail.id}
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:
- Audit
Trail stringId The OCID of the audit trail.
- Audit
Trail stringId The OCID of the audit trail.
- audit
Trail StringId The OCID of the audit trail.
- audit
Trail stringId The OCID of the audit trail.
- audit_
trail_ strid The OCID of the audit trail.
- audit
Trail StringId The OCID of the audit trail.
getAuditTrail Result
The following output properties are available:
- Audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId The OCID of the parent audit.
- Audit
Trail stringId - Compartment
Id string The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- 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.
- Display
Name string The display name of the audit trail.
- 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.
- Is
Auto boolPurge Enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- Lifecycle
Details string Details about the current state of the audit trail in Data Safe.
- Resume
Trigger int - State string
The current state of the audit trail.
- Status string
The current sub-state of the audit trail.
- 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"}
- Target
Id string The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected The date and time until which the audit events are collected from target database by Data Safe audit trail collection process, in the format defined by RFC3339.
- Time
Updated string The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Work
Request stringId The OCID of the workrequest for audit trail which collects audit records.
- Audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- Audit
Profile stringId The OCID of the parent audit.
- Audit
Trail stringId - Compartment
Id string The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- 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.
- Display
Name string The display name of the audit trail.
- 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.
- Is
Auto boolPurge Enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- Lifecycle
Details string Details about the current state of the audit trail in Data Safe.
- Resume
Trigger int - State string
The current state of the audit trail.
- Status string
The current sub-state of the audit trail.
- 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"}
- Target
Id string The OCID of the Data Safe target for which the audit trail is created.
- Time
Created string The date and time the audit trail was created, in the format defined by RFC3339.
- Time
Last stringCollected The date and time until which the audit events are collected from target database by Data Safe audit trail collection process, in the format defined by RFC3339.
- Time
Updated string The date and time the audit trail was updated, in the format defined by RFC3339.
- Trail
Location string An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- Work
Request stringId The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId The OCID of the parent audit.
- audit
Trail StringId - compartment
Id String The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- 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.
- display
Name String The display name of the audit trail.
- 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.
- is
Auto BooleanPurge Enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- lifecycle
Details String Details about the current state of the audit trail in Data Safe.
- resume
Trigger Integer - state String
The current state of the audit trail.
- status String
The current sub-state of the audit trail.
- 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"}
- target
Id String The OCID of the Data Safe target for which the audit trail is created.
- time
Created String The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected The date and time until which the audit events are collected from target database by Data Safe audit trail collection process, in the format defined by RFC3339.
- time
Updated String The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- work
Request StringId The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile stringId The OCID of the parent audit.
- audit
Trail stringId - compartment
Id string The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- {[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.
- display
Name string The display name of the audit trail.
- {[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.
- is
Auto booleanPurge Enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- lifecycle
Details string Details about the current state of the audit trail in Data Safe.
- resume
Trigger number - state string
The current state of the audit trail.
- status string
The current sub-state of the audit trail.
- {[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"}
- target
Id string The OCID of the Data Safe target for which the audit trail is created.
- time
Created string The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last stringCollected The date and time until which the audit events are collected from target database by Data Safe audit trail collection process, in the format defined by RFC3339.
- time
Updated string The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location string An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- work
Request stringId The OCID of the workrequest for audit trail which collects audit records.
- audit_
collection_ strstart_ time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit_
profile_ strid The OCID of the parent audit.
- audit_
trail_ strid - compartment_
id str The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- 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.
- 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_ boolpurge_ enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- lifecycle_
details 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.
- 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_
last_ strcollected The date and time until which the audit events are collected from target database by 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.
- work_
request_ strid The OCID of the workrequest for audit trail which collects audit records.
- audit
Collection StringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339.
- audit
Profile StringId The OCID of the parent audit.
- audit
Trail StringId - compartment
Id String The OCID of the compartment that contains the audit trail and its same as the compartment of audit profile resource.
- 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.
- display
Name String The display name of the audit trail.
- 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.
- is
Auto BooleanPurge Enabled Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large.
- lifecycle
Details String Details about the current state of the audit trail in Data Safe.
- resume
Trigger Number - state String
The current state of the audit trail.
- status String
The current sub-state of the audit trail.
- 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"}
- target
Id String The OCID of the Data Safe target for which the audit trail is created.
- time
Created String The date and time the audit trail was created, in the format defined by RFC3339.
- time
Last StringCollected The date and time until which the audit events are collected from target database by Data Safe audit trail collection process, in the format defined by RFC3339.
- time
Updated String The date and time the audit trail was updated, in the format defined by RFC3339.
- trail
Location String An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database.
- work
Request StringId The OCID of the workrequest for audit trail which collects audit records.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.