1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getDataSourceEvents
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.CloudGuard.getDataSourceEvents

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_cloudguard.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[_cloudguard.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudGuard/getDataSourceEvents:getDataSourceEvents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DataSourceId string
    Data source OCID.
    Filters List<GetDataSourceEventsFilter>
    Region string
    A filter to return only resource where their region matches the given region.
    DataSourceId string
    Data source OCID.
    Filters []GetDataSourceEventsFilter
    Region string
    A filter to return only resource where their region matches the given region.
    dataSourceId String
    Data source OCID.
    filters List<GetDataSourceEventsFilter>
    region String
    A filter to return only resource where their region matches the given region.
    dataSourceId string
    Data source OCID.
    filters GetDataSourceEventsFilter[]
    region string
    A filter to return only resource where their region matches the given region.
    data_source_id str
    Data source OCID.
    filters Sequence[cloudguard.GetDataSourceEventsFilter]
    region str
    A filter to return only resource where their region matches the given region.
    dataSourceId String
    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:

    DataSourceEventCollections List<GetDataSourceEventsDataSourceEventCollection>
    The list of data_source_event_collection.
    DataSourceId string
    Unique identifier of data source.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetDataSourceEventsFilter>
    Region string
    Data source event region
    DataSourceEventCollections []GetDataSourceEventsDataSourceEventCollection
    The list of data_source_event_collection.
    DataSourceId string
    Unique identifier of data source.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDataSourceEventsFilter
    Region string
    Data source event region
    dataSourceEventCollections List<GetDataSourceEventsDataSourceEventCollection>
    The list of data_source_event_collection.
    dataSourceId String
    Unique identifier of data source.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDataSourceEventsFilter>
    region String
    Data source event region
    dataSourceEventCollections GetDataSourceEventsDataSourceEventCollection[]
    The list of data_source_event_collection.
    dataSourceId string
    Unique identifier of data source.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDataSourceEventsFilter[]
    region string
    Data source event region
    data_source_event_collections Sequence[cloudguard.GetDataSourceEventsDataSourceEventCollection]
    The list of data_source_event_collection.
    data_source_id str
    Unique identifier of data source.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[cloudguard.GetDataSourceEventsFilter]
    region str
    Data source event region
    dataSourceEventCollections List<Property Map>
    The list of data_source_event_collection.
    dataSourceId String
    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<GetDataSourceEventsDataSourceEventCollectionItem>
    List of events related to a data source
    Items []GetDataSourceEventsDataSourceEventCollectionItem
    List of events related to a data source
    items List<GetDataSourceEventsDataSourceEventCollectionItem>
    List of events related to a data source
    items GetDataSourceEventsDataSourceEventCollectionItem[]
    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
    DataSourceId string
    Data source OCID.
    EventDate string
    Data source event date and time
    EventInfos List<GetDataSourceEventsDataSourceEventCollectionItemEventInfo>
    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
    DataSourceId string
    Data source OCID.
    EventDate string
    Data source event date and time
    EventInfos []GetDataSourceEventsDataSourceEventCollectionItemEventInfo
    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
    dataSourceId String
    Data source OCID.
    eventDate String
    Data source event date and time
    eventInfos List<GetDataSourceEventsDataSourceEventCollectionItemEventInfo>
    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
    dataSourceId string
    Data source OCID.
    eventDate string
    Data source event date and time
    eventInfos GetDataSourceEventsDataSourceEventCollectionItemEventInfo[]
    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_id str
    Data source OCID.
    event_date str
    Data source event date and time
    event_infos Sequence[cloudguard.GetDataSourceEventsDataSourceEventCollectionItemEventInfo]
    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
    dataSourceId String
    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

    DataSourceFeedProvider string
    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
    DataSourceFeedProvider string
    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
    dataSourceFeedProvider String
    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
    dataSourceFeedProvider string
    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_feed_provider str
    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
    dataSourceFeedProvider String
    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

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi