Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.CloudGuard.getDataSourceEvents
Explore with Pulumi AI
This data source provides the list of Data Source Events in Oracle Cloud Infrastructure Cloud Guard service.
Returns a list of data source events (DataSourceEventCollection resource) from the data source (DataSource resource) identified by dataSourceId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataSourceEvents = oci.CloudGuard.getDataSourceEvents({
    dataSourceId: testDataSource.id,
    region: dataSourceEventRegion,
});
import pulumi
import pulumi_oci as oci
test_data_source_events = oci.CloudGuard.get_data_source_events(data_source_id=test_data_source["id"],
    region=data_source_event_region)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/cloudguard"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudguard.GetDataSourceEvents(ctx, &cloudguard.GetDataSourceEventsArgs{
			DataSourceId: testDataSource.Id,
			Region:       pulumi.StringRef(dataSourceEventRegion),
		}, 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 testDataSourceEvents = Oci.CloudGuard.GetDataSourceEvents.Invoke(new()
    {
        DataSourceId = testDataSource.Id,
        Region = dataSourceEventRegion,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CloudGuard.CloudGuardFunctions;
import com.pulumi.oci.CloudGuard.inputs.GetDataSourceEventsArgs;
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 testDataSourceEvents = CloudGuardFunctions.getDataSourceEvents(GetDataSourceEventsArgs.builder()
            .dataSourceId(testDataSource.id())
            .region(dataSourceEventRegion)
            .build());
    }
}
variables:
  testDataSourceEvents:
    fn::invoke:
      function: oci:CloudGuard:getDataSourceEvents
      arguments:
        dataSourceId: ${testDataSource.id}
        region: ${dataSourceEventRegion}
Using getDataSourceEvents
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 getDataSourceEvents(args: GetDataSourceEventsArgs, opts?: InvokeOptions): Promise<GetDataSourceEventsResult>
function getDataSourceEventsOutput(args: GetDataSourceEventsOutputArgs, opts?: InvokeOptions): Output<GetDataSourceEventsResult>def get_data_source_events(data_source_id: Optional[str] = None,
                           filters: Optional[Sequence[GetDataSourceEventsFilter]] = None,
                           region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDataSourceEventsResult
def get_data_source_events_output(data_source_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDataSourceEventsFilterArgs]]]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceEventsResult]func GetDataSourceEvents(ctx *Context, args *GetDataSourceEventsArgs, opts ...InvokeOption) (*GetDataSourceEventsResult, error)
func GetDataSourceEventsOutput(ctx *Context, args *GetDataSourceEventsOutputArgs, opts ...InvokeOption) GetDataSourceEventsResultOutput> Note: This function is named GetDataSourceEvents in the Go SDK.
public static class GetDataSourceEvents 
{
    public static Task<GetDataSourceEventsResult> InvokeAsync(GetDataSourceEventsArgs args, InvokeOptions? opts = null)
    public static Output<GetDataSourceEventsResult> Invoke(GetDataSourceEventsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataSourceEventsResult> getDataSourceEvents(GetDataSourceEventsArgs args, InvokeOptions options)
public static Output<GetDataSourceEventsResult> getDataSourceEvents(GetDataSourceEventsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CloudGuard/getDataSourceEvents:getDataSourceEvents
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DataSource stringId 
- Data source OCID.
- Filters
List<GetData Source Events Filter> 
- Region string
- A filter to return only resource where their region matches the given region.
- DataSource stringId 
- Data source OCID.
- Filters
[]GetData Source Events Filter 
- Region string
- A filter to return only resource where their region matches the given region.
- dataSource StringId 
- Data source OCID.
- filters
List<GetData Source Events Filter> 
- region String
- A filter to return only resource where their region matches the given region.
- dataSource stringId 
- Data source OCID.
- filters
GetData Source Events Filter[] 
- region string
- A filter to return only resource where their region matches the given region.
- data_source_ strid 
- Data source OCID.
- filters
Sequence[GetData Source Events Filter] 
- region str
- A filter to return only resource where their region matches the given region.
- dataSource StringId 
- Data source OCID.
- filters List<Property Map>
- region String
- A filter to return only resource where their region matches the given region.
getDataSourceEvents Result
The following output properties are available:
- DataSource List<GetEvent Collections Data Source Events Data Source Event Collection> 
- The list of data_source_event_collection.
- DataSource stringId 
- Unique identifier of data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetData Source Events Filter> 
- Region string
- Data source event region
- DataSource []GetEvent Collections Data Source Events Data Source Event Collection 
- The list of data_source_event_collection.
- DataSource stringId 
- Unique identifier of data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetData Source Events Filter 
- Region string
- Data source event region
- dataSource List<GetEvent Collections Data Source Events Data Source Event Collection> 
- The list of data_source_event_collection.
- dataSource StringId 
- Unique identifier of data source.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetData Source Events Filter> 
- region String
- Data source event region
- dataSource GetEvent Collections Data Source Events Data Source Event Collection[] 
- The list of data_source_event_collection.
- dataSource stringId 
- Unique identifier of data source.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetData Source Events Filter[] 
- region string
- Data source event region
- data_source_ Sequence[Getevent_ collections Data Source Events Data Source Event Collection] 
- The list of data_source_event_collection.
- data_source_ strid 
- Unique identifier of data source.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetData Source Events Filter] 
- region str
- Data source event region
- dataSource List<Property Map>Event Collections 
- The list of data_source_event_collection.
- dataSource StringId 
- Unique identifier of data source.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- region String
- Data source event region
Supporting Types
GetDataSourceEventsDataSourceEventCollection       
- Items
List<GetData Source Events Data Source Event Collection Item> 
- List of events related to a data source
- Items
[]GetData Source Events Data Source Event Collection Item 
- List of events related to a data source
- items
List<GetData Source Events Data Source Event Collection Item> 
- List of events related to a data source
- items
GetData Source Events Data Source Event Collection Item[] 
- List of events related to a data source
- items
Sequence[GetData Source Events Data Source Event Collection Item] 
- List of events related to a data source
- items List<Property Map>
- List of events related to a data source
GetDataSourceEventsDataSourceEventCollectionItem        
- Comments string
- Data source event comments
- DataSource stringId 
- Data source OCID.
- EventDate string
- Data source event date and time
- EventInfos List<GetData Source Events Data Source Event Collection Item Event Info> 
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- Region string
- A filter to return only resource where their region matches the given region.
- Status string
- Current data source event info status
- TimeCreated string
- Data source event creation date and time
- Comments string
- Data source event comments
- DataSource stringId 
- Data source OCID.
- EventDate string
- Data source event date and time
- EventInfos []GetData Source Events Data Source Event Collection Item Event Info 
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- Region string
- A filter to return only resource where their region matches the given region.
- Status string
- Current data source event info status
- TimeCreated string
- Data source event creation date and time
- comments String
- Data source event comments
- dataSource StringId 
- Data source OCID.
- eventDate String
- Data source event date and time
- eventInfos List<GetData Source Events Data Source Event Collection Item Event Info> 
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- region String
- A filter to return only resource where their region matches the given region.
- status String
- Current data source event info status
- timeCreated String
- Data source event creation date and time
- comments string
- Data source event comments
- dataSource stringId 
- Data source OCID.
- eventDate string
- Data source event date and time
- eventInfos GetData Source Events Data Source Event Collection Item Event Info[] 
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- region string
- A filter to return only resource where their region matches the given region.
- status string
- Current data source event info status
- timeCreated string
- Data source event creation date and time
- comments str
- Data source event comments
- data_source_ strid 
- Data source OCID.
- event_date str
- Data source event date and time
- event_infos Sequence[GetData Source Events Data Source Event Collection Item Event Info] 
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- region str
- A filter to return only resource where their region matches the given region.
- status str
- Current data source event info status
- time_created str
- Data source event creation date and time
- comments String
- Data source event comments
- dataSource StringId 
- Data source OCID.
- eventDate String
- Data source event date and time
- eventInfos List<Property Map>
- This resource can have multiple subtypes, depending on the dataSourceFeedProvider value. For example, if dataSourceFeedProvider is LOGGINGQUERY, this resource will be of type LoggingEventInfo.
- region String
- A filter to return only resource where their region matches the given region.
- status String
- Current data source event info status
- timeCreated String
- Data source event creation date and time
GetDataSourceEventsDataSourceEventCollectionItemEventInfo          
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- LogResult string
- Log result details of DataSource for a Problem
- ObservedValue string
- Observed value of DataSource for a Problem
- Operator string
- Operator details of DataSource for a Problem
- TriggerValue string
- Triggered value of DataSource for a Problem
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- LogResult string
- Log result details of DataSource for a Problem
- ObservedValue string
- Observed value of DataSource for a Problem
- Operator string
- Operator details of DataSource for a Problem
- TriggerValue string
- Triggered value of DataSource for a Problem
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- logResult String
- Log result details of DataSource for a Problem
- observedValue String
- Observed value of DataSource for a Problem
- operator String
- Operator details of DataSource for a Problem
- triggerValue String
- Triggered value of DataSource for a Problem
- dataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- logResult string
- Log result details of DataSource for a Problem
- observedValue string
- Observed value of DataSource for a Problem
- operator string
- Operator details of DataSource for a Problem
- triggerValue string
- Triggered value of DataSource for a Problem
- data_source_ strfeed_ provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- log_result str
- Log result details of DataSource for a Problem
- observed_value str
- Observed value of DataSource for a Problem
- operator str
- Operator details of DataSource for a Problem
- trigger_value str
- Triggered value of DataSource for a Problem
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider (LoggingQuery)
- logResult String
- Log result details of DataSource for a Problem
- observedValue String
- Observed value of DataSource for a Problem
- operator String
- Operator details of DataSource for a Problem
- triggerValue String
- Triggered value of DataSource for a Problem
GetDataSourceEventsFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.