Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
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 data source (DataSource resource) identified by dataSourceId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataSource = oci.CloudGuard.getDataSource({
dataSourceId: testDataSourceOciCloudGuardDataSource.id,
});
import pulumi
import pulumi_oci as oci
test_data_source = oci.CloudGuard.get_data_source(data_source_id=test_data_source_oci_cloud_guard_data_source["id"])
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.GetDataSource(ctx, &cloudguard.GetDataSourceArgs{
DataSourceId: testDataSourceOciCloudGuardDataSource.Id,
}, 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 testDataSource = Oci.CloudGuard.GetDataSource.Invoke(new()
{
DataSourceId = testDataSourceOciCloudGuardDataSource.Id,
});
});
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(testDataSourceOciCloudGuardDataSource.id())
.build());
}
}
variables:
testDataSource:
fn::invoke:
Function: oci:CloudGuard:getDataSource
Arguments:
dataSourceId: ${testDataSourceOciCloudGuardDataSource.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 - Data source OCID.
- Data
Source stringId - Data source OCID.
- data
Source StringId - Data source OCID.
- data
Source stringId - Data source OCID.
- data_
source_ strid - Data source OCID.
- data
Source StringId - Data source OCID.
getDataSource Result
The following output properties are available:
- Compartment
Id string - Compartment OCID 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, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Display name of the data source
- Dictionary<string, string>
- 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 the data source
- Region
Status List<GetDetails Data Source Region Status Detail> - Information about the region and status of query replication
- State string
- The current lifecycle state of the resource.
- Status string
- Enablement status of the data source
- Dictionary<string, string>
- 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 - Compartment OCID 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]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Display name of the data source
- map[string]string
- 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 the data source
- Region
Status []GetDetails Data Source Region Status Detail - Information about the region and status of query replication
- State string
- The current lifecycle state of the resource.
- Status string
- Enablement status of the data source
- map[string]string
- 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 - Compartment OCID 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,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Display name of the data source
- Map<String,String>
- 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 the data source
- region
Status List<GetDetails Data Source Region Status Detail> - Information about the region and status of query replication
- state String
- The current lifecycle state of the resource.
- status String
- Enablement status of the data source
- Map<String,String>
- 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 - Compartment OCID 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]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - Display name of the data source
- {[key: string]: string}
- 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 the data source
- region
Status GetDetails Data Source Region Status Detail[] - Information about the region and status of query replication
- state string
- The current lifecycle state of the resource.
- status string
- Enablement status of the data source
- {[key: string]: string}
- 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 - Compartment OCID of data source
- data_
source_ Sequence[cloudguard.details Get Data Source Data Source Detail] - Details specific to the data source type.
- data_
source_ Sequence[cloudguard.detector_ mapping_ infos Get 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, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - Display name of the data source
- Mapping[str, str]
- 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 the data source
- region_
status_ Sequence[cloudguard.details Get Data Source Region Status Detail] - Information about the region and status of query replication
- state str
- The current lifecycle state of the resource.
- status str
- Enablement status of the data source
- Mapping[str, str]
- 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 - Compartment OCID 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<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Display name of the data source
- Map<String>
- 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 the data source
- region
Status List<Property Map>Details - Information about the region and status of query replication
- state String
- The current lifecycle state of the resource.
- status String
- Enablement status of the data source
- Map<String>
- 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)
- Description string
- Description text for the query
- Interval
In intMinutes - Interval in minutes that query is run periodically.
- Interval
In intSeconds - Interval in minutes which query is run periodically.
- Logging
Query List<GetDetails Data Source Data Source Detail Logging Query Detail> - Details for a logging query for a data source.
- Logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- Operator string
- Operator used in data source
- 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>
- List of logging query regions
- Scheduled
Query List<GetScope Details Data Source Data Source Detail Scheduled Query Scope Detail> - Target information in which scheduled query will be run
- Threshold int
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for 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)
- Description string
- Description text for the query
- Interval
In intMinutes - Interval in minutes that query is run periodically.
- Interval
In intSeconds - Interval in minutes which query is run periodically.
- Logging
Query []GetDetails Data Source Data Source Detail Logging Query Detail - Details for a logging query for a data source.
- Logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- Operator string
- Operator used in data source
- 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
- List of logging query regions
- Scheduled
Query []GetScope Details Data Source Data Source Detail Scheduled Query Scope Detail - Target information in which scheduled query will be run
- Threshold int
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for 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)
- description String
- Description text for the query
- interval
In IntegerMinutes - Interval in minutes that query is run periodically.
- interval
In IntegerSeconds - Interval in minutes which query is run periodically.
- logging
Query List<GetDetails Data Source Data Source Detail Logging Query Detail> - Details for a logging query for a data source.
- logging
Query StringType - Type of logging query for data source (Sighting/Insight)
- operator String
- Operator used in data source
- 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>
- List of logging query regions
- scheduled
Query List<GetScope Details Data Source Data Source Detail Scheduled Query Scope Detail> - Target information in which scheduled query will be run
- threshold Integer
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for 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)
- description string
- Description text for the query
- interval
In numberMinutes - Interval in minutes that query is run periodically.
- interval
In numberSeconds - Interval in minutes which query is run periodically.
- logging
Query GetDetails Data Source Data Source Detail Logging Query Detail[] - Details for a logging query for a data source.
- logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- operator string
- Operator used in data source
- 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[]
- List of logging query regions
- scheduled
Query GetScope Details Data Source Data Source Detail Scheduled Query Scope Detail[] - Target information in which scheduled query will be run
- threshold number
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for 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)
- description str
- Description text for the query
- interval_
in_ intminutes - Interval in minutes that query is run periodically.
- interval_
in_ intseconds - Interval in minutes which query is run periodically.
- logging_
query_ Sequence[cloudguard.details Get Data Source Data Source Detail Logging Query Detail] - Details for a logging query for a data source.
- logging_
query_ strtype - Type of logging query for data source (Sighting/Insight)
- operator str
- Operator used in data source
- query str
- The continuous query expression that is run periodically.
- query_
start_ Sequence[cloudguard.times Get Data Source Data Source Detail Query Start Time] - Time when the query can start. If not specified it can start immediately
- regions Sequence[str]
- List of logging query regions
- scheduled_
query_ Sequence[cloudguard.scope_ details Get Data Source Data Source Detail Scheduled Query Scope Detail] - Target information in which scheduled query will be run
- threshold int
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for 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)
- description String
- Description text for the query
- interval
In NumberMinutes - Interval in minutes that query is run periodically.
- interval
In NumberSeconds - Interval in minutes which query is run periodically.
- logging
Query List<Property Map>Details - Details for a logging query for a data source.
- logging
Query StringType - Type of logging query for data source (Sighting/Insight)
- operator String
- Operator used in data source
- 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>
- List of logging query regions
- scheduled
Query List<Property Map>Scope Details - Target information in which scheduled query will be run
- threshold Number
- The integer value that must be exceeded, fall below or equal to (depending on the operator), for the query result to trigger an event
GetDataSourceDataSourceDetailLoggingQueryDetail
- Key
Entities intCount - The key entities count used for data source query
- Logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- Key
Entities intCount - The key entities count used for data source query
- Logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- key
Entities IntegerCount - The key entities count used for data source query
- logging
Query StringType - Type of logging query for data source (Sighting/Insight)
- key
Entities numberCount - The key entities count used for data source query
- logging
Query stringType - Type of logging query for data source (Sighting/Insight)
- key_
entities_ intcount - The key entities count used for data source query
- logging_
query_ strtype - Type of logging query for data source (Sighting/Insight)
- key
Entities NumberCount - The key entities count used for data source query
- logging
Query StringType - Type of logging query 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 - Start policy delay timing
- Query
Start stringTime - Time when the query can start. If not specified it can start immediately
- Start
Policy stringType - Start policy delay timing
- query
Start StringTime - Time when the query can start. If not specified it can start immediately
- start
Policy StringType - Start policy delay timing
- query
Start stringTime - Time when the query can start. If not specified it can start immediately
- start
Policy stringType - Start policy delay timing
- query_
start_ strtime - Time when the query can start. If not specified it can start immediately
- start_
policy_ strtype - Start policy delay timing
- query
Start StringTime - Time when the query can start. If not specified it can start immediately
- start
Policy StringType - Start policy delay timing
GetDataSourceDataSourceDetailScheduledQueryScopeDetail
- Region string
- Data source replication region
- Resource
Ids List<string> - List of OCIDs on scheduled query needs to run
- Resource
Type string - Type of resource
- Region string
- Data source replication region
- Resource
Ids []string - List of OCIDs on scheduled query needs to run
- Resource
Type string - Type of resource
- region String
- Data source replication region
- resource
Ids List<String> - List of OCIDs on scheduled query needs to run
- resource
Type String - Type of resource
- region string
- Data source replication region
- resource
Ids string[] - List of OCIDs on scheduled query needs to run
- resource
Type string - Type of resource
- region str
- Data source replication region
- resource_
ids Sequence[str] - List of OCIDs on scheduled query needs to run
- resource_
type str - Type of resource
- region String
- Data source replication region
- resource
Ids List<String> - List of OCIDs on scheduled query needs to run
- resource
Type String - Type of resource
GetDataSourceDataSourceDetectorMappingInfo
- Detector
Recipe stringId - ID of the detector recipe attached to the data source
- Detector
Rule stringId - ID of the detector rule attached to the data source
- Detector
Recipe stringId - ID of the detector recipe attached to the data source
- Detector
Rule stringId - ID of the detector rule attached to the data source
- detector
Recipe StringId - ID of the detector recipe attached to the data source
- detector
Rule StringId - ID of the detector rule attached to the data source
- detector
Recipe stringId - ID of the detector recipe attached to the data source
- detector
Rule stringId - ID of the detector rule attached to the data source
- detector_
recipe_ strid - ID of the detector recipe attached to the data source
- detector_
rule_ strid - ID of the detector rule attached to the data source
- detector
Recipe StringId - ID of the detector recipe attached to the data source
- detector
Rule StringId - ID of the detector rule attached 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.