oci logo
Oracle Cloud Infrastructure v0.19.0, May 26 23

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

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 = 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.GetDataSourceEvent(ctx, &cloudguard.GetDataSourceEventArgs{
			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
	})
}
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(oci_cloud_guard_data_source.test_data_source().id())
            .region(var_.data_source_event_region())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_data_source_event = oci.CloudGuard.get_data_source_event(data_source_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    region=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDataSourceEvent = oci.CloudGuard.getDataSourceEvent({
    dataSourceId: oci_cloud_guard_data_source.test_data_source.id,
    region: _var.data_source_event_region,
});
variables:
  testDataSourceEvent:
    fn::invoke:
      Function: oci:CloudGuard:getDataSourceEvent
      Arguments:
        dataSourceId: ${oci_cloud_guard_data_source.test_data_source.id}
        region: ${var.data_source_event_region}

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

The following arguments are supported:

DataSourceId string

DataSource OCID

Region string

A filter to return only resource their region matches the given region.

DataSourceId string

DataSource OCID

Region string

A filter to return only resource their region matches the given region.

dataSourceId String

DataSource OCID

region String

A filter to return only resource their region matches the given region.

dataSourceId string

DataSource OCID

region string

A filter to return only resource their region matches the given region.

data_source_id str

DataSource OCID

region str

A filter to return only resource their region matches the given region.

dataSourceId String

DataSource OCID

region String

A filter to return only resource their region matches the given region.

getDataSourceEvent Result

The following output properties are available:

DataSourceId string

Attached data Source

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetDataSourceEventItem>

List of event related to a DataSource

Region string

Data source event region

DataSourceId string

Attached data Source

Id string

The provider-assigned unique ID for this managed resource.

Items []GetDataSourceEventItem

List of event related to a DataSource

Region string

Data source event region

dataSourceId String

Attached data Source

id String

The provider-assigned unique ID for this managed resource.

items List<GetDataSourceEventItem>

List of event related to a DataSource

region String

Data source event region

dataSourceId string

Attached data Source

id string

The provider-assigned unique ID for this managed resource.

items GetDataSourceEventItem[]

List of event related to a DataSource

region string

Data source event region

data_source_id str

Attached data Source

id str

The provider-assigned unique ID for this managed resource.

items GetDataSourceEventItem]

List of event related to a DataSource

region str

Data source event region

dataSourceId String

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

DataSourceId string

DataSource OCID

EventDate string

Data source event date time

EventInfos List<GetDataSourceEventItemEventInfo>

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 []GetDataSourceEventItemEventInfo

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<GetDataSourceEventItemEventInfo>

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 GetDataSourceEventItemEventInfo[]

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 GetDataSourceEventItemEventInfo]

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

GetDataSourceEventItemEventInfo

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

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.