oci.DataSafe.AuditTrailManagement
Explore with Pulumi AI
This resource provides the Audit Trail Management resource in Oracle Cloud Infrastructure Data Safe service.
Updates one or more attributes of the specified audit trail.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAuditTrailManagement = new oci.datasafe.AuditTrailManagement("test_audit_trail_management", {
compartmentId: compartmentId,
targetId: testTargetDatabase.id,
definedTags: {
"Operations.CostCenter": "42",
},
description: auditTrailManagementDescription,
displayName: auditTrailManagementDisplayName,
freeformTags: {
Department: "Finance",
},
isAutoPurgeEnabled: auditTrailManagementIsAutoPurgeEnabled,
});
import pulumi
import pulumi_oci as oci
test_audit_trail_management = oci.data_safe.AuditTrailManagement("test_audit_trail_management",
compartment_id=compartment_id,
target_id=test_target_database["id"],
defined_tags={
"Operations.CostCenter": "42",
},
description=audit_trail_management_description,
display_name=audit_trail_management_display_name,
freeform_tags={
"Department": "Finance",
},
is_auto_purge_enabled=audit_trail_management_is_auto_purge_enabled)
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.NewAuditTrailManagement(ctx, "test_audit_trail_management", &DataSafe.AuditTrailManagementArgs{
CompartmentId: pulumi.Any(compartmentId),
TargetId: pulumi.Any(testTargetDatabase.Id),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(auditTrailManagementDescription),
DisplayName: pulumi.Any(auditTrailManagementDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
IsAutoPurgeEnabled: pulumi.Any(auditTrailManagementIsAutoPurgeEnabled),
})
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 testAuditTrailManagement = new Oci.DataSafe.AuditTrailManagement("test_audit_trail_management", new()
{
CompartmentId = compartmentId,
TargetId = testTargetDatabase.Id,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = auditTrailManagementDescription,
DisplayName = auditTrailManagementDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
IsAutoPurgeEnabled = auditTrailManagementIsAutoPurgeEnabled,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.AuditTrailManagement;
import com.pulumi.oci.DataSafe.AuditTrailManagementArgs;
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) {
var testAuditTrailManagement = new AuditTrailManagement("testAuditTrailManagement", AuditTrailManagementArgs.builder()
.compartmentId(compartmentId)
.targetId(testTargetDatabase.id())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(auditTrailManagementDescription)
.displayName(auditTrailManagementDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.isAutoPurgeEnabled(auditTrailManagementIsAutoPurgeEnabled)
.build());
}
}
resources:
testAuditTrailManagement:
type: oci:DataSafe:AuditTrailManagement
name: test_audit_trail_management
properties:
compartmentId: ${compartmentId}
targetId: ${testTargetDatabase.id}
definedTags:
Operations.CostCenter: '42'
description: ${auditTrailManagementDescription}
displayName: ${auditTrailManagementDisplayName}
freeformTags:
Department: Finance
isAutoPurgeEnabled: ${auditTrailManagementIsAutoPurgeEnabled}
Create AuditTrailManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuditTrailManagement(name: string, args?: AuditTrailManagementArgs, opts?: CustomResourceOptions);
@overload
def AuditTrailManagement(resource_name: str,
args: Optional[AuditTrailManagementArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AuditTrailManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
audit_collection_start_time: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_auto_purge_enabled: Optional[bool] = None,
resume_trigger: Optional[bool] = None,
start_trigger: Optional[bool] = None,
state: Optional[str] = None,
stop_trigger: Optional[bool] = None,
target_id: Optional[str] = None,
trail_location: Optional[str] = None)
func NewAuditTrailManagement(ctx *Context, name string, args *AuditTrailManagementArgs, opts ...ResourceOption) (*AuditTrailManagement, error)
public AuditTrailManagement(string name, AuditTrailManagementArgs? args = null, CustomResourceOptions? opts = null)
public AuditTrailManagement(String name, AuditTrailManagementArgs args)
public AuditTrailManagement(String name, AuditTrailManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:AuditTrailManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AuditTrailManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AuditTrailManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuditTrailManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuditTrailManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuditTrailManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var auditTrailManagementResource = new Oci.DataSafe.AuditTrailManagement("auditTrailManagementResource", new()
{
AuditCollectionStartTime = "string",
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
IsAutoPurgeEnabled = false,
ResumeTrigger = false,
StartTrigger = false,
State = "string",
StopTrigger = false,
TargetId = "string",
TrailLocation = "string",
});
example, err := DataSafe.NewAuditTrailManagement(ctx, "auditTrailManagementResource", &DataSafe.AuditTrailManagementArgs{
AuditCollectionStartTime: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
IsAutoPurgeEnabled: pulumi.Bool(false),
ResumeTrigger: pulumi.Bool(false),
StartTrigger: pulumi.Bool(false),
State: pulumi.String("string"),
StopTrigger: pulumi.Bool(false),
TargetId: pulumi.String("string"),
TrailLocation: pulumi.String("string"),
})
var auditTrailManagementResource = new AuditTrailManagement("auditTrailManagementResource", AuditTrailManagementArgs.builder()
.auditCollectionStartTime("string")
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.isAutoPurgeEnabled(false)
.resumeTrigger(false)
.startTrigger(false)
.state("string")
.stopTrigger(false)
.targetId("string")
.trailLocation("string")
.build());
audit_trail_management_resource = oci.data_safe.AuditTrailManagement("auditTrailManagementResource",
audit_collection_start_time="string",
compartment_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
is_auto_purge_enabled=False,
resume_trigger=False,
start_trigger=False,
state="string",
stop_trigger=False,
target_id="string",
trail_location="string")
const auditTrailManagementResource = new oci.datasafe.AuditTrailManagement("auditTrailManagementResource", {
auditCollectionStartTime: "string",
compartmentId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
isAutoPurgeEnabled: false,
resumeTrigger: false,
startTrigger: false,
state: "string",
stopTrigger: false,
targetId: "string",
trailLocation: "string",
});
type: oci:DataSafe:AuditTrailManagement
properties:
auditCollectionStartTime: string
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
isAutoPurgeEnabled: false
resumeTrigger: false
startTrigger: false
state: string
stopTrigger: false
targetId: string
trailLocation: string
AuditTrailManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AuditTrailManagement resource accepts the following input properties:
- Audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - The OCID of the compartment that contains the target.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (Updatable) 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"}
- Is
Auto boolPurge Enabled - (Updatable) 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.
- Resume
Trigger bool - (Updatable) An optional property when set to true triggers Resume.
- Start
Trigger bool - (Updatable) An optional property when set to true triggers Start.
- State string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - Stop
Trigger bool - (Updatable) An optional property when set to true triggers Stop.
- Target
Id string - The OCID of the target.
- 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.
- Audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - The OCID of the compartment that contains the target.
- map[string]string
- (Updatable) 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
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- map[string]string
- (Updatable) 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"}
- Is
Auto boolPurge Enabled - (Updatable) 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.
- Resume
Trigger bool - (Updatable) An optional property when set to true triggers Resume.
- Start
Trigger bool - (Updatable) An optional property when set to true triggers Start.
- State string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - Stop
Trigger bool - (Updatable) An optional property when set to true triggers Stop.
- Target
Id string - The OCID of the target.
- 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.
- audit
Collection StringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - The OCID of the compartment that contains the target.
- Map<String,String>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (Updatable) 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"}
- is
Auto BooleanPurge Enabled - (Updatable) 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.
- resume
Trigger Boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger Boolean - (Updatable) An optional property when set to true triggers Start.
- state String
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - stop
Trigger Boolean - (Updatable) An optional property when set to true triggers Stop.
- target
Id String - The OCID of the target.
- 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.
- audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - The OCID of the compartment that contains the target.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (Updatable) 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"}
- is
Auto booleanPurge Enabled - (Updatable) 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.
- resume
Trigger boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger boolean - (Updatable) An optional property when set to true triggers Start.
- state string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - stop
Trigger boolean - (Updatable) An optional property when set to true triggers Stop.
- target
Id string - The OCID of the target.
- 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.
- audit_
collection_ strstart_ time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - The OCID of the compartment that contains the target.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display_
name str - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (Updatable) 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"}
- is_
auto_ boolpurge_ enabled - (Updatable) 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.
- resume_
trigger bool - (Updatable) An optional property when set to true triggers Resume.
- start_
trigger bool - (Updatable) An optional property when set to true triggers Start.
- state str
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - stop_
trigger bool - (Updatable) An optional property when set to true triggers Stop.
- target_
id str - The OCID of the target.
- 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.
- audit
Collection StringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - The OCID of the compartment that contains the target.
- Map<String>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String>
- (Updatable) 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"}
- is
Auto BooleanPurge Enabled - (Updatable) 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.
- resume
Trigger Boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger Boolean - (Updatable) An optional property when set to true triggers Start.
- state String
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - stop
Trigger Boolean - (Updatable) An optional property when set to true triggers Stop.
- target
Id String - The OCID of the target.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuditTrailManagement resource produces the following output properties:
- Audit
Profile stringId - The OCID of the parent audit.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Status string
- The current sub-state of the audit trail.
- 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"}
- 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 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- Audit
Profile stringId - The OCID of the parent audit.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- Status string
- The current sub-state of the audit trail.
- 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"}
- 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 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- Work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Profile StringId - The OCID of the parent audit.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- status String
- The current sub-state of the audit trail.
- 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"}
- 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 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
- audit
Profile stringId - The OCID of the parent audit.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the audit trail in Data Safe.
- status string
- The current sub-state of the audit trail.
- {[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"}
- 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 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 string - The date and time the audit trail was updated, in the format defined by RFC3339.
- work
Request stringId - The OCID of the workrequest for audit trail which collects audit records.
- audit_
profile_ strid - The OCID of the parent audit.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the audit trail in Data Safe.
- status str
- The current sub-state of the audit trail.
- 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"}
- 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 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.
- work_
request_ strid - The OCID of the workrequest for audit trail which collects audit records.
- audit
Profile StringId - The OCID of the parent audit.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the audit trail in Data Safe.
- status String
- The current sub-state of the audit trail.
- 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"}
- 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 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 String - The date and time the audit trail was updated, in the format defined by RFC3339.
- work
Request StringId - The OCID of the workrequest for audit trail which collects audit records.
Look up Existing AuditTrailManagement Resource
Get an existing AuditTrailManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuditTrailManagementState, opts?: CustomResourceOptions): AuditTrailManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_collection_start_time: Optional[str] = None,
audit_profile_id: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_auto_purge_enabled: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
resume_trigger: Optional[bool] = None,
start_trigger: Optional[bool] = None,
state: Optional[str] = None,
status: Optional[str] = None,
stop_trigger: Optional[bool] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_id: Optional[str] = None,
time_created: Optional[str] = None,
time_last_collected: Optional[str] = None,
time_updated: Optional[str] = None,
trail_location: Optional[str] = None,
work_request_id: Optional[str] = None) -> AuditTrailManagement
func GetAuditTrailManagement(ctx *Context, name string, id IDInput, state *AuditTrailManagementState, opts ...ResourceOption) (*AuditTrailManagement, error)
public static AuditTrailManagement Get(string name, Input<string> id, AuditTrailManagementState? state, CustomResourceOptions? opts = null)
public static AuditTrailManagement get(String name, Output<String> id, AuditTrailManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Audit
Collection stringStart Time The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Audit
Profile stringId - The OCID of the parent audit.
- Compartment
Id string - The OCID of the compartment that contains the target.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (Updatable) 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"}
- Is
Auto boolPurge Enabled - (Updatable) 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 bool - (Updatable) An optional property when set to true triggers Resume.
- Start
Trigger bool - (Updatable) An optional property when set to true triggers Start.
- State string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - Status string
- The current sub-state of the audit trail.
- Stop
Trigger bool - (Updatable) An optional property when set to true triggers Stop.
- 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 string - The OCID of the target.
- 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 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 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. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Audit
Profile stringId - The OCID of the parent audit.
- Compartment
Id string - The OCID of the compartment that contains the target.
- map[string]string
- (Updatable) 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
- (Updatable) The description of the audit trail.
- Display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- map[string]string
- (Updatable) 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"}
- Is
Auto boolPurge Enabled - (Updatable) 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 bool - (Updatable) An optional property when set to true triggers Resume.
- Start
Trigger bool - (Updatable) An optional property when set to true triggers Start.
- State string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - Status string
- The current sub-state of the audit trail.
- Stop
Trigger bool - (Updatable) An optional property when set to true triggers Stop.
- 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 string - The OCID of the target.
- 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 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 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. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- audit
Profile StringId - The OCID of the parent audit.
- compartment
Id String - The OCID of the compartment that contains the target.
- Map<String,String>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (Updatable) 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"}
- is
Auto BooleanPurge Enabled - (Updatable) 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 Boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger Boolean - (Updatable) An optional property when set to true triggers Start.
- state String
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - status String
- The current sub-state of the audit trail.
- stop
Trigger Boolean - (Updatable) An optional property when set to true triggers Stop.
- 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 String - The OCID of the target.
- 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 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 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. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- audit
Profile stringId - The OCID of the parent audit.
- compartment
Id string - The OCID of the compartment that contains the target.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name string - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (Updatable) 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"}
- is
Auto booleanPurge Enabled - (Updatable) 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 boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger boolean - (Updatable) An optional property when set to true triggers Start.
- state string
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - status string
- The current sub-state of the audit trail.
- stop
Trigger boolean - (Updatable) An optional property when set to true triggers Stop.
- {[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 string - The OCID of the target.
- 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 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 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. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- audit_
profile_ strid - The OCID of the parent audit.
- compartment_
id str - The OCID of the compartment that contains the target.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display_
name str - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (Updatable) 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"}
- is_
auto_ boolpurge_ enabled - (Updatable) 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 bool - (Updatable) An optional property when set to true triggers Resume.
- start_
trigger bool - (Updatable) An optional property when set to true triggers Start.
- state str
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - status str
- The current sub-state of the audit trail.
- stop_
trigger bool - (Updatable) An optional property when set to true triggers Stop.
- 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 str - The OCID of the target.
- 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 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.
- 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. It is a required field when start_trigger is set.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- audit
Profile StringId - The OCID of the parent audit.
- compartment
Id String - The OCID of the compartment that contains the target.
- Map<String>
- (Updatable) 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
- (Updatable) The description of the audit trail.
- display
Name String - (Updatable) The display name of the audit trail. The name does not have to be unique, and it's changeable.
- Map<String>
- (Updatable) 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"}
- is
Auto BooleanPurge Enabled - (Updatable) 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 Boolean - (Updatable) An optional property when set to true triggers Resume.
- start
Trigger Boolean - (Updatable) An optional property when set to true triggers Start.
- state String
- (Updatable) The target state for the Audit Trail Management. Could be set to
ACTIVE
orINACTIVE
. - status String
- The current sub-state of the audit trail.
- stop
Trigger Boolean - (Updatable) An optional property when set to true triggers Stop.
- 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 String - The OCID of the target.
- 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 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 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.
Import
Import is not supported for this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.