1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Audit
  5. getEvents
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Audit.getEvents

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides the list of Audit Events in Oracle Cloud Infrastructure Audit service.

    Returns all the audit events processed for the specified compartment within the specified time range.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAuditEvents = oci.Audit.getEvents({
        compartmentId: _var.compartment_id,
        endTime: _var.audit_event_end_time,
        startTime: _var.audit_event_start_time,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_audit_events = oci.Audit.get_events(compartment_id=var["compartment_id"],
        end_time=var["audit_event_end_time"],
        start_time=var["audit_event_start_time"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Audit"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Audit.GetEvents(ctx, &audit.GetEventsArgs{
    			CompartmentId: _var.Compartment_id,
    			EndTime:       _var.Audit_event_end_time,
    			StartTime:     _var.Audit_event_start_time,
    		}, 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 testAuditEvents = Oci.Audit.GetEvents.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            EndTime = @var.Audit_event_end_time,
            StartTime = @var.Audit_event_start_time,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Audit.AuditFunctions;
    import com.pulumi.oci.Audit.inputs.GetEventsArgs;
    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 testAuditEvents = AuditFunctions.getEvents(GetEventsArgs.builder()
                .compartmentId(var_.compartment_id())
                .endTime(var_.audit_event_end_time())
                .startTime(var_.audit_event_start_time())
                .build());
    
        }
    }
    
    variables:
      testAuditEvents:
        fn::invoke:
          Function: oci:Audit:getEvents
          Arguments:
            compartmentId: ${var.compartment_id}
            endTime: ${var.audit_event_end_time}
            startTime: ${var.audit_event_start_time}
    

    Using getEvents

    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 getEvents(args: GetEventsArgs, opts?: InvokeOptions): Promise<GetEventsResult>
    function getEventsOutput(args: GetEventsOutputArgs, opts?: InvokeOptions): Output<GetEventsResult>
    def get_events(compartment_id: Optional[str] = None,
                   end_time: Optional[str] = None,
                   filters: Optional[Sequence[_audit.GetEventsFilter]] = None,
                   start_time: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetEventsResult
    def get_events_output(compartment_id: Optional[pulumi.Input[str]] = None,
                   end_time: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_audit.GetEventsFilterArgs]]]] = None,
                   start_time: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetEventsResult]
    func GetEvents(ctx *Context, args *GetEventsArgs, opts ...InvokeOption) (*GetEventsResult, error)
    func GetEventsOutput(ctx *Context, args *GetEventsOutputArgs, opts ...InvokeOption) GetEventsResultOutput

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

    public static class GetEvents 
    {
        public static Task<GetEventsResult> InvokeAsync(GetEventsArgs args, InvokeOptions? opts = null)
        public static Output<GetEventsResult> Invoke(GetEventsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventsResult> getEvents(GetEventsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Audit/getEvents:getEvents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    EndTime string

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    StartTime string

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    Filters List<GetEventsFilter>
    CompartmentId string
    The OCID of the compartment.
    EndTime string

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    StartTime string

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    Filters []GetEventsFilter
    compartmentId String
    The OCID of the compartment.
    endTime String

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    startTime String

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    filters List<GetEventsFilter>
    compartmentId string
    The OCID of the compartment.
    endTime string

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    startTime string

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    filters GetEventsFilter[]
    compartment_id str
    The OCID of the compartment.
    end_time str

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    start_time str

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    filters Sequence[audit.GetEventsFilter]
    compartmentId String
    The OCID of the compartment.
    endTime String

    Returns events that were processed before this end date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-01T00:00:00Z and an end value of 2017-01-02T00:00:00Z will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of 2017-01-01T00:00:00Z and an end value of 2017-02-01T00:00:00Z will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    startTime String

    Returns events that were processed at or after this start date and time, expressed in RFC 3339 timestamp format.

    For example, a start value of 2017-01-15T11:30:00Z will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to 0.

    filters List<Property Map>

    getEvents Result

    The following output properties are available:

    AuditEvents List<GetEventsAuditEvent>
    The list of audit_events.
    CompartmentId string
    The OCID of the compartment of the resource emitting the event.
    EndTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    StartTime string
    Filters List<GetEventsFilter>
    AuditEvents []GetEventsAuditEvent
    The list of audit_events.
    CompartmentId string
    The OCID of the compartment of the resource emitting the event.
    EndTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    StartTime string
    Filters []GetEventsFilter
    auditEvents List<GetEventsEvent>
    The list of audit_events.
    compartmentId String
    The OCID of the compartment of the resource emitting the event.
    endTime String
    id String
    The provider-assigned unique ID for this managed resource.
    startTime String
    filters List<GetEventsFilter>
    auditEvents GetEventsAuditEvent[]
    The list of audit_events.
    compartmentId string
    The OCID of the compartment of the resource emitting the event.
    endTime string
    id string
    The provider-assigned unique ID for this managed resource.
    startTime string
    filters GetEventsFilter[]
    audit_events Sequence[audit.GetEventsAuditEvent]
    The list of audit_events.
    compartment_id str
    The OCID of the compartment of the resource emitting the event.
    end_time str
    id str
    The provider-assigned unique ID for this managed resource.
    start_time str
    filters Sequence[audit.GetEventsFilter]
    auditEvents List<Property Map>
    The list of audit_events.
    compartmentId String
    The OCID of the compartment of the resource emitting the event.
    endTime String
    id String
    The provider-assigned unique ID for this managed resource.
    startTime String
    filters List<Property Map>

    Supporting Types

    GetEventsAuditEvent

    CloudEventsVersion string
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    ContentType string
    The content type of the data contained in data. Example: application/json
    Datas List<GetEventsAuditEventData>
    The payload of the event. Information within data comes from the resource emitting the event.
    EventId string
    The GUID of the event.
    EventTime string
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    EventType string
    The type of event that happened.
    EventTypeVersion string
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    Source string
    The source of the event. Example: ComputeApi
    CloudEventsVersion string
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    ContentType string
    The content type of the data contained in data. Example: application/json
    Datas []GetEventsAuditEventData
    The payload of the event. Information within data comes from the resource emitting the event.
    EventId string
    The GUID of the event.
    EventTime string
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    EventType string
    The type of event that happened.
    EventTypeVersion string
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    Source string
    The source of the event. Example: ComputeApi
    cloudEventsVersion String
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    contentType String
    The content type of the data contained in data. Example: application/json
    datas List<GetEventsEventData>
    The payload of the event. Information within data comes from the resource emitting the event.
    eventId String
    The GUID of the event.
    eventTime String
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    eventType String
    The type of event that happened.
    eventTypeVersion String
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    source String
    The source of the event. Example: ComputeApi
    cloudEventsVersion string
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    contentType string
    The content type of the data contained in data. Example: application/json
    datas GetEventsAuditEventData[]
    The payload of the event. Information within data comes from the resource emitting the event.
    eventId string
    The GUID of the event.
    eventTime string
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    eventType string
    The type of event that happened.
    eventTypeVersion string
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    source string
    The source of the event. Example: ComputeApi
    cloud_events_version str
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    content_type str
    The content type of the data contained in data. Example: application/json
    datas Sequence[audit.GetEventsAuditEventData]
    The payload of the event. Information within data comes from the resource emitting the event.
    event_id str
    The GUID of the event.
    event_time str
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    event_type str
    The type of event that happened.
    event_type_version str
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    source str
    The source of the event. Example: ComputeApi
    cloudEventsVersion String
    The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
    contentType String
    The content type of the data contained in data. Example: application/json
    datas List<Property Map>
    The payload of the event. Information within data comes from the resource emitting the event.
    eventId String
    The GUID of the event.
    eventTime String
    The time the event occurred, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.252Z
    eventType String
    The type of event that happened.
    eventTypeVersion String
    The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion to determine the version of the envelope. Example: 2.0
    source String
    The source of the event. Example: ComputeApi

    GetEventsAuditEventData

    AdditionalDetails Dictionary<string, object>
    A container object for attribues unique to the resource emitting the event.
    AvailabilityDomain string
    The availability domain where the resource resides.
    CompartmentId string
    The OCID of the compartment.
    CompartmentName string
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    EventGroupingId string
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    EventName string
    Name of the API operation that generated this event. Example: GetInstance
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Identities List<GetEventsAuditEventDataIdentity>
    A container object for identity attributes.
    Requests List<GetEventsAuditEventDataRequest>
    A container object for request attributes.
    ResourceId string
    An OCID or some other ID for the resource emitting the event.
    ResourceName string
    The name of the resource emitting the event.
    Responses List<GetEventsAuditEventDataResponse>
    A container object for response attributes.
    StateChanges List<GetEventsAuditEventDataStateChange>
    A container object for state change attributes.
    AdditionalDetails map[string]interface{}
    A container object for attribues unique to the resource emitting the event.
    AvailabilityDomain string
    The availability domain where the resource resides.
    CompartmentId string
    The OCID of the compartment.
    CompartmentName string
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    EventGroupingId string
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    EventName string
    Name of the API operation that generated this event. Example: GetInstance
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Identities []GetEventsAuditEventDataIdentity
    A container object for identity attributes.
    Requests []GetEventsAuditEventDataRequest
    A container object for request attributes.
    ResourceId string
    An OCID or some other ID for the resource emitting the event.
    ResourceName string
    The name of the resource emitting the event.
    Responses []GetEventsAuditEventDataResponse
    A container object for response attributes.
    StateChanges []GetEventsAuditEventDataStateChange
    A container object for state change attributes.
    additionalDetails Map<String,Object>
    A container object for attribues unique to the resource emitting the event.
    availabilityDomain String
    The availability domain where the resource resides.
    compartmentId String
    The OCID of the compartment.
    compartmentName String
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    eventGroupingId String
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    eventName String
    Name of the API operation that generated this event. Example: GetInstance
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    identities List<GetEventsEventDataIdentity>
    A container object for identity attributes.
    requests List<GetEventsEventDataRequest>
    A container object for request attributes.
    resourceId String
    An OCID or some other ID for the resource emitting the event.
    resourceName String
    The name of the resource emitting the event.
    responses List<GetEventsEventDataResponse>
    A container object for response attributes.
    stateChanges List<GetEventsEventDataStateChange>
    A container object for state change attributes.
    additionalDetails {[key: string]: any}
    A container object for attribues unique to the resource emitting the event.
    availabilityDomain string
    The availability domain where the resource resides.
    compartmentId string
    The OCID of the compartment.
    compartmentName string
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    eventGroupingId string
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    eventName string
    Name of the API operation that generated this event. Example: GetInstance
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    identities GetEventsAuditEventDataIdentity[]
    A container object for identity attributes.
    requests GetEventsAuditEventDataRequest[]
    A container object for request attributes.
    resourceId string
    An OCID or some other ID for the resource emitting the event.
    resourceName string
    The name of the resource emitting the event.
    responses GetEventsAuditEventDataResponse[]
    A container object for response attributes.
    stateChanges GetEventsAuditEventDataStateChange[]
    A container object for state change attributes.
    additional_details Mapping[str, Any]
    A container object for attribues unique to the resource emitting the event.
    availability_domain str
    The availability domain where the resource resides.
    compartment_id str
    The OCID of the compartment.
    compartment_name str
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    event_grouping_id str
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    event_name str
    Name of the API operation that generated this event. Example: GetInstance
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    identities Sequence[audit.GetEventsAuditEventDataIdentity]
    A container object for identity attributes.
    requests Sequence[audit.GetEventsAuditEventDataRequest]
    A container object for request attributes.
    resource_id str
    An OCID or some other ID for the resource emitting the event.
    resource_name str
    The name of the resource emitting the event.
    responses Sequence[audit.GetEventsAuditEventDataResponse]
    A container object for response attributes.
    state_changes Sequence[audit.GetEventsAuditEventDataStateChange]
    A container object for state change attributes.
    additionalDetails Map<Any>
    A container object for attribues unique to the resource emitting the event.
    availabilityDomain String
    The availability domain where the resource resides.
    compartmentId String
    The OCID of the compartment.
    compartmentName String
    The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event. Example: CompartmentA
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    eventGroupingId String
    This value links multiple audit events that are part of the same API operation. For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.
    eventName String
    Name of the API operation that generated this event. Example: GetInstance
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags. Example: {"Department": "Finance"}
    identities List<Property Map>
    A container object for identity attributes.
    requests List<Property Map>
    A container object for request attributes.
    resourceId String
    An OCID or some other ID for the resource emitting the event.
    resourceName String
    The name of the resource emitting the event.
    responses List<Property Map>
    A container object for response attributes.
    stateChanges List<Property Map>
    A container object for state change attributes.

    GetEventsAuditEventDataIdentity

    AuthType string
    The type of authentication used. Example: natv
    CallerId string
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    CallerName string
    The name of the user or service. This value is the friendly name associated with callerId.
    ConsoleSessionId string
    This value identifies any Console session associated with this request.
    Credentials string
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    IpAddress string
    The IP address of the source of the request. Example: 172.24.80.88
    PrincipalId string
    The OCID of the principal.
    PrincipalName string
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    TenantId string
    The OCID of the tenant.
    UserAgent string
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)
    AuthType string
    The type of authentication used. Example: natv
    CallerId string
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    CallerName string
    The name of the user or service. This value is the friendly name associated with callerId.
    ConsoleSessionId string
    This value identifies any Console session associated with this request.
    Credentials string
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    IpAddress string
    The IP address of the source of the request. Example: 172.24.80.88
    PrincipalId string
    The OCID of the principal.
    PrincipalName string
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    TenantId string
    The OCID of the tenant.
    UserAgent string
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)
    authType String
    The type of authentication used. Example: natv
    callerId String
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    callerName String
    The name of the user or service. This value is the friendly name associated with callerId.
    consoleSessionId String
    This value identifies any Console session associated with this request.
    credentials String
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    ipAddress String
    The IP address of the source of the request. Example: 172.24.80.88
    principalId String
    The OCID of the principal.
    principalName String
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    tenantId String
    The OCID of the tenant.
    userAgent String
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)
    authType string
    The type of authentication used. Example: natv
    callerId string
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    callerName string
    The name of the user or service. This value is the friendly name associated with callerId.
    consoleSessionId string
    This value identifies any Console session associated with this request.
    credentials string
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    ipAddress string
    The IP address of the source of the request. Example: 172.24.80.88
    principalId string
    The OCID of the principal.
    principalName string
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    tenantId string
    The OCID of the tenant.
    userAgent string
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)
    auth_type str
    The type of authentication used. Example: natv
    caller_id str
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    caller_name str
    The name of the user or service. This value is the friendly name associated with callerId.
    console_session_id str
    This value identifies any Console session associated with this request.
    credentials str
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    ip_address str
    The IP address of the source of the request. Example: 172.24.80.88
    principal_id str
    The OCID of the principal.
    principal_name str
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    tenant_id str
    The OCID of the tenant.
    user_agent str
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)
    authType String
    The type of authentication used. Example: natv
    callerId String
    The OCID of the caller. The caller that made a request on behalf of the prinicpal.
    callerName String
    The name of the user or service. This value is the friendly name associated with callerId.
    consoleSessionId String
    This value identifies any Console session associated with this request.
    credentials String
    The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
    ipAddress String
    The IP address of the source of the request. Example: 172.24.80.88
    principalId String
    The OCID of the principal.
    principalName String
    The name of the user or service. This value is the friendly name associated with principalId. Example: ExampleName
    tenantId String
    The OCID of the tenant.
    userAgent String
    The user agent of the client that made the request. Example: Jersey/2.23 (HttpUrlConnection 1.8.0_212)

    GetEventsAuditEventDataRequest

    Action string
    The HTTP method of the request. Example: GET
    Headers Dictionary<string, object>
    The headers of the response.
    Id string
    The opc-request-id of the request.
    Parameters Dictionary<string, object>
    The parameters supplied by the caller during this operation.
    Path string
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>
    Action string
    The HTTP method of the request. Example: GET
    Headers map[string]interface{}
    The headers of the response.
    Id string
    The opc-request-id of the request.
    Parameters map[string]interface{}
    The parameters supplied by the caller during this operation.
    Path string
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>
    action String
    The HTTP method of the request. Example: GET
    headers Map<String,Object>
    The headers of the response.
    id String
    The opc-request-id of the request.
    parameters Map<String,Object>
    The parameters supplied by the caller during this operation.
    path String
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>
    action string
    The HTTP method of the request. Example: GET
    headers {[key: string]: any}
    The headers of the response.
    id string
    The opc-request-id of the request.
    parameters {[key: string]: any}
    The parameters supplied by the caller during this operation.
    path string
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>
    action str
    The HTTP method of the request. Example: GET
    headers Mapping[str, Any]
    The headers of the response.
    id str
    The opc-request-id of the request.
    parameters Mapping[str, Any]
    The parameters supplied by the caller during this operation.
    path str
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>
    action String
    The HTTP method of the request. Example: GET
    headers Map<Any>
    The headers of the response.
    id String
    The opc-request-id of the request.
    parameters Map<Any>
    The parameters supplied by the caller during this operation.
    path String
    The full path of the API request. Example: /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>

    GetEventsAuditEventDataResponse

    Headers Dictionary<string, object>
    The headers of the response.
    Message string
    A friendly description of what happened during the operation. Use this for troubleshooting.
    Payload Dictionary<string, object>
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    ResponseTime string
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    Status string
    The status code of the response. Example: 200
    Headers map[string]interface{}
    The headers of the response.
    Message string
    A friendly description of what happened during the operation. Use this for troubleshooting.
    Payload map[string]interface{}
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    ResponseTime string
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    Status string
    The status code of the response. Example: 200
    headers Map<String,Object>
    The headers of the response.
    message String
    A friendly description of what happened during the operation. Use this for troubleshooting.
    payload Map<String,Object>
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    responseTime String
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    status String
    The status code of the response. Example: 200
    headers {[key: string]: any}
    The headers of the response.
    message string
    A friendly description of what happened during the operation. Use this for troubleshooting.
    payload {[key: string]: any}
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    responseTime string
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    status string
    The status code of the response. Example: 200
    headers Mapping[str, Any]
    The headers of the response.
    message str
    A friendly description of what happened during the operation. Use this for troubleshooting.
    payload Mapping[str, Any]
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    response_time str
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    status str
    The status code of the response. Example: 200
    headers Map<Any>
    The headers of the response.
    message String
    A friendly description of what happened during the operation. Use this for troubleshooting.
    payload Map<Any>
    This value is included for backward compatibility with the Audit version 1 schema, where it contained metadata of interest from the response payload.
    responseTime String
    The time of the response to the audited request, expressed in RFC 3339 timestamp format. Example: 2019-09-18T00:10:59.278Z
    status String
    The status code of the response. Example: 200

    GetEventsAuditEventDataStateChange

    Current Dictionary<string, object>
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    Previous Dictionary<string, object>
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.
    Current map[string]interface{}
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    Previous map[string]interface{}
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.
    current Map<String,Object>
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    previous Map<String,Object>
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.
    current {[key: string]: any}
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    previous {[key: string]: any}
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.
    current Mapping[str, Any]
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    previous Mapping[str, Any]
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.
    current Map<Any>
    Provides the current state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to previous.
    previous Map<Any>
    Provides the previous state of fields that may have changed during an operation. To determine how the current operation changed a resource, compare the information in this attribute to current.

    GetEventsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi