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

oci.CloudGuard.getDataSourceEvents

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 Data Source Events 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 testDataSourceEvents = oci.CloudGuard.getDataSourceEvents({
        dataSourceId: oci_cloud_guard_data_source.test_data_source.id,
        region: _var.data_source_event_region,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_data_source_events = oci.CloudGuard.get_data_source_events(data_source_id=oci_cloud_guard_data_source["test_data_source"]["id"],
        region=var["data_source_event_region"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_cloud_guard_data_source.Test_data_source.Id,
    			Region:       pulumi.StringRef(_var.Data_source_event_region),
    		}, 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 = oci_cloud_guard_data_source.Test_data_source.Id,
            Region = @var.Data_source_event_region,
        });
    
    });
    
    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(oci_cloud_guard_data_source.test_data_source().id())
                .region(var_.data_source_event_region())
                .build());
    
        }
    }
    
    variables:
      testDataSourceEvents:
        fn::invoke:
          Function: oci:CloudGuard:getDataSourceEvents
          Arguments:
            dataSourceId: ${oci_cloud_guard_data_source.test_data_source.id}
            region: ${var.data_source_event_region}
    

    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
    DataSource OCID
    Filters List<GetDataSourceEventsFilter>
    Region string
    A filter to return only resource their region matches the given region.
    DataSourceId string
    DataSource OCID
    Filters []GetDataSourceEventsFilter
    Region string
    A filter to return only resource their region matches the given region.
    dataSourceId String
    DataSource OCID
    filters List<GetDataSourceEventsFilter>
    region String
    A filter to return only resource their region matches the given region.
    dataSourceId string
    DataSource OCID
    filters GetDataSourceEventsFilter[]
    region string
    A filter to return only resource their region matches the given region.
    data_source_id str
    DataSource OCID
    filters Sequence[cloudguard.GetDataSourceEventsFilter]
    region str
    A filter to return only resource their region matches the given region.
    dataSourceId String
    DataSource OCID
    filters List<Property Map>
    region String
    A filter to return only resource 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
    Attached 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
    Attached 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
    Attached 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
    Attached 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
    Attached 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
    Attached 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 []GetDataSourceEventsDataSourceEventCollectionItem
    List of event related to a DataSource
    items GetDataSourceEventsDataSourceEventCollectionItem[]
    List of event related to a DataSource
    items List<Property Map>
    List of event related to a DataSource

    GetDataSourceEventsDataSourceEventCollectionItem

    Comments string
    Data source event comments
    DataSourceId string
    DataSource OCID
    EventDate string
    Data source event date time
    EventInfos List<GetDataSourceEventsDataSourceEventCollectionItemEventInfo>
    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
    DataSourceId string
    DataSource OCID
    EventDate string
    Data source event date time
    EventInfos []GetDataSourceEventsDataSourceEventCollectionItemEventInfo
    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
    dataSourceId String
    DataSource OCID
    eventDate String
    Data source event date time
    eventInfos List<GetDataSourceEventsDataSourceEventCollectionItemEventInfo>
    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
    dataSourceId string
    DataSource OCID
    eventDate string
    Data source event date time
    eventInfos GetDataSourceEventsDataSourceEventCollectionItemEventInfo[]
    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_id str
    DataSource OCID
    event_date str
    Data source event date time
    event_infos Sequence[cloudguard.GetDataSourceEventsDataSourceEventCollectionItemEventInfo]
    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
    dataSourceId String
    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

    GetDataSourceEventsDataSourceEventCollectionItemEventInfo

    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    LogResult string
    ObservedValue string
    Operator string
    TriggerValue string
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    LogResult string
    ObservedValue string
    Operator string
    TriggerValue string
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    logResult String
    observedValue String
    operator String
    triggerValue String
    dataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    logResult string
    observedValue string
    operator string
    triggerValue string
    data_source_feed_provider str
    Possible type of dataSourceFeed Provider(LoggingQuery)
    log_result str
    observed_value str
    operator str
    trigger_value str
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    logResult String
    observedValue String
    operator String
    triggerValue String

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi