Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.CloudGuard.getDataSource
Explore with Pulumi AI
This data source provides details about a specific Data Source resource in Oracle Cloud Infrastructure Cloud Guard service.
Returns a DataSource identified by dataSourceId
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDataSource = Oci.CloudGuard.GetDataSource.Invoke(new()
{
DataSourceId = oci_cloud_guard_data_source.Test_data_source.Id,
});
});
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.GetDataSource(ctx, &cloudguard.GetDataSourceArgs{
DataSourceId: oci_cloud_guard_data_source.Test_data_source.Id,
}, 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.GetDataSourceArgs;
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 testDataSource = CloudGuardFunctions.getDataSource(GetDataSourceArgs.builder()
.dataSourceId(oci_cloud_guard_data_source.test_data_source().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_data_source = oci.CloudGuard.get_data_source(data_source_id=%!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 testDataSource = oci.CloudGuard.getDataSource({
dataSourceId: oci_cloud_guard_data_source.test_data_source.id,
});
variables:
testDataSource:
fn::invoke:
Function: oci:CloudGuard:getDataSource
Arguments:
dataSourceId: ${oci_cloud_guard_data_source.test_data_source.id}
Using getDataSource
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 getDataSource(args: GetDataSourceArgs, opts?: InvokeOptions): Promise<GetDataSourceResult>
function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: InvokeOptions): Output<GetDataSourceResult>
def get_data_source(data_source_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataSourceResult
def get_data_source_output(data_source_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceResult]
func GetDataSource(ctx *Context, args *GetDataSourceArgs, opts ...InvokeOption) (*GetDataSourceResult, error)
func GetDataSourceOutput(ctx *Context, args *GetDataSourceOutputArgs, opts ...InvokeOption) GetDataSourceResultOutput
> Note: This function is named GetDataSource
in the Go SDK.
public static class GetDataSource
{
public static Task<GetDataSourceResult> InvokeAsync(GetDataSourceArgs args, InvokeOptions? opts = null)
public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CloudGuard/getDataSource:getDataSource
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Source stringId DataSource OCID
- Data
Source stringId DataSource OCID
- data
Source StringId DataSource OCID
- data
Source stringId DataSource OCID
- data_
source_ strid DataSource OCID
- data
Source StringId DataSource OCID
getDataSource Result
The following output properties are available:
- Compartment
Id string CompartmentId of Data source.
- Data
Source List<GetDetails Data Source Data Source Detail> Details specific to the data source type.
- Data
Source List<GetDetector Mapping Infos Data Source Data Source Detector Mapping Info> Information about the detector recipe and rule attached
- Data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- Data
Source stringId - Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string DisplayName of Data source.
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
Ocid for Data source
- Region
Status List<GetDetails Data Source Region Status Detail> Information about the region and status of query replication
- State string
The current state of the resource.
- Status string
Status of data Source
- Dictionary<string, object>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The date and time the Data source was created. Format defined by RFC3339.
- Time
Updated string The date and time the Data source was updated. Format defined by RFC3339.
- Compartment
Id string CompartmentId of Data source.
- Data
Source []GetDetails Data Source Data Source Detail Details specific to the data source type.
- Data
Source []GetDetector Mapping Infos Data Source Data Source Detector Mapping Info Information about the detector recipe and rule attached
- Data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- Data
Source stringId - map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string DisplayName of Data source.
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
Ocid for Data source
- Region
Status []GetDetails Data Source Region Status Detail Information about the region and status of query replication
- State string
The current state of the resource.
- Status string
Status of data Source
- map[string]interface{}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The date and time the Data source was created. Format defined by RFC3339.
- Time
Updated string The date and time the Data source was updated. Format defined by RFC3339.
- compartment
Id String CompartmentId of Data source.
- data
Source List<GetDetails Data Source Data Source Detail> Details specific to the data source type.
- data
Source List<GetDetector Mapping Infos Data Source Data Source Detector Mapping Info> Information about the detector recipe and rule attached
- data
Source StringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- data
Source StringId - Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String DisplayName of Data source.
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
Ocid for Data source
- region
Status List<GetDetails Data Source Region Status Detail> Information about the region and status of query replication
- state String
The current state of the resource.
- status String
Status of data Source
- Map<String,Object>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The date and time the Data source was created. Format defined by RFC3339.
- time
Updated String The date and time the Data source was updated. Format defined by RFC3339.
- compartment
Id string CompartmentId of Data source.
- data
Source GetDetails Data Source Data Source Detail[] Details specific to the data source type.
- data
Source GetDetector Mapping Infos Data Source Data Source Detector Mapping Info[] Information about the detector recipe and rule attached
- data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- data
Source stringId - {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string DisplayName of Data source.
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
Ocid for Data source
- region
Status GetDetails Data Source Region Status Detail[] Information about the region and status of query replication
- state string
The current state of the resource.
- status string
Status of data Source
- {[key: string]: any}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The date and time the Data source was created. Format defined by RFC3339.
- time
Updated string The date and time the Data source was updated. Format defined by RFC3339.
- compartment_
id str CompartmentId of Data source.
- data_
source_ Getdetails Data Source Data Source Detail] Details specific to the data source type.
- data_
source_ Getdetector_ mapping_ infos Data Source Data Source Detector Mapping Info] Information about the detector recipe and rule attached
- data_
source_ strfeed_ provider Possible type of dataSourceFeed Provider(LoggingQuery)
- data_
source_ strid - Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str DisplayName of Data source.
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
Ocid for Data source
- region_
status_ Getdetails Data Source Region Status Detail] Information about the region and status of query replication
- state str
The current state of the resource.
- status str
Status of data Source
- Mapping[str, Any]
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The date and time the Data source was created. Format defined by RFC3339.
- time_
updated str The date and time the Data source was updated. Format defined by RFC3339.
- compartment
Id String CompartmentId of Data source.
- data
Source List<Property Map>Details Details specific to the data source type.
- data
Source List<Property Map>Detector Mapping Infos Information about the detector recipe and rule attached
- data
Source StringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- data
Source StringId - Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String DisplayName of Data source.
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
Ocid for Data source
- region
Status List<Property Map>Details Information about the region and status of query replication
- state String
The current state of the resource.
- status String
Status of data Source
- Map<Any>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The date and time the Data source was created. Format defined by RFC3339.
- time
Updated String The date and time the Data source was updated. Format defined by RFC3339.
Supporting Types
GetDataSourceDataSourceDetail
- Additional
Entities intCount The additional entities count used for data source query.
- Data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- Interval
In intMinutes Interval in minutes that query is run periodically.
- Logging
Query List<GetDetails Data Source Data Source Detail Logging Query Detail> Additional details specific to the data source type (Sighting/Insight).
- Logging
Query stringType Logging query type for data source (Sighting/Insight)
- Operator string
Operator used in Data Soruce
- Query string
The continuous query expression that is run periodically.
- Query
Start List<GetTimes Data Source Data Source Detail Query Start Time> Time when the query can start, if not specified it can start immediately.
- Regions List<string>
Logging Query regions
- Threshold int
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
- Additional
Entities intCount The additional entities count used for data source query.
- Data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- Interval
In intMinutes Interval in minutes that query is run periodically.
- Logging
Query []GetDetails Data Source Data Source Detail Logging Query Detail Additional details specific to the data source type (Sighting/Insight).
- Logging
Query stringType Logging query type for data source (Sighting/Insight)
- Operator string
Operator used in Data Soruce
- Query string
The continuous query expression that is run periodically.
- Query
Start []GetTimes Data Source Data Source Detail Query Start Time Time when the query can start, if not specified it can start immediately.
- Regions []string
Logging Query regions
- Threshold int
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
- additional
Entities IntegerCount The additional entities count used for data source query.
- data
Source StringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- interval
In IntegerMinutes Interval in minutes that query is run periodically.
- logging
Query List<GetDetails Data Source Data Source Detail Logging Query Detail> Additional details specific to the data source type (Sighting/Insight).
- logging
Query StringType Logging query type for data source (Sighting/Insight)
- operator String
Operator used in Data Soruce
- query String
The continuous query expression that is run periodically.
- query
Start List<GetTimes Data Source Data Source Detail Query Start Time> Time when the query can start, if not specified it can start immediately.
- regions List<String>
Logging Query regions
- threshold Integer
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
- additional
Entities numberCount The additional entities count used for data source query.
- data
Source stringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- interval
In numberMinutes Interval in minutes that query is run periodically.
- logging
Query GetDetails Data Source Data Source Detail Logging Query Detail[] Additional details specific to the data source type (Sighting/Insight).
- logging
Query stringType Logging query type for data source (Sighting/Insight)
- operator string
Operator used in Data Soruce
- query string
The continuous query expression that is run periodically.
- query
Start GetTimes Data Source Data Source Detail Query Start Time[] Time when the query can start, if not specified it can start immediately.
- regions string[]
Logging Query regions
- threshold number
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
- additional_
entities_ intcount The additional entities count used for data source query.
- data_
source_ strfeed_ provider Possible type of dataSourceFeed Provider(LoggingQuery)
- interval_
in_ intminutes Interval in minutes that query is run periodically.
- logging_
query_ Getdetails Data Source Data Source Detail Logging Query Detail] Additional details specific to the data source type (Sighting/Insight).
- logging_
query_ strtype Logging query type for data source (Sighting/Insight)
- operator str
Operator used in Data Soruce
- query str
The continuous query expression that is run periodically.
- query_
start_ Gettimes Data Source Data Source Detail Query Start Time] Time when the query can start, if not specified it can start immediately.
- regions Sequence[str]
Logging Query regions
- threshold int
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
- additional
Entities NumberCount The additional entities count used for data source query.
- data
Source StringFeed Provider Possible type of dataSourceFeed Provider(LoggingQuery)
- interval
In NumberMinutes Interval in minutes that query is run periodically.
- logging
Query List<Property Map>Details Additional details specific to the data source type (Sighting/Insight).
- logging
Query StringType Logging query type for data source (Sighting/Insight)
- operator String
Operator used in Data Soruce
- query String
The continuous query expression that is run periodically.
- query
Start List<Property Map>Times Time when the query can start, if not specified it can start immediately.
- regions List<String>
Logging Query regions
- threshold Number
The integer value that must be exceeded, fall below or equal to (depending on the operator), the query result to trigger an event.
GetDataSourceDataSourceDetailLoggingQueryDetail
- Key
Entities intCount The key entities count used for data source query
- Logging
Query stringType Logging query type for data source (Sighting/Insight)
- Key
Entities intCount The key entities count used for data source query
- Logging
Query stringType Logging query type for data source (Sighting/Insight)
- key
Entities IntegerCount The key entities count used for data source query
- logging
Query StringType Logging query type for data source (Sighting/Insight)
- key
Entities numberCount The key entities count used for data source query
- logging
Query stringType Logging query type for data source (Sighting/Insight)
- key_
entities_ intcount The key entities count used for data source query
- logging_
query_ strtype Logging query type for data source (Sighting/Insight)
- key
Entities NumberCount The key entities count used for data source query
- logging
Query StringType Logging query type for data source (Sighting/Insight)
GetDataSourceDataSourceDetailQueryStartTime
- Query
Start stringTime Time when the query can start, if not specified it can start immediately.
- Start
Policy stringType policy used for deciding the query start time
- Query
Start stringTime Time when the query can start, if not specified it can start immediately.
- Start
Policy stringType policy used for deciding the query start time
- query
Start StringTime Time when the query can start, if not specified it can start immediately.
- start
Policy StringType policy used for deciding the query start time
- query
Start stringTime Time when the query can start, if not specified it can start immediately.
- start
Policy stringType policy used for deciding the query start time
- query_
start_ strtime Time when the query can start, if not specified it can start immediately.
- start_
policy_ strtype policy used for deciding the query start time
- query
Start StringTime Time when the query can start, if not specified it can start immediately.
- start
Policy StringType policy used for deciding the query start time
GetDataSourceDataSourceDetectorMappingInfo
- Detector
Recipe stringId Id of the attached detectorRecipeId to the Data Source.
- Detector
Rule stringId Id of the attached detectorRuleId to the Data Source.
- Detector
Recipe stringId Id of the attached detectorRecipeId to the Data Source.
- Detector
Rule stringId Id of the attached detectorRuleId to the Data Source.
- detector
Recipe StringId Id of the attached detectorRecipeId to the Data Source.
- detector
Rule StringId Id of the attached detectorRuleId to the Data Source.
- detector
Recipe stringId Id of the attached detectorRecipeId to the Data Source.
- detector
Rule stringId Id of the attached detectorRuleId to the Data Source.
- detector_
recipe_ strid Id of the attached detectorRecipeId to the Data Source.
- detector_
rule_ strid Id of the attached detectorRuleId to the Data Source.
- detector
Recipe StringId Id of the attached detectorRecipeId to the Data Source.
- detector
Rule StringId Id of the attached detectorRuleId to the Data Source.
GetDataSourceRegionStatusDetail
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.