1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. discoveryengine
  6. getDataStores
Viewing docs for Google Cloud v9.21.0
published on Friday, Apr 24, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.21.0
published on Friday, Apr 24, 2026 by Pulumi

    Gets a list of existing Discovery Engine data stores. See the official documentation and API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const example = gcp.discoveryengine.getDataStores({
        location: "global",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    example = gcp.discoveryengine.get_data_stores(location="global")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/discoveryengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := discoveryengine.GetDataStores(ctx, &discoveryengine.GetDataStoresArgs{
    			Location: pulumi.StringRef("global"),
    		}, 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 example = Gcp.DiscoveryEngine.GetDataStores.Invoke(new()
        {
            Location = "global",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.discoveryengine.DiscoveryengineFunctions;
    import com.pulumi.gcp.discoveryengine.inputs.GetDataStoresArgs;
    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 example = DiscoveryengineFunctions.getDataStores(GetDataStoresArgs.builder()
                .location("global")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: gcp:discoveryengine:getDataStores
          arguments:
            location: global
    

    Using getDataStores

    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 getDataStores(args: GetDataStoresArgs, opts?: InvokeOptions): Promise<GetDataStoresResult>
    function getDataStoresOutput(args: GetDataStoresOutputArgs, opts?: InvokeOptions): Output<GetDataStoresResult>
    def get_data_stores(location: Optional[str] = None,
                        project: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataStoresResult
    def get_data_stores_output(location: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDataStoresResult]
    func GetDataStores(ctx *Context, args *GetDataStoresArgs, opts ...InvokeOption) (*GetDataStoresResult, error)
    func GetDataStoresOutput(ctx *Context, args *GetDataStoresOutputArgs, opts ...InvokeOption) GetDataStoresResultOutput

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

    public static class GetDataStores 
    {
        public static Task<GetDataStoresResult> InvokeAsync(GetDataStoresArgs args, InvokeOptions? opts = null)
        public static Output<GetDataStoresResult> Invoke(GetDataStoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataStoresResult> getDataStores(GetDataStoresArgs args, InvokeOptions options)
    public static Output<GetDataStoresResult> getDataStores(GetDataStoresArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:discoveryengine/getDataStores:getDataStores
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the data stores reside. The value can only be one of "global", "us" and "eu". Defaults to global.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    getDataStores Result

    The following output properties are available:

    DataStores List<GetDataStoresDataStore>
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    DataStores []GetDataStoresDataStore
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    dataStores List<GetDataStoresDataStore>
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String
    dataStores GetDataStoresDataStore[]
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    project string
    data_stores Sequence[GetDataStoresDataStore]
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    project str
    dataStores List<Property Map>
    A list of all retrieved Discovery Engine data stores. Structure is defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String

    Supporting Types

    GetDataStoresDataStore

    ContentConfig string
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    CreateTime string
    The timestamp of when the data store was created.
    DataStoreId string
    The unique id of the data store.
    DefaultSchemaId string
    The id of the default schema associated with the data store.
    DisplayName string
    The display name of the data store.
    IndustryVertical string
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    Name string
    The full resource name of the data store.
    SolutionTypes List<string>
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).
    ContentConfig string
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    CreateTime string
    The timestamp of when the data store was created.
    DataStoreId string
    The unique id of the data store.
    DefaultSchemaId string
    The id of the default schema associated with the data store.
    DisplayName string
    The display name of the data store.
    IndustryVertical string
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    Name string
    The full resource name of the data store.
    SolutionTypes []string
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).
    contentConfig String
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    createTime String
    The timestamp of when the data store was created.
    dataStoreId String
    The unique id of the data store.
    defaultSchemaId String
    The id of the default schema associated with the data store.
    displayName String
    The display name of the data store.
    industryVertical String
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    name String
    The full resource name of the data store.
    solutionTypes List<String>
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).
    contentConfig string
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    createTime string
    The timestamp of when the data store was created.
    dataStoreId string
    The unique id of the data store.
    defaultSchemaId string
    The id of the default schema associated with the data store.
    displayName string
    The display name of the data store.
    industryVertical string
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    name string
    The full resource name of the data store.
    solutionTypes string[]
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).
    content_config str
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    create_time str
    The timestamp of when the data store was created.
    data_store_id str
    The unique id of the data store.
    default_schema_id str
    The id of the default schema associated with the data store.
    display_name str
    The display name of the data store.
    industry_vertical str
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    name str
    The full resource name of the data store.
    solution_types Sequence[str]
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).
    contentConfig String
    The content configuration of the data store (e.g. NO_CONTENT, CONTENT_REQUIRED, PUBLIC_WEBSITE).
    createTime String
    The timestamp of when the data store was created.
    dataStoreId String
    The unique id of the data store.
    defaultSchemaId String
    The id of the default schema associated with the data store.
    displayName String
    The display name of the data store.
    industryVertical String
    The industry vertical of the data store (e.g. GENERIC, MEDIA, HEALTHCARE_FHIR).
    name String
    The full resource name of the data store.
    solutionTypes List<String>
    The solutions the data store enrolls (e.g. SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_RECOMMENDATION).

    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
    Viewing docs for Google Cloud v9.21.0
    published on Friday, Apr 24, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.