1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. storage
  5. getInsightsDatasetConfig
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

gcp.storage.getInsightsDatasetConfig

Explore with Pulumi AI

gcp logo
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

    Use this data source to get information about a Storage Insights Dataset Config resource. See the official documentation and API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const sample_config = gcp.storage.getInsightsDatasetConfig({
        project: "sample_project",
        location: "sample_location",
        datasetConfigId: "sample_dataset_config_id",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    sample_config = gcp.storage.get_insights_dataset_config(project="sample_project",
        location="sample_location",
        dataset_config_id="sample_dataset_config_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := storage.LookupInsightsDatasetConfig(ctx, &storage.LookupInsightsDatasetConfigArgs{
    			Project:         pulumi.StringRef("sample_project"),
    			Location:        "sample_location",
    			DatasetConfigId: "sample_dataset_config_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var sample_config = Gcp.Storage.GetInsightsDatasetConfig.Invoke(new()
        {
            Project = "sample_project",
            Location = "sample_location",
            DatasetConfigId = "sample_dataset_config_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.storage.StorageFunctions;
    import com.pulumi.gcp.storage.inputs.GetInsightsDatasetConfigArgs;
    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 sample-config = StorageFunctions.getInsightsDatasetConfig(GetInsightsDatasetConfigArgs.builder()
                .project("sample_project")
                .location("sample_location")
                .datasetConfigId("sample_dataset_config_id")
                .build());
    
        }
    }
    
    variables:
      sample-config:
        fn::invoke:
          function: gcp:storage:getInsightsDatasetConfig
          arguments:
            project: sample_project
            location: sample_location
            datasetConfigId: sample_dataset_config_id
    

    Using getInsightsDatasetConfig

    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 getInsightsDatasetConfig(args: GetInsightsDatasetConfigArgs, opts?: InvokeOptions): Promise<GetInsightsDatasetConfigResult>
    function getInsightsDatasetConfigOutput(args: GetInsightsDatasetConfigOutputArgs, opts?: InvokeOptions): Output<GetInsightsDatasetConfigResult>
    def get_insights_dataset_config(dataset_config_id: Optional[str] = None,
                                    location: Optional[str] = None,
                                    project: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetInsightsDatasetConfigResult
    def get_insights_dataset_config_output(dataset_config_id: Optional[pulumi.Input[str]] = None,
                                    location: Optional[pulumi.Input[str]] = None,
                                    project: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetInsightsDatasetConfigResult]
    func LookupInsightsDatasetConfig(ctx *Context, args *LookupInsightsDatasetConfigArgs, opts ...InvokeOption) (*LookupInsightsDatasetConfigResult, error)
    func LookupInsightsDatasetConfigOutput(ctx *Context, args *LookupInsightsDatasetConfigOutputArgs, opts ...InvokeOption) LookupInsightsDatasetConfigResultOutput

    > Note: This function is named LookupInsightsDatasetConfig in the Go SDK.

    public static class GetInsightsDatasetConfig 
    {
        public static Task<GetInsightsDatasetConfigResult> InvokeAsync(GetInsightsDatasetConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetInsightsDatasetConfigResult> Invoke(GetInsightsDatasetConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInsightsDatasetConfigResult> getInsightsDatasetConfig(GetInsightsDatasetConfigArgs args, InvokeOptions options)
    public static Output<GetInsightsDatasetConfigResult> getInsightsDatasetConfig(GetInsightsDatasetConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:storage/getInsightsDatasetConfig:getInsightsDatasetConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    Location string
    The location of the Dataset Config.
    Project string
    The name of the GCP project in which dataset config exists. Can be configured through config as well.
    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    Location string
    The location of the Dataset Config.
    Project string
    The name of the GCP project in which dataset config exists. Can be configured through config as well.
    datasetConfigId String
    The user-defined ID of the DatasetConfig
    location String
    The location of the Dataset Config.
    project String
    The name of the GCP project in which dataset config exists. Can be configured through config as well.
    datasetConfigId string
    The user-defined ID of the DatasetConfig
    location string
    The location of the Dataset Config.
    project string
    The name of the GCP project in which dataset config exists. Can be configured through config as well.
    dataset_config_id str
    The user-defined ID of the DatasetConfig
    location str
    The location of the Dataset Config.
    project str
    The name of the GCP project in which dataset config exists. Can be configured through config as well.
    datasetConfigId String
    The user-defined ID of the DatasetConfig
    location String
    The location of the Dataset Config.
    project String
    The name of the GCP project in which dataset config exists. Can be configured through config as well.

    getInsightsDatasetConfig Result

    The following output properties are available:

    CreateTime string
    DatasetConfigId string
    DatasetConfigState string
    Description string
    ExcludeCloudStorageBuckets List<GetInsightsDatasetConfigExcludeCloudStorageBucket>
    ExcludeCloudStorageLocations List<GetInsightsDatasetConfigExcludeCloudStorageLocation>
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetInsightsDatasetConfigIdentity>
    IncludeCloudStorageBuckets List<GetInsightsDatasetConfigIncludeCloudStorageBucket>
    IncludeCloudStorageLocations List<GetInsightsDatasetConfigIncludeCloudStorageLocation>
    IncludeNewlyCreatedBuckets bool
    LinkDataset bool
    Links List<GetInsightsDatasetConfigLink>
    Location string
    Name string
    OrganizationNumber string
    OrganizationScope bool
    RetentionPeriodDays int
    SourceFolders List<GetInsightsDatasetConfigSourceFolder>
    SourceProjects List<GetInsightsDatasetConfigSourceProject>
    Uid string
    UpdateTime string
    Project string
    CreateTime string
    DatasetConfigId string
    DatasetConfigState string
    Description string
    ExcludeCloudStorageBuckets []GetInsightsDatasetConfigExcludeCloudStorageBucket
    ExcludeCloudStorageLocations []GetInsightsDatasetConfigExcludeCloudStorageLocation
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetInsightsDatasetConfigIdentity
    IncludeCloudStorageBuckets []GetInsightsDatasetConfigIncludeCloudStorageBucket
    IncludeCloudStorageLocations []GetInsightsDatasetConfigIncludeCloudStorageLocation
    IncludeNewlyCreatedBuckets bool
    LinkDataset bool
    Links []GetInsightsDatasetConfigLink
    Location string
    Name string
    OrganizationNumber string
    OrganizationScope bool
    RetentionPeriodDays int
    SourceFolders []GetInsightsDatasetConfigSourceFolder
    SourceProjects []GetInsightsDatasetConfigSourceProject
    Uid string
    UpdateTime string
    Project string
    createTime String
    datasetConfigId String
    datasetConfigState String
    description String
    excludeCloudStorageBuckets List<GetInsightsDatasetConfigExcludeCloudStorageBucket>
    excludeCloudStorageLocations List<GetInsightsDatasetConfigExcludeCloudStorageLocation>
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetInsightsDatasetConfigIdentity>
    includeCloudStorageBuckets List<GetInsightsDatasetConfigIncludeCloudStorageBucket>
    includeCloudStorageLocations List<GetInsightsDatasetConfigIncludeCloudStorageLocation>
    includeNewlyCreatedBuckets Boolean
    linkDataset Boolean
    links List<GetInsightsDatasetConfigLink>
    location String
    name String
    organizationNumber String
    organizationScope Boolean
    retentionPeriodDays Integer
    sourceFolders List<GetInsightsDatasetConfigSourceFolder>
    sourceProjects List<GetInsightsDatasetConfigSourceProject>
    uid String
    updateTime String
    project String
    createTime string
    datasetConfigId string
    datasetConfigState string
    description string
    excludeCloudStorageBuckets GetInsightsDatasetConfigExcludeCloudStorageBucket[]
    excludeCloudStorageLocations GetInsightsDatasetConfigExcludeCloudStorageLocation[]
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetInsightsDatasetConfigIdentity[]
    includeCloudStorageBuckets GetInsightsDatasetConfigIncludeCloudStorageBucket[]
    includeCloudStorageLocations GetInsightsDatasetConfigIncludeCloudStorageLocation[]
    includeNewlyCreatedBuckets boolean
    linkDataset boolean
    links GetInsightsDatasetConfigLink[]
    location string
    name string
    organizationNumber string
    organizationScope boolean
    retentionPeriodDays number
    sourceFolders GetInsightsDatasetConfigSourceFolder[]
    sourceProjects GetInsightsDatasetConfigSourceProject[]
    uid string
    updateTime string
    project string
    create_time str
    dataset_config_id str
    dataset_config_state str
    description str
    exclude_cloud_storage_buckets Sequence[GetInsightsDatasetConfigExcludeCloudStorageBucket]
    exclude_cloud_storage_locations Sequence[GetInsightsDatasetConfigExcludeCloudStorageLocation]
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetInsightsDatasetConfigIdentity]
    include_cloud_storage_buckets Sequence[GetInsightsDatasetConfigIncludeCloudStorageBucket]
    include_cloud_storage_locations Sequence[GetInsightsDatasetConfigIncludeCloudStorageLocation]
    include_newly_created_buckets bool
    link_dataset bool
    links Sequence[GetInsightsDatasetConfigLink]
    location str
    name str
    organization_number str
    organization_scope bool
    retention_period_days int
    source_folders Sequence[GetInsightsDatasetConfigSourceFolder]
    source_projects Sequence[GetInsightsDatasetConfigSourceProject]
    uid str
    update_time str
    project str

    Supporting Types

    GetInsightsDatasetConfigExcludeCloudStorageBucket

    CloudStorageBuckets List<GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.
    CloudStorageBuckets []GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.
    cloudStorageBuckets List<GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.
    cloudStorageBuckets GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket[]
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.
    cloud_storage_buckets Sequence[GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket]
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.
    cloudStorageBuckets List<Property Map>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig.

    GetInsightsDatasetConfigExcludeCloudStorageBucketCloudStorageBucket

    BucketName string
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketName string
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName String
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex String
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName string
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucket_name str
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucket_prefix_regex str
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName String
    The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex String
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.

    GetInsightsDatasetConfigExcludeCloudStorageLocation

    Locations List<string>
    The list of cloud storage locations to exclude in the DatasetConfig.
    Locations []string
    The list of cloud storage locations to exclude in the DatasetConfig.
    locations List<String>
    The list of cloud storage locations to exclude in the DatasetConfig.
    locations string[]
    The list of cloud storage locations to exclude in the DatasetConfig.
    locations Sequence[str]
    The list of cloud storage locations to exclude in the DatasetConfig.
    locations List<String>
    The list of cloud storage locations to exclude in the DatasetConfig.

    GetInsightsDatasetConfigIdentity

    Name string
    Name of the identity.
    Type string
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]
    Name string
    Name of the identity.
    Type string
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]
    name String
    Name of the identity.
    type String
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]
    name string
    Name of the identity.
    type string
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]
    name str
    Name of the identity.
    type str
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]
    name String
    Name of the identity.
    type String
    Type of identity to use for the DatasetConfig. Possible values: ["IDENTITY_TYPE_PER_CONFIG", "IDENTITY_TYPE_PER_PROJECT"]

    GetInsightsDatasetConfigIncludeCloudStorageBucket

    CloudStorageBuckets List<GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.
    CloudStorageBuckets []GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.
    cloudStorageBuckets List<GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.
    cloudStorageBuckets GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket[]
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.
    cloud_storage_buckets Sequence[GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket]
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.
    cloudStorageBuckets List<Property Map>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig.

    GetInsightsDatasetConfigIncludeCloudStorageBucketCloudStorageBucket

    BucketName string
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketName string
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    BucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName String
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex String
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName string
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex string
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucket_name str
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucket_prefix_regex str
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketName String
    The list of cloud storage bucket names to include in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
    bucketPrefixRegex String
    The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.

    GetInsightsDatasetConfigIncludeCloudStorageLocation

    Locations List<string>
    The list of cloud storage locations to include in the DatasetConfig.
    Locations []string
    The list of cloud storage locations to include in the DatasetConfig.
    locations List<String>
    The list of cloud storage locations to include in the DatasetConfig.
    locations string[]
    The list of cloud storage locations to include in the DatasetConfig.
    locations Sequence[str]
    The list of cloud storage locations to include in the DatasetConfig.
    locations List<String>
    The list of cloud storage locations to include in the DatasetConfig.
    Dataset string
    Dataset name for the linked DatasetConfig.
    Linked bool
    State of the linked DatasetConfig.
    Dataset string
    Dataset name for the linked DatasetConfig.
    Linked bool
    State of the linked DatasetConfig.
    dataset String
    Dataset name for the linked DatasetConfig.
    linked Boolean
    State of the linked DatasetConfig.
    dataset string
    Dataset name for the linked DatasetConfig.
    linked boolean
    State of the linked DatasetConfig.
    dataset str
    Dataset name for the linked DatasetConfig.
    linked bool
    State of the linked DatasetConfig.
    dataset String
    Dataset name for the linked DatasetConfig.
    linked Boolean
    State of the linked DatasetConfig.

    GetInsightsDatasetConfigSourceFolder

    FolderNumbers List<string>
    The list of folder numbers to include in the DatasetConfig.
    FolderNumbers []string
    The list of folder numbers to include in the DatasetConfig.
    folderNumbers List<String>
    The list of folder numbers to include in the DatasetConfig.
    folderNumbers string[]
    The list of folder numbers to include in the DatasetConfig.
    folder_numbers Sequence[str]
    The list of folder numbers to include in the DatasetConfig.
    folderNumbers List<String>
    The list of folder numbers to include in the DatasetConfig.

    GetInsightsDatasetConfigSourceProject

    ProjectNumbers List<string>
    The list of project numbers to include in the DatasetConfig.
    ProjectNumbers []string
    The list of project numbers to include in the DatasetConfig.
    projectNumbers List<String>
    The list of project numbers to include in the DatasetConfig.
    projectNumbers string[]
    The list of project numbers to include in the DatasetConfig.
    project_numbers Sequence[str]
    The list of project numbers to include in the DatasetConfig.
    projectNumbers List<String>
    The list of project numbers to include in the DatasetConfig.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi