Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 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)
public static Output<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CloudGuard/getDataSource:getDataSource
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DataSource stringId 
- Data source OCID.
- DataSource stringId 
- Data source OCID.
- dataSource StringId 
- Data source OCID.
- dataSource stringId 
- Data source OCID.
- data_source_ strid 
- Data source OCID.
- dataSource StringId 
- Data source OCID.
getDataSource Result
The following output properties are available:
- CompartmentId string
- Compartment OCID of data source
- DataSource List<GetDetails Data Source Data Source Detail> 
- Details specific to the data source type.
- DataSource List<GetDetector Mapping Infos Data Source Data Source Detector Mapping Info> 
- Information about the detector recipe and rule attached
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- DataSource stringId 
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName 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
- RegionStatus 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"}
- TimeCreated string
- The date and time the Data source was created. Format defined by RFC3339.
- TimeUpdated string
- The date and time the data source was updated. Format defined by RFC3339.
- CompartmentId string
- Compartment OCID of data source
- DataSource []GetDetails Data Source Data Source Detail 
- Details specific to the data source type.
- DataSource []GetDetector Mapping Infos Data Source Data Source Detector Mapping Info 
- Information about the detector recipe and rule attached
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- DataSource stringId 
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName 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
- RegionStatus []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"}
- TimeCreated string
- The date and time the Data source was created. Format defined by RFC3339.
- TimeUpdated string
- The date and time the data source was updated. Format defined by RFC3339.
- compartmentId String
- Compartment OCID of data source
- dataSource List<GetDetails Data Source Data Source Detail> 
- Details specific to the data source type.
- dataSource List<GetDetector Mapping Infos Data Source Data Source Detector Mapping Info> 
- Information about the detector recipe and rule attached
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- dataSource StringId 
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName 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
- regionStatus 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"}
- timeCreated String
- The date and time the Data source was created. Format defined by RFC3339.
- timeUpdated String
- The date and time the data source was updated. Format defined by RFC3339.
- compartmentId string
- Compartment OCID of data source
- dataSource GetDetails Data Source Data Source Detail[] 
- Details specific to the data source type.
- dataSource GetDetector Mapping Infos Data Source Data Source Detector Mapping Info[] 
- Information about the detector recipe and rule attached
- dataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- dataSource stringId 
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName 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
- regionStatus 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"}
- timeCreated string
- The date and time the Data source was created. Format defined by RFC3339.
- timeUpdated 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[Getdetails Data Source Data Source Detail] 
- Details specific to the data source type.
- data_source_ Sequence[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, 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[Getdetails 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.
- compartmentId String
- Compartment OCID of data source
- dataSource List<Property Map>Details 
- Details specific to the data source type.
- dataSource List<Property Map>Detector Mapping Infos 
- Information about the detector recipe and rule attached
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- dataSource StringId 
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName 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
- regionStatus 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"}
- timeCreated String
- The date and time the Data source was created. Format defined by RFC3339.
- timeUpdated String
- The date and time the data source was updated. Format defined by RFC3339.
Supporting Types
GetDataSourceDataSourceDetail     
- AdditionalEntities intCount 
- The additional entities count used for data source query
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- Description string
- Description text for the query
- IntervalIn intMinutes 
- Interval in minutes that query is run periodically.
- IntervalIn intSeconds 
- Interval in minutes which query is run periodically.
- LoggingQuery List<GetDetails Data Source Data Source Detail Logging Query Detail> 
- Details for a logging query for a data source.
- LoggingQuery 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.
- QueryStart 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
- ScheduledQuery 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
- AdditionalEntities intCount 
- The additional entities count used for data source query
- DataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- Description string
- Description text for the query
- IntervalIn intMinutes 
- Interval in minutes that query is run periodically.
- IntervalIn intSeconds 
- Interval in minutes which query is run periodically.
- LoggingQuery []GetDetails Data Source Data Source Detail Logging Query Detail 
- Details for a logging query for a data source.
- LoggingQuery 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.
- QueryStart []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
- ScheduledQuery []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
- additionalEntities IntegerCount 
- The additional entities count used for data source query
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- description String
- Description text for the query
- intervalIn IntegerMinutes 
- Interval in minutes that query is run periodically.
- intervalIn IntegerSeconds 
- Interval in minutes which query is run periodically.
- loggingQuery List<GetDetails Data Source Data Source Detail Logging Query Detail> 
- Details for a logging query for a data source.
- loggingQuery 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.
- queryStart 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
- scheduledQuery 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
- additionalEntities numberCount 
- The additional entities count used for data source query
- dataSource stringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- description string
- Description text for the query
- intervalIn numberMinutes 
- Interval in minutes that query is run periodically.
- intervalIn numberSeconds 
- Interval in minutes which query is run periodically.
- loggingQuery GetDetails Data Source Data Source Detail Logging Query Detail[] 
- Details for a logging query for a data source.
- loggingQuery 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.
- queryStart 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
- scheduledQuery 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[Getdetails 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[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]
- List of logging query regions
- scheduled_query_ Sequence[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
- additionalEntities NumberCount 
- The additional entities count used for data source query
- dataSource StringFeed Provider 
- Possible type of dataSourceFeed Provider(LoggingQuery)
- description String
- Description text for the query
- intervalIn NumberMinutes 
- Interval in minutes that query is run periodically.
- intervalIn NumberSeconds 
- Interval in minutes which query is run periodically.
- loggingQuery List<Property Map>Details 
- Details for a logging query for a data source.
- loggingQuery 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.
- queryStart 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
- scheduledQuery 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        
- KeyEntities intCount 
- The key entities count used for data source query
- LoggingQuery stringType 
- Type of logging query for data source (Sighting/Insight)
- KeyEntities intCount 
- The key entities count used for data source query
- LoggingQuery stringType 
- Type of logging query for data source (Sighting/Insight)
- keyEntities IntegerCount 
- The key entities count used for data source query
- loggingQuery StringType 
- Type of logging query for data source (Sighting/Insight)
- keyEntities numberCount 
- The key entities count used for data source query
- loggingQuery 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)
- keyEntities NumberCount 
- The key entities count used for data source query
- loggingQuery StringType 
- Type of logging query for data source (Sighting/Insight)
GetDataSourceDataSourceDetailQueryStartTime        
- QueryStart stringTime 
- Time when the query can start. If not specified it can start immediately
- StartPolicy stringType 
- Start policy delay timing
- QueryStart stringTime 
- Time when the query can start. If not specified it can start immediately
- StartPolicy stringType 
- Start policy delay timing
- queryStart StringTime 
- Time when the query can start. If not specified it can start immediately
- startPolicy StringType 
- Start policy delay timing
- queryStart stringTime 
- Time when the query can start. If not specified it can start immediately
- startPolicy 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
- queryStart StringTime 
- Time when the query can start. If not specified it can start immediately
- startPolicy StringType 
- Start policy delay timing
GetDataSourceDataSourceDetailScheduledQueryScopeDetail         
- Region string
- Data source replication region
- ResourceIds List<string>
- List of OCIDs on scheduled query needs to run
- ResourceType string
- Type of resource
- Region string
- Data source replication region
- ResourceIds []string
- List of OCIDs on scheduled query needs to run
- ResourceType string
- Type of resource
- region String
- Data source replication region
- resourceIds List<String>
- List of OCIDs on scheduled query needs to run
- resourceType String
- Type of resource
- region string
- Data source replication region
- resourceIds string[]
- List of OCIDs on scheduled query needs to run
- resourceType 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
- resourceIds List<String>
- List of OCIDs on scheduled query needs to run
- resourceType String
- Type of resource
GetDataSourceDataSourceDetectorMappingInfo       
- DetectorRecipe stringId 
- ID of the detector recipe attached to the data source
- DetectorRule stringId 
- ID of the detector rule attached to the data source
- DetectorRecipe stringId 
- ID of the detector recipe attached to the data source
- DetectorRule stringId 
- ID of the detector rule attached to the data source
- detectorRecipe StringId 
- ID of the detector recipe attached to the data source
- detectorRule StringId 
- ID of the detector rule attached to the data source
- detectorRecipe stringId 
- ID of the detector recipe attached to the data source
- detectorRule 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
- detectorRecipe StringId 
- ID of the detector recipe attached to the data source
- detectorRule 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 ociTerraform Provider.