1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getDataSource
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.CloudGuard.getDataSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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

    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,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_data_source = oci.CloudGuard.get_data_source(data_source_id=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
    	})
    }
    
    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 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());
    
        }
    }
    
    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:

    DataSourceId string
    DataSource OCID
    DataSourceId string
    DataSource OCID
    dataSourceId String
    DataSource OCID
    dataSourceId string
    DataSource OCID
    data_source_id str
    DataSource OCID
    dataSourceId String
    DataSource OCID

    getDataSource Result

    The following output properties are available:

    CompartmentId string
    CompartmentId of Data source.
    DataSourceDetails List<GetDataSourceDataSourceDetail>
    Details specific to the data source type.
    DataSourceDetectorMappingInfos List<GetDataSourceDataSourceDetectorMappingInfo>
    Information about the detector recipe and rule attached
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    DataSourceId string
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    DisplayName of Data source.
    FreeformTags 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
    RegionStatusDetails List<GetDataSourceRegionStatusDetail>
    Information about the region and status of query replication
    State string
    The current state of the resource.
    Status string
    Status of data Source
    SystemTags 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"}
    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
    CompartmentId of Data source.
    DataSourceDetails []GetDataSourceDataSourceDetail
    Details specific to the data source type.
    DataSourceDetectorMappingInfos []GetDataSourceDataSourceDetectorMappingInfo
    Information about the detector recipe and rule attached
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    DataSourceId string
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    DisplayName of Data source.
    FreeformTags 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
    RegionStatusDetails []GetDataSourceRegionStatusDetail
    Information about the region and status of query replication
    State string
    The current state of the resource.
    Status string
    Status of data Source
    SystemTags 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"}
    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
    CompartmentId of Data source.
    dataSourceDetails List<GetDataSourceDataSourceDetail>
    Details specific to the data source type.
    dataSourceDetectorMappingInfos List<GetDataSourceDataSourceDetectorMappingInfo>
    Information about the detector recipe and rule attached
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    dataSourceId String
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    DisplayName of Data source.
    freeformTags 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
    regionStatusDetails List<GetDataSourceRegionStatusDetail>
    Information about the region and status of query replication
    state String
    The current state of the resource.
    status String
    Status of data Source
    systemTags 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"}
    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
    CompartmentId of Data source.
    dataSourceDetails GetDataSourceDataSourceDetail[]
    Details specific to the data source type.
    dataSourceDetectorMappingInfos GetDataSourceDataSourceDetectorMappingInfo[]
    Information about the detector recipe and rule attached
    dataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    dataSourceId string
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    DisplayName of Data source.
    freeformTags {[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
    regionStatusDetails GetDataSourceRegionStatusDetail[]
    Information about the region and status of query replication
    state string
    The current state of the resource.
    status string
    Status of data Source
    systemTags {[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"}
    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
    CompartmentId of Data source.
    data_source_details Sequence[cloudguard.GetDataSourceDataSourceDetail]
    Details specific to the data source type.
    data_source_detector_mapping_infos Sequence[cloudguard.GetDataSourceDataSourceDetectorMappingInfo]
    Information about the detector recipe and rule attached
    data_source_feed_provider str
    Possible type of dataSourceFeed Provider(LoggingQuery)
    data_source_id str
    defined_tags 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.
    freeform_tags 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_details Sequence[cloudguard.GetDataSourceRegionStatusDetail]
    Information about the region and status of query replication
    state str
    The current state of the resource.
    status str
    Status of data Source
    system_tags 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.
    compartmentId String
    CompartmentId of Data source.
    dataSourceDetails List<Property Map>
    Details specific to the data source type.
    dataSourceDetectorMappingInfos List<Property Map>
    Information about the detector recipe and rule attached
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    dataSourceId String
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    DisplayName of Data source.
    freeformTags 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
    regionStatusDetails List<Property Map>
    Information about the region and status of query replication
    state String
    The current state of the resource.
    status String
    Status of data Source
    systemTags 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"}
    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

    AdditionalEntitiesCount int
    The additional entities count used for data source query.
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    IntervalInMinutes int
    Interval in minutes that query is run periodically.
    LoggingQueryDetails List<GetDataSourceDataSourceDetailLoggingQueryDetail>
    Additional details specific to the data source type (Sighting/Insight).
    LoggingQueryType string
    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.
    QueryStartTimes List<GetDataSourceDataSourceDetailQueryStartTime>
    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.
    AdditionalEntitiesCount int
    The additional entities count used for data source query.
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    IntervalInMinutes int
    Interval in minutes that query is run periodically.
    LoggingQueryDetails []GetDataSourceDataSourceDetailLoggingQueryDetail
    Additional details specific to the data source type (Sighting/Insight).
    LoggingQueryType string
    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.
    QueryStartTimes []GetDataSourceDataSourceDetailQueryStartTime
    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.
    additionalEntitiesCount Integer
    The additional entities count used for data source query.
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    intervalInMinutes Integer
    Interval in minutes that query is run periodically.
    loggingQueryDetails List<GetDataSourceDataSourceDetailLoggingQueryDetail>
    Additional details specific to the data source type (Sighting/Insight).
    loggingQueryType String
    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.
    queryStartTimes List<GetDataSourceDataSourceDetailQueryStartTime>
    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.
    additionalEntitiesCount number
    The additional entities count used for data source query.
    dataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    intervalInMinutes number
    Interval in minutes that query is run periodically.
    loggingQueryDetails GetDataSourceDataSourceDetailLoggingQueryDetail[]
    Additional details specific to the data source type (Sighting/Insight).
    loggingQueryType string
    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.
    queryStartTimes GetDataSourceDataSourceDetailQueryStartTime[]
    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_count int
    The additional entities count used for data source query.
    data_source_feed_provider str
    Possible type of dataSourceFeed Provider(LoggingQuery)
    interval_in_minutes int
    Interval in minutes that query is run periodically.
    logging_query_details Sequence[cloudguard.GetDataSourceDataSourceDetailLoggingQueryDetail]
    Additional details specific to the data source type (Sighting/Insight).
    logging_query_type str
    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_times Sequence[cloudguard.GetDataSourceDataSourceDetailQueryStartTime]
    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.
    additionalEntitiesCount Number
    The additional entities count used for data source query.
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    intervalInMinutes Number
    Interval in minutes that query is run periodically.
    loggingQueryDetails List<Property Map>
    Additional details specific to the data source type (Sighting/Insight).
    loggingQueryType String
    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.
    queryStartTimes List<Property Map>
    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

    KeyEntitiesCount int
    The key entities count used for data source query
    LoggingQueryType string
    Logging query type for data source (Sighting/Insight)
    KeyEntitiesCount int
    The key entities count used for data source query
    LoggingQueryType string
    Logging query type for data source (Sighting/Insight)
    keyEntitiesCount Integer
    The key entities count used for data source query
    loggingQueryType String
    Logging query type for data source (Sighting/Insight)
    keyEntitiesCount number
    The key entities count used for data source query
    loggingQueryType string
    Logging query type for data source (Sighting/Insight)
    key_entities_count int
    The key entities count used for data source query
    logging_query_type str
    Logging query type for data source (Sighting/Insight)
    keyEntitiesCount Number
    The key entities count used for data source query
    loggingQueryType String
    Logging query type for data source (Sighting/Insight)

    GetDataSourceDataSourceDetailQueryStartTime

    QueryStartTime string
    Time when the query can start, if not specified it can start immediately.
    StartPolicyType string
    policy used for deciding the query start time
    QueryStartTime string
    Time when the query can start, if not specified it can start immediately.
    StartPolicyType string
    policy used for deciding the query start time
    queryStartTime String
    Time when the query can start, if not specified it can start immediately.
    startPolicyType String
    policy used for deciding the query start time
    queryStartTime string
    Time when the query can start, if not specified it can start immediately.
    startPolicyType string
    policy used for deciding the query start time
    query_start_time str
    Time when the query can start, if not specified it can start immediately.
    start_policy_type str
    policy used for deciding the query start time
    queryStartTime String
    Time when the query can start, if not specified it can start immediately.
    startPolicyType String
    policy used for deciding the query start time

    GetDataSourceDataSourceDetectorMappingInfo

    DetectorRecipeId string
    Id of the attached detectorRecipeId to the Data Source.
    DetectorRuleId string
    Id of the attached detectorRuleId to the Data Source.
    DetectorRecipeId string
    Id of the attached detectorRecipeId to the Data Source.
    DetectorRuleId string
    Id of the attached detectorRuleId to the Data Source.
    detectorRecipeId String
    Id of the attached detectorRecipeId to the Data Source.
    detectorRuleId String
    Id of the attached detectorRuleId to the Data Source.
    detectorRecipeId string
    Id of the attached detectorRecipeId to the Data Source.
    detectorRuleId string
    Id of the attached detectorRuleId to the Data Source.
    detector_recipe_id str
    Id of the attached detectorRecipeId to the Data Source.
    detector_rule_id str
    Id of the attached detectorRuleId to the Data Source.
    detectorRecipeId String
    Id of the attached detectorRecipeId to the Data Source.
    detectorRuleId String
    Id of the attached detectorRuleId to the Data Source.

    GetDataSourceRegionStatusDetail

    Region string
    Data Source replication region.
    Status string
    Status of data Source
    Region string
    Data Source replication region.
    Status string
    Status of data Source
    region String
    Data Source replication region.
    status String
    Status of data Source
    region string
    Data Source replication region.
    status string
    Status of data Source
    region str
    Data Source replication region.
    status str
    Status of data Source
    region String
    Data Source replication region.
    status String
    Status of data Source

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi