Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CloudGuard/getDataSourceEvent:getDataSourceEvent
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Source stringId - DataSource OCID
- Region string
- A filter to return only resource their region matches the given region.
- Data
Source stringId - DataSource OCID
- Region string
- A filter to return only resource their region matches the given region.
- data
Source StringId - DataSource OCID
- region String
- A filter to return only resource their region matches the given region.
- data
Source 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.
- data
Source 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:
- Data
Source stringId - Attached data Source
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Data Source Event Item> - List of event related to a DataSource
- Region string
- Data source event region
- Data
Source stringId - Attached data Source
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Data Source Event Item - List of event related to a DataSource
- Region string
- Data source event region
- data
Source StringId - Attached data Source
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Data Source Event Item> - List of event related to a DataSource
- region String
- Data source event region
- data
Source stringId - Attached data Source
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Data 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[cloudguard.
Get Data Source Event Item] - List of event related to a DataSource
- region str
- Data source event region
- data
Source 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
- Data
Source stringId - DataSource OCID
- Event
Date string - Data source event date time
- Event
Infos 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
- Time
Created string - Data source event created time
- Comments string
- Data source event comments
- Data
Source stringId - DataSource OCID
- Event
Date string - Data source event date time
- Event
Infos []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
- Time
Created string - Data source event created time
- comments String
- Data source event comments
- data
Source StringId - DataSource OCID
- event
Date String - Data source event date time
- event
Infos 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
- time
Created String - Data source event created time
- comments string
- Data source event comments
- data
Source stringId - DataSource OCID
- event
Date string - Data source event date time
- event
Infos 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
- time
Created 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[cloudguard.Get Data 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
- data
Source StringId - DataSource OCID
- event
Date String - Data source event date time
- event
Infos 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
- time
Created String - Data source event created time
GetDataSourceEventItemEventInfo
- Data
Source stringFeed Provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- Log
Result string - Observed
Value string - Operator string
- Trigger
Value string
- Data
Source stringFeed Provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- Log
Result string - Observed
Value string - Operator string
- Trigger
Value string
- data
Source StringFeed Provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- log
Result String - observed
Value String - operator String
- trigger
Value String
- data
Source stringFeed Provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- log
Result string - observed
Value string - operator string
- trigger
Value string
- data_
source_ strfeed_ provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- log_
result str - observed_
value str - operator str
- trigger_
value str
- data
Source StringFeed Provider - Possible type of dataSourceFeed Provider(LoggingQuery)
- log
Result String - observed
Value String - operator String
- trigger
Value String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.