Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.CloudGuard.getDataSourceEvents
Start a Neo task
Explain and create an oci.CloudGuard.getDataSourceEvents resource
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/v3/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:
- Data
Source stringId - Data source OCID.
- Filters
List<Get
Data Source Events Filter> - Region string
- A filter to return only resource where their region matches the given region.
- Data
Source stringId - Data source OCID.
- Filters
[]Get
Data Source Events Filter - Region string
- A filter to return only resource where their region matches the given region.
- data
Source StringId - Data source OCID.
- filters
List<Get
Data Source Events Filter> - region String
- A filter to return only resource where their region matches the given region.
- data
Source stringId - Data source OCID.
- filters
Get
Data 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[Get
Data Source Events Filter] - region str
- A filter to return only resource where their region matches the given region.
- data
Source 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:
- Data
Source List<GetEvent Collections Data Source Events Data Source Event Collection> - The list of data_source_event_collection.
- Data
Source stringId - Unique identifier of data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Data Source Events Filter> - Region string
- Data source event region
- Data
Source []GetEvent Collections Data Source Events Data Source Event Collection - The list of data_source_event_collection.
- Data
Source stringId - Unique identifier of data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Data Source Events Filter - Region string
- Data source event region
- data
Source List<GetEvent Collections Data Source Events Data Source Event Collection> - The list of data_source_event_collection.
- data
Source StringId - Unique identifier of data source.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Data Source Events Filter> - region String
- Data source event region
- data
Source GetEvent Collections Data Source Events Data Source Event Collection[] - The list of data_source_event_collection.
- data
Source stringId - Unique identifier of data source.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Data 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[Get
Data Source Events Filter] - region str
- Data source event region
- data
Source List<Property Map>Event Collections - The list of data_source_event_collection.
- data
Source 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<Get
Data Source Events Data Source Event Collection Item> - List of events related to a data source
- Items
[]Get
Data Source Events Data Source Event Collection Item - List of events related to a data source
- items
List<Get
Data Source Events Data Source Event Collection Item> - List of events related to a data source
- items
Get
Data Source Events Data Source Event Collection Item[] - List of events related to a data source
- items
Sequence[Get
Data 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
- Data
Source stringId - Data source OCID.
- Event
Date string - Data source event date and time
- Event
Infos 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
- Time
Created string - Data source event creation date and time
- Comments string
- Data source event comments
- Data
Source stringId - Data source OCID.
- Event
Date string - Data source event date and time
- Event
Infos []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
- Time
Created string - Data source event creation date and time
- comments String
- Data source event comments
- data
Source StringId - Data source OCID.
- event
Date String - Data source event date and time
- event
Infos 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
- time
Created String - Data source event creation date and time
- comments string
- Data source event comments
- data
Source stringId - Data source OCID.
- event
Date string - Data source event date and time
- event
Infos 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
- time
Created 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
- data
Source StringId - Data source OCID.
- event
Date String - Data source event date and time
- event
Infos 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
- time
Created String - Data source event creation date and time
GetDataSourceEventsDataSourceEventCollectionItemEventInfo
- Data
Source stringFeed Provider - Possible type of dataSourceFeed Provider (LoggingQuery)
- Log
Result string - Log result details of DataSource for a Problem
- Observed
Value string - Observed value of DataSource for a Problem
- Operator string
- Operator details of DataSource for a Problem
- Trigger
Value string - Triggered value of DataSource for a Problem
- Data
Source stringFeed Provider - Possible type of dataSourceFeed Provider (LoggingQuery)
- Log
Result string - Log result details of DataSource for a Problem
- Observed
Value string - Observed value of DataSource for a Problem
- Operator string
- Operator details of DataSource for a Problem
- Trigger
Value string - Triggered value of DataSource for a Problem
- data
Source StringFeed Provider - Possible type of dataSourceFeed Provider (LoggingQuery)
- log
Result String - Log result details of DataSource for a Problem
- observed
Value String - Observed value of DataSource for a Problem
- operator String
- Operator details of DataSource for a Problem
- trigger
Value String - Triggered value of DataSource for a Problem
- data
Source stringFeed Provider - Possible type of dataSourceFeed Provider (LoggingQuery)
- log
Result string - Log result details of DataSource for a Problem
- observed
Value string - Observed value of DataSource for a Problem
- operator string
- Operator details of DataSource for a Problem
- trigger
Value 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
- data
Source StringFeed Provider - Possible type of dataSourceFeed Provider (LoggingQuery)
- log
Result String - Log result details of DataSource for a Problem
- observed
Value String - Observed value of DataSource for a Problem
- operator String
- Operator details of DataSource for a Problem
- trigger
Value 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.
