1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getDataSource
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

oci.CloudGuard.getDataSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

    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:

    DataSourceId string
    Data source OCID.
    DataSourceId string
    Data source OCID.
    dataSourceId String
    Data source OCID.
    dataSourceId string
    Data source OCID.
    data_source_id str
    Data source OCID.
    dataSourceId String
    Data source OCID.

    getDataSource Result

    The following output properties are available:

    CompartmentId string
    Compartment OCID 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
    Display name of the 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 the data source
    RegionStatusDetails List<GetDataSourceRegionStatusDetail>
    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
    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
    Compartment OCID 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
    Display name of the 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 the data source
    RegionStatusDetails []GetDataSourceRegionStatusDetail
    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
    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
    Compartment OCID 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
    Display name of the 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 the data source
    regionStatusDetails List<GetDataSourceRegionStatusDetail>
    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
    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
    Compartment OCID 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
    Display name of the 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 the data source
    regionStatusDetails GetDataSourceRegionStatusDetail[]
    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
    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
    Compartment OCID 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
    Display name of the 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 the data source
    region_status_details Sequence[cloudguard.GetDataSourceRegionStatusDetail]
    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
    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
    Compartment OCID 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
    Display name of the 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 the data source
    regionStatusDetails List<Property Map>
    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
    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)
    Description string
    Description text for the query
    IntervalInMinutes int
    Interval in minutes that query is run periodically.
    IntervalInSeconds int
    Interval in minutes which query is run periodically.
    LoggingQueryDetails List<GetDataSourceDataSourceDetailLoggingQueryDetail>
    Details for a logging query for a data source.
    LoggingQueryType string
    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.
    QueryStartTimes List<GetDataSourceDataSourceDetailQueryStartTime>
    Time when the query can start. If not specified it can start immediately
    Regions List<string>
    List of logging query regions
    ScheduledQueryScopeDetails List<GetDataSourceDataSourceDetailScheduledQueryScopeDetail>
    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
    AdditionalEntitiesCount int
    The additional entities count used for data source query
    DataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    Description string
    Description text for the query
    IntervalInMinutes int
    Interval in minutes that query is run periodically.
    IntervalInSeconds int
    Interval in minutes which query is run periodically.
    LoggingQueryDetails []GetDataSourceDataSourceDetailLoggingQueryDetail
    Details for a logging query for a data source.
    LoggingQueryType string
    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.
    QueryStartTimes []GetDataSourceDataSourceDetailQueryStartTime
    Time when the query can start. If not specified it can start immediately
    Regions []string
    List of logging query regions
    ScheduledQueryScopeDetails []GetDataSourceDataSourceDetailScheduledQueryScopeDetail
    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
    additionalEntitiesCount Integer
    The additional entities count used for data source query
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    description String
    Description text for the query
    intervalInMinutes Integer
    Interval in minutes that query is run periodically.
    intervalInSeconds Integer
    Interval in minutes which query is run periodically.
    loggingQueryDetails List<GetDataSourceDataSourceDetailLoggingQueryDetail>
    Details for a logging query for a data source.
    loggingQueryType String
    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.
    queryStartTimes List<GetDataSourceDataSourceDetailQueryStartTime>
    Time when the query can start. If not specified it can start immediately
    regions List<String>
    List of logging query regions
    scheduledQueryScopeDetails List<GetDataSourceDataSourceDetailScheduledQueryScopeDetail>
    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
    additionalEntitiesCount number
    The additional entities count used for data source query
    dataSourceFeedProvider string
    Possible type of dataSourceFeed Provider(LoggingQuery)
    description string
    Description text for the query
    intervalInMinutes number
    Interval in minutes that query is run periodically.
    intervalInSeconds number
    Interval in minutes which query is run periodically.
    loggingQueryDetails GetDataSourceDataSourceDetailLoggingQueryDetail[]
    Details for a logging query for a data source.
    loggingQueryType string
    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.
    queryStartTimes GetDataSourceDataSourceDetailQueryStartTime[]
    Time when the query can start. If not specified it can start immediately
    regions string[]
    List of logging query regions
    scheduledQueryScopeDetails GetDataSourceDataSourceDetailScheduledQueryScopeDetail[]
    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_count int
    The additional entities count used for data source query
    data_source_feed_provider str
    Possible type of dataSourceFeed Provider(LoggingQuery)
    description str
    Description text for the query
    interval_in_minutes int
    Interval in minutes that query is run periodically.
    interval_in_seconds int
    Interval in minutes which query is run periodically.
    logging_query_details Sequence[cloudguard.GetDataSourceDataSourceDetailLoggingQueryDetail]
    Details for a logging query for a data source.
    logging_query_type str
    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_times Sequence[cloudguard.GetDataSourceDataSourceDetailQueryStartTime]
    Time when the query can start. If not specified it can start immediately
    regions Sequence[str]
    List of logging query regions
    scheduled_query_scope_details Sequence[cloudguard.GetDataSourceDataSourceDetailScheduledQueryScopeDetail]
    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
    additionalEntitiesCount Number
    The additional entities count used for data source query
    dataSourceFeedProvider String
    Possible type of dataSourceFeed Provider(LoggingQuery)
    description String
    Description text for the query
    intervalInMinutes Number
    Interval in minutes that query is run periodically.
    intervalInSeconds Number
    Interval in minutes which query is run periodically.
    loggingQueryDetails List<Property Map>
    Details for a logging query for a data source.
    loggingQueryType String
    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.
    queryStartTimes List<Property Map>
    Time when the query can start. If not specified it can start immediately
    regions List<String>
    List of logging query regions
    scheduledQueryScopeDetails List<Property Map>
    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

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

    GetDataSourceDataSourceDetailQueryStartTime

    QueryStartTime string
    Time when the query can start. If not specified it can start immediately
    StartPolicyType string
    Start policy delay timing
    QueryStartTime string
    Time when the query can start. If not specified it can start immediately
    StartPolicyType string
    Start policy delay timing
    queryStartTime String
    Time when the query can start. If not specified it can start immediately
    startPolicyType String
    Start policy delay timing
    queryStartTime string
    Time when the query can start. If not specified it can start immediately
    startPolicyType string
    Start policy delay timing
    query_start_time str
    Time when the query can start. If not specified it can start immediately
    start_policy_type str
    Start policy delay timing
    queryStartTime String
    Time when the query can start. If not specified it can start immediately
    startPolicyType String
    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

    DetectorRecipeId string
    ID of the detector recipe attached to the data source
    DetectorRuleId string
    ID of the detector rule attached to the data source
    DetectorRecipeId string
    ID of the detector recipe attached to the data source
    DetectorRuleId string
    ID of the detector rule attached to the data source
    detectorRecipeId String
    ID of the detector recipe attached to the data source
    detectorRuleId String
    ID of the detector rule attached to the data source
    detectorRecipeId string
    ID of the detector recipe attached to the data source
    detectorRuleId string
    ID of the detector rule attached to the data source
    detector_recipe_id str
    ID of the detector recipe attached to the data source
    detector_rule_id str
    ID of the detector rule attached to the data source
    detectorRecipeId String
    ID of the detector recipe attached to the data source
    detectorRuleId String
    ID of the detector rule attached to the data source

    GetDataSourceRegionStatusDetail

    Region string
    Data source replication region
    Status string
    Enablement status of the data source
    Region string
    Data source replication region
    Status string
    Enablement status of the data source
    region String
    Data source replication region
    status String
    Enablement status of the data source
    region string
    Data source replication region
    status string
    Enablement status of the data source
    region str
    Data source replication region
    status str
    Enablement status of the data source
    region String
    Data source replication region
    status String
    Enablement status of the 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 v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi