Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.CloudGuard.getDataSourceEvent
Explore with Pulumi AI
This data source provides details about a specific Data Source Event resource in Oracle Cloud Infrastructure Cloud Guard service.
Returns a list of events from CloudGuard DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataSourceEvent = oci.CloudGuard.getDataSourceEvent({
    dataSourceId: testDataSource.id,
    region: dataSourceEventRegion,
});
import pulumi
import pulumi_oci as oci
test_data_source_event = oci.CloudGuard.get_data_source_event(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.GetDataSourceEvent(ctx, &cloudguard.GetDataSourceEventArgs{
			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 testDataSourceEvent = Oci.CloudGuard.GetDataSourceEvent.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.GetDataSourceEventArgs;
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 testDataSourceEvent = CloudGuardFunctions.getDataSourceEvent(GetDataSourceEventArgs.builder()
            .dataSourceId(testDataSource.id())
            .region(dataSourceEventRegion)
            .build());
    }
}
variables:
  testDataSourceEvent:
    fn::invoke:
      function: oci:CloudGuard:getDataSourceEvent
      arguments:
        dataSourceId: ${testDataSource.id}
        region: ${dataSourceEventRegion}
Using getDataSourceEvent
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 getDataSourceEvent(args: GetDataSourceEventArgs, opts?: InvokeOptions): Promise<GetDataSourceEventResult>
function getDataSourceEventOutput(args: GetDataSourceEventOutputArgs, opts?: InvokeOptions): Output<GetDataSourceEventResult>def get_data_source_event(data_source_id: Optional[str] = None,
                          region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDataSourceEventResult
def get_data_source_event_output(data_source_id: Optional[pulumi.Input[str]] = None,
                          region: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceEventResult]func GetDataSourceEvent(ctx *Context, args *GetDataSourceEventArgs, opts ...InvokeOption) (*GetDataSourceEventResult, error)
func GetDataSourceEventOutput(ctx *Context, args *GetDataSourceEventOutputArgs, opts ...InvokeOption) GetDataSourceEventResultOutput> Note: This function is named GetDataSourceEvent in the Go SDK.
public static class GetDataSourceEvent 
{
    public static Task<GetDataSourceEventResult> InvokeAsync(GetDataSourceEventArgs args, InvokeOptions? opts = null)
    public static Output<GetDataSourceEventResult> Invoke(GetDataSourceEventInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataSourceEventResult> getDataSourceEvent(GetDataSourceEventArgs args, InvokeOptions options)
public static Output<GetDataSourceEventResult> getDataSourceEvent(GetDataSourceEventArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CloudGuard/getDataSourceEvent:getDataSourceEvent
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DataSource stringId 
- DataSource OCID
- Region string
- A filter to return only resource their region matches the given region.
- DataSource stringId 
- DataSource OCID
- Region string
- A filter to return only resource their region matches the given region.
- dataSource StringId 
- DataSource OCID
- region String
- A filter to return only resource their region matches the given region.
- dataSource stringId 
- DataSource OCID
- region string
- A filter to return only resource their region matches the given region.
- data_source_ strid 
- DataSource OCID
- region str
- A filter to return only resource their region matches the given region.
- dataSource StringId 
- DataSource OCID
- region String
- A filter to return only resource their region matches the given region.
getDataSourceEvent Result
The following output properties are available:
- DataSource stringId 
- Attached data Source
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetData Source Event Item> 
- List of event related to a DataSource
- Region string
- Data source event region
- DataSource stringId 
- Attached data Source
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetData Source Event Item 
- List of event related to a DataSource
- Region string
- Data source event region
- dataSource StringId 
- Attached data Source
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetData Source Event Item> 
- List of event related to a DataSource
- region String
- Data source event region
- dataSource stringId 
- Attached data Source
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetData Source Event Item[] 
- List of event related to a DataSource
- region string
- Data source event region
- data_source_ strid 
- Attached data Source
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetData Source Event Item] 
- List of event related to a DataSource
- region str
- Data source event region
- dataSource StringId 
- Attached data Source
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- List of event related to a DataSource
- region String
- Data source event region
Supporting Types
GetDataSourceEventItem    
- Comments string
- Data source event comments
- DataSource stringId 
- DataSource OCID
- EventDate string
- Data source event date time
- EventInfos List<GetData Source Event Item Event Info> 
- Event info of a data source.
- Region string
- A filter to return only resource their region matches the given region.
- Status string
- Current data source event info status
- TimeCreated string
- Data source event created time
- Comments string
- Data source event comments
- DataSource stringId 
- DataSource OCID
- EventDate string
- Data source event date time
- EventInfos []GetData Source Event Item Event Info 
- Event info of a data source.
- Region string
- A filter to return only resource their region matches the given region.
- Status string
- Current data source event info status
- TimeCreated string
- Data source event created time
- comments String
- Data source event comments
- dataSource StringId 
- DataSource OCID
- eventDate String
- Data source event date time
- eventInfos List<GetData Source Event Item Event Info> 
- Event info of a data source.
- region String
- A filter to return only resource their region matches the given region.
- status String
- Current data source event info status
- timeCreated String
- Data source event created time
- comments string
- Data source event comments
- dataSource stringId 
- DataSource OCID
- eventDate string
- Data source event date time
- eventInfos GetData Source Event Item Event Info[] 
- Event info of a data source.
- region string
- A filter to return only resource their region matches the given region.
- status string
- Current data source event info status
- timeCreated string
- Data source event created time
- comments str
- Data source event comments
- data_source_ strid 
- DataSource OCID
- event_date str
- Data source event date time
- event_infos Sequence[GetData Source Event Item Event Info] 
- Event info of a data source.
- region str
- A filter to return only resource their region matches the given region.
- status str
- Current data source event info status
- time_created str
- Data source event created time
- comments String
- Data source event comments
- dataSource StringId 
- DataSource OCID
- eventDate String
- Data source event date time
- eventInfos List<Property Map>
- Event info of a data source.
- region String
- A filter to return only resource their region matches the given region.
- status String
- Current data source event info status
- timeCreated String
- Data source event created time
GetDataSourceEventItemEventInfo      
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- LogResult string
- ObservedValue string
- Operator string
- TriggerValue string
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- LogResult string
- ObservedValue string
- Operator string
- TriggerValue string
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- logResult String
- observedValue String
- operator String
- triggerValue String
- dataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- logResult string
- observedValue string
- operator string
- triggerValue string
- data_source_ strfeed_ provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- log_result str
- observed_value str
- operator str
- trigger_value str
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- logResult String
- observedValue String
- operator String
- triggerValue String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.