oci.DataSafe.getAuditEvent
Explore with Pulumi AI
This data source provides details about a specific Audit Event resource in Oracle Cloud Infrastructure Data Safe service.
The ListAuditEvents operation returns specified compartmentId
audit Events only.
The list does not include any audit Events associated with the subcompartments
of the specified compartmentId
.
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 ListAuditEvents 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 testAuditEvent = oci.DataSafe.getAuditEvent({
compartmentId: compartmentId,
accessLevel: auditEventAccessLevel,
compartmentIdInSubtree: auditEventCompartmentIdInSubtree,
scimQuery: auditEventScimQuery,
});
import pulumi
import pulumi_oci as oci
test_audit_event = oci.DataSafe.get_audit_event(compartment_id=compartment_id,
access_level=audit_event_access_level,
compartment_id_in_subtree=audit_event_compartment_id_in_subtree,
scim_query=audit_event_scim_query)
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.GetAuditEvent(ctx, &datasafe.GetAuditEventArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(auditEventAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(auditEventCompartmentIdInSubtree),
ScimQuery: pulumi.StringRef(auditEventScimQuery),
}, 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 testAuditEvent = Oci.DataSafe.GetAuditEvent.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = auditEventAccessLevel,
CompartmentIdInSubtree = auditEventCompartmentIdInSubtree,
ScimQuery = auditEventScimQuery,
});
});
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.GetAuditEventArgs;
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 testAuditEvent = DataSafeFunctions.getAuditEvent(GetAuditEventArgs.builder()
.compartmentId(compartmentId)
.accessLevel(auditEventAccessLevel)
.compartmentIdInSubtree(auditEventCompartmentIdInSubtree)
.scimQuery(auditEventScimQuery)
.build());
}
}
variables:
testAuditEvent:
fn::invoke:
function: oci:DataSafe:getAuditEvent
arguments:
compartmentId: ${compartmentId}
accessLevel: ${auditEventAccessLevel}
compartmentIdInSubtree: ${auditEventCompartmentIdInSubtree}
scimQuery: ${auditEventScimQuery}
Using getAuditEvent
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 getAuditEvent(args: GetAuditEventArgs, opts?: InvokeOptions): Promise<GetAuditEventResult>
function getAuditEventOutput(args: GetAuditEventOutputArgs, opts?: InvokeOptions): Output<GetAuditEventResult>
def get_audit_event(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
scim_query: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuditEventResult
def get_audit_event_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
scim_query: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuditEventResult]
func GetAuditEvent(ctx *Context, args *GetAuditEventArgs, opts ...InvokeOption) (*GetAuditEventResult, error)
func GetAuditEventOutput(ctx *Context, args *GetAuditEventOutputArgs, opts ...InvokeOption) GetAuditEventResultOutput
> Note: This function is named GetAuditEvent
in the Go SDK.
public static class GetAuditEvent
{
public static Task<GetAuditEventResult> InvokeAsync(GetAuditEventArgs args, InvokeOptions? opts = null)
public static Output<GetAuditEventResult> Invoke(GetAuditEventInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuditEventResult> getAuditEvent(GetAuditEventArgs args, InvokeOptions options)
public static Output<GetAuditEventResult> getAuditEvent(GetAuditEventArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getAuditEvent:getAuditEvent
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- Compartment
Id boolIn Subtree - 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.
- Scim
Query string The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Access
Level 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.
- Compartment
Id boolIn Subtree - 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.
- Scim
Query string The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id BooleanIn Subtree - 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.
- scim
Query String The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
- compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id booleanIn Subtree - 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.
- scim
Query string The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
- compartment_
id This property is required. 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.
- compartment_
id_ boolin_ subtree - 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.
- scim_
query str The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- access
Level 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.
- compartment
Id BooleanIn Subtree - 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.
- scim
Query String The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at RFC3339. In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.)
Example: query=(operationTime ge '2021-06-04T01-00-26') and (eventName eq 'LOGON')
getAuditEvent Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Audit Event Item> - Array of audit event summary.
- Access
Level string - Compartment
Id boolIn Subtree - Scim
Query string
- Compartment
Id string - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Audit Event Item - Array of audit event summary.
- Access
Level string - Compartment
Id boolIn Subtree - Scim
Query string
- compartment
Id String - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Audit Event Item> - Array of audit event summary.
- access
Level String - compartment
Id BooleanIn Subtree - scim
Query String
- compartment
Id string - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Audit Event Item[] - Array of audit event summary.
- access
Level string - compartment
Id booleanIn Subtree - scim
Query string
- compartment_
id str - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[datasafe.
Get Audit Event Item] - Array of audit event summary.
- access_
level str - compartment_
id_ boolin_ subtree - scim_
query str
- compartment
Id String - The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of audit event summary.
- access
Level String - compartment
Id BooleanIn Subtree - scim
Query String
Supporting Types
GetAuditEventItem
- Action
Taken This property is required. string - The action taken for this audit event.
- Audit
Event Time This property is required. string - Time of audit event occurrence in the target database.
- Audit
Location This property is required. string - The location of the audit. Currently the value is audit table.
- Audit
Policies This property is required. string - Comma-seperated list of audit policies that caused the current audit event.
- Audit
Trail Id This property is required. string - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- Audit
Type This property is required. string - Type of auditing.
- Client
Hostname This property is required. string - Name of the host machine from which the session was spawned.
- Client
Id This property is required. string - The client identifier in each Oracle session.
- Client
Ip This property is required. string - IP address of the host from which the session was spawned.
- Client
Program This property is required. string - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- Command
Param This property is required. string - List of bind variables associated with the command text.
- Command
Text This property is required. string - The SQL associated with the audit event.
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Database
Type This property is required. string - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- Db
User Name This property is required. string - Name of the database user whose actions were audited.
This property is required. Dictionary<string, string>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Error
Code This property is required. string - Oracle Error code generated by the action. Zero indicates the action was successful.
- Error
Message This property is required. string - Detailed message on why the Error occurred.
- Event
Name This property is required. string - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- Extended
Event Attributes This property is required. string - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. Dictionary<string, 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 Example:
{"Department": "Finance"}
- Id
This property is required. string - The OCID of the audit event.
- Is
Alerted This property is required. bool - Indicates whether an alert was raised for this audit event.
- Object
This property is required. string - Name of the object affected by the action.
- Object
Owner This property is required. string - Schema name of object affected but the action.
- Object
Type This property is required. string - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- Operation
This property is required. string - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- Operation
Status This property is required. string - Indicates whether the operation was a success or a failure.
- Os
Terminal This property is required. string - The operating system terminal of the user session.
- Os
User Name This property is required. string - Name of the operating system user for the database session.
- Target
Class This property is required. string - Class of the target that was audited.
- Target
Id This property is required. string - The OCID of the target database that was audited.
- Target
Name This property is required. string - The name of the target database that was audited.
- Time
Collected This property is required. string - Timestamp when this audit event was collected from the target database by Data Safe.
- Action
Taken This property is required. string - The action taken for this audit event.
- Audit
Event Time This property is required. string - Time of audit event occurrence in the target database.
- Audit
Location This property is required. string - The location of the audit. Currently the value is audit table.
- Audit
Policies This property is required. string - Comma-seperated list of audit policies that caused the current audit event.
- Audit
Trail Id This property is required. string - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- Audit
Type This property is required. string - Type of auditing.
- Client
Hostname This property is required. string - Name of the host machine from which the session was spawned.
- Client
Id This property is required. string - The client identifier in each Oracle session.
- Client
Ip This property is required. string - IP address of the host from which the session was spawned.
- Client
Program This property is required. string - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- Command
Param This property is required. string - List of bind variables associated with the command text.
- Command
Text This property is required. string - The SQL associated with the audit event.
- Compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- Database
Type This property is required. string - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- Db
User Name This property is required. string - Name of the database user whose actions were audited.
This property is required. map[string]string- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Error
Code This property is required. string - Oracle Error code generated by the action. Zero indicates the action was successful.
- Error
Message This property is required. string - Detailed message on why the Error occurred.
- Event
Name This property is required. string - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- Extended
Event Attributes This property is required. string - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. map[string]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 Example:
{"Department": "Finance"}
- Id
This property is required. string - The OCID of the audit event.
- Is
Alerted This property is required. bool - Indicates whether an alert was raised for this audit event.
- Object
This property is required. string - Name of the object affected by the action.
- Object
Owner This property is required. string - Schema name of object affected but the action.
- Object
Type This property is required. string - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- Operation
This property is required. string - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- Operation
Status This property is required. string - Indicates whether the operation was a success or a failure.
- Os
Terminal This property is required. string - The operating system terminal of the user session.
- Os
User Name This property is required. string - Name of the operating system user for the database session.
- Target
Class This property is required. string - Class of the target that was audited.
- Target
Id This property is required. string - The OCID of the target database that was audited.
- Target
Name This property is required. string - The name of the target database that was audited.
- Time
Collected This property is required. string - Timestamp when this audit event was collected from the target database by Data Safe.
- action
Taken This property is required. String - The action taken for this audit event.
- audit
Event Time This property is required. String - Time of audit event occurrence in the target database.
- audit
Location This property is required. String - The location of the audit. Currently the value is audit table.
- audit
Policies This property is required. String - Comma-seperated list of audit policies that caused the current audit event.
- audit
Trail Id This property is required. String - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- audit
Type This property is required. String - Type of auditing.
- client
Hostname This property is required. String - Name of the host machine from which the session was spawned.
- client
Id This property is required. String - The client identifier in each Oracle session.
- client
Ip This property is required. String - IP address of the host from which the session was spawned.
- client
Program This property is required. String - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- command
Param This property is required. String - List of bind variables associated with the command text.
- command
Text This property is required. String - The SQL associated with the audit event.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- database
Type This property is required. String - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- db
User Name This property is required. String - Name of the database user whose actions were audited.
This property is required. Map<String,String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- error
Code This property is required. String - Oracle Error code generated by the action. Zero indicates the action was successful.
- error
Message This property is required. String - Detailed message on why the Error occurred.
- event
Name This property is required. String - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- extended
Event Attributes This property is required. String - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. Map<String,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 Example:
{"Department": "Finance"}
- id
This property is required. String - The OCID of the audit event.
- is
Alerted This property is required. Boolean - Indicates whether an alert was raised for this audit event.
- object
This property is required. String - Name of the object affected by the action.
- object
Owner This property is required. String - Schema name of object affected but the action.
- object
Type This property is required. String - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- operation
This property is required. String - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- operation
Status This property is required. String - Indicates whether the operation was a success or a failure.
- os
Terminal This property is required. String - The operating system terminal of the user session.
- os
User Name This property is required. String - Name of the operating system user for the database session.
- target
Class This property is required. String - Class of the target that was audited.
- target
Id This property is required. String - The OCID of the target database that was audited.
- target
Name This property is required. String - The name of the target database that was audited.
- time
Collected This property is required. String - Timestamp when this audit event was collected from the target database by Data Safe.
- action
Taken This property is required. string - The action taken for this audit event.
- audit
Event Time This property is required. string - Time of audit event occurrence in the target database.
- audit
Location This property is required. string - The location of the audit. Currently the value is audit table.
- audit
Policies This property is required. string - Comma-seperated list of audit policies that caused the current audit event.
- audit
Trail Id This property is required. string - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- audit
Type This property is required. string - Type of auditing.
- client
Hostname This property is required. string - Name of the host machine from which the session was spawned.
- client
Id This property is required. string - The client identifier in each Oracle session.
- client
Ip This property is required. string - IP address of the host from which the session was spawned.
- client
Program This property is required. string - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- command
Param This property is required. string - List of bind variables associated with the command text.
- command
Text This property is required. string - The SQL associated with the audit event.
- compartment
Id This property is required. string - A filter to return only resources that match the specified compartment OCID.
- database
Type This property is required. string - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- db
User Name This property is required. string - Name of the database user whose actions were audited.
This property is required. {[key: string]: string}- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- error
Code This property is required. string - Oracle Error code generated by the action. Zero indicates the action was successful.
- error
Message This property is required. string - Detailed message on why the Error occurred.
- event
Name This property is required. string - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- extended
Event Attributes This property is required. string - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. {[key: string]: 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 Example:
{"Department": "Finance"}
- id
This property is required. string - The OCID of the audit event.
- is
Alerted This property is required. boolean - Indicates whether an alert was raised for this audit event.
- object
This property is required. string - Name of the object affected by the action.
- object
Owner This property is required. string - Schema name of object affected but the action.
- object
Type This property is required. string - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- operation
This property is required. string - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- operation
Status This property is required. string - Indicates whether the operation was a success or a failure.
- os
Terminal This property is required. string - The operating system terminal of the user session.
- os
User Name This property is required. string - Name of the operating system user for the database session.
- target
Class This property is required. string - Class of the target that was audited.
- target
Id This property is required. string - The OCID of the target database that was audited.
- target
Name This property is required. string - The name of the target database that was audited.
- time
Collected This property is required. string - Timestamp when this audit event was collected from the target database by Data Safe.
- action_
taken This property is required. str - The action taken for this audit event.
- audit_
event_ time This property is required. str - Time of audit event occurrence in the target database.
- audit_
location This property is required. str - The location of the audit. Currently the value is audit table.
- audit_
policies This property is required. str - Comma-seperated list of audit policies that caused the current audit event.
- audit_
trail_ id This property is required. str - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- audit_
type This property is required. str - Type of auditing.
- client_
hostname This property is required. str - Name of the host machine from which the session was spawned.
- client_
id This property is required. str - The client identifier in each Oracle session.
- client_
ip This property is required. str - IP address of the host from which the session was spawned.
- client_
program This property is required. str - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- command_
param This property is required. str - List of bind variables associated with the command text.
- command_
text This property is required. str - The SQL associated with the audit event.
- compartment_
id This property is required. str - A filter to return only resources that match the specified compartment OCID.
- database_
type This property is required. str - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- db_
user_ name This property is required. str - Name of the database user whose actions were audited.
This property is required. Mapping[str, str]- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- error_
code This property is required. str - Oracle Error code generated by the action. Zero indicates the action was successful.
- error_
message This property is required. str - Detailed message on why the Error occurred.
- event_
name This property is required. str - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- extended_
event_ attributes This property is required. str - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. Mapping[str, str]- 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
This property is required. str - The OCID of the audit event.
- is_
alerted This property is required. bool - Indicates whether an alert was raised for this audit event.
- object
This property is required. str - Name of the object affected by the action.
- object_
owner This property is required. str - Schema name of object affected but the action.
- object_
type This property is required. str - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- operation
This property is required. str - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- operation_
status This property is required. str - Indicates whether the operation was a success or a failure.
- os_
terminal This property is required. str - The operating system terminal of the user session.
- os_
user_ name This property is required. str - Name of the operating system user for the database session.
- target_
class This property is required. str - Class of the target that was audited.
- target_
id This property is required. str - The OCID of the target database that was audited.
- target_
name This property is required. str - The name of the target database that was audited.
- time_
collected This property is required. str - Timestamp when this audit event was collected from the target database by Data Safe.
- action
Taken This property is required. String - The action taken for this audit event.
- audit
Event Time This property is required. String - Time of audit event occurrence in the target database.
- audit
Location This property is required. String - The location of the audit. Currently the value is audit table.
- audit
Policies This property is required. String - Comma-seperated list of audit policies that caused the current audit event.
- audit
Trail Id This property is required. String - The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
- audit
Type This property is required. String - Type of auditing.
- client
Hostname This property is required. String - Name of the host machine from which the session was spawned.
- client
Id This property is required. String - The client identifier in each Oracle session.
- client
Ip This property is required. String - IP address of the host from which the session was spawned.
- client
Program This property is required. String - The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
- command
Param This property is required. String - List of bind variables associated with the command text.
- command
Text This property is required. String - The SQL associated with the audit event.
- compartment
Id This property is required. String - A filter to return only resources that match the specified compartment OCID.
- database
Type This property is required. String - The type of the target database that was audited. Allowed values are
- DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services.
- AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases.
- INSTALLED_DATABASE - Represents databases running on-premises or on compute instances.
- db
User Name This property is required. String - Name of the database user whose actions were audited.
This property is required. Map<String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- error
Code This property is required. String - Oracle Error code generated by the action. Zero indicates the action was successful.
- error
Message This property is required. String - Detailed message on why the Error occurred.
- event
Name This property is required. String - Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
- extended
Event Attributes This property is required. String - List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
This property is required. Map<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 Example:
{"Department": "Finance"}
- id
This property is required. String - The OCID of the audit event.
- is
Alerted This property is required. Boolean - Indicates whether an alert was raised for this audit event.
- object
This property is required. String - Name of the object affected by the action.
- object
Owner This property is required. String - Schema name of object affected but the action.
- object
Type This property is required. String - Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
- operation
This property is required. String - Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
- operation
Status This property is required. String - Indicates whether the operation was a success or a failure.
- os
Terminal This property is required. String - The operating system terminal of the user session.
- os
User Name This property is required. String - Name of the operating system user for the database session.
- target
Class This property is required. String - Class of the target that was audited.
- target
Id This property is required. String - The OCID of the target database that was audited.
- target
Name This property is required. String - The name of the target database that was audited.
- time
Collected This property is required. String - Timestamp when this audit event was collected from the target database by Data Safe.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.