import * as pulumi from "@pulumi/pulumi"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditTrail = oci.datasafe.getAuditTrail({ * auditTrailId: testAuditTrailOciDataSafeAuditTrail.id, * }); * ``` */ export declare function getAuditTrail(args: GetAuditTrailArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAuditTrail. */ export interface GetAuditTrailArgs { /** * The OCID of the audit trail. */ auditTrailId: string; } /** * A collection of values returned by getAuditTrail. */ export interface GetAuditTrailResult { /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. */ readonly auditCollectionStartTime: string; /** * The OCID of the parent audit. */ readonly auditProfileId: string; readonly auditTrailId: string; /** * Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field is enabled, this field must be true. */ readonly canUpdateLastArchiveTimeOnTarget: boolean; /** * The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource. */ readonly compartmentId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: { [key: string]: string; }; /** * The description of the audit trail. */ readonly description: string; /** * The display name of the audit trail. */ readonly displayName: 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ readonly freeformTags: { [key: string]: string; }; /** * The OCID of the audit trail. */ readonly id: string; /** * 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. */ readonly isAutoPurgeEnabled: boolean; /** * Details about the current state of the audit trail in Data Safe. */ readonly lifecycleDetails: string; /** * The secondary id assigned for the peer database registered with Data Safe. */ readonly peerTargetDatabaseKey: number; /** * The details of the audit trail purge job that ran on the "purgeJobTime". */ readonly purgeJobDetails: string; /** * The current status of the audit trail purge job. */ readonly purgeJobStatus: 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. */ readonly purgeJobTime: string; readonly resumeTrigger: number; /** * The current state of the audit trail. */ readonly state: string; /** * The current sub-state of the audit trail. */ readonly status: 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"}` */ readonly systemTags: { [key: string]: string; }; /** * The OCID of the Data Safe target for which the audit trail is created. */ readonly targetId: string; /** * The date and time the audit trail was created, in the format defined by RFC3339. */ readonly timeCreated: 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. */ readonly timeLastCollected: string; /** * The date and time the audit trail was updated, in the format defined by RFC3339. */ readonly timeUpdated: string; /** * An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database. */ readonly trailLocation: string; /** * The underlying source of unified audit trail. */ readonly trailSource: string; /** * The OCID of the workrequest for audit trail which collects audit records. */ readonly workRequestId: string; } /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditTrail = oci.datasafe.getAuditTrail({ * auditTrailId: testAuditTrailOciDataSafeAuditTrail.id, * }); * ``` */ export declare function getAuditTrailOutput(args: GetAuditTrailOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAuditTrail. */ export interface GetAuditTrailOutputArgs { /** * The OCID of the audit trail. */ auditTrailId: pulumi.Input; } //# sourceMappingURL=getAuditTrail.d.ts.map