1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. kvcachestorekvcache
  6. getStores
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi

    This data source provides Kvcachestore Kv Cache Store available to the user. What is Kv Cache Store

    NOTE: Available since v1.294.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.kvcachestorekvcache.getStores({
        name: "terraform-example",
    });
    export const firstStoreId = _default.then(_default => _default.stores?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.kvcachestorekvcache.get_stores(name="terraform-example")
    pulumi.export("firstStoreId", default.stores[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kvcachestorekvcache"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := kvcachestorekvcache.GetStores(ctx, &kvcachestorekvcache.GetStoresArgs{
    			Name: pulumi.StringRef("terraform-example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstStoreId", _default.Stores[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.KvcachestoreKvCache.GetStores.Invoke(new()
        {
            Name = "terraform-example",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstStoreId"] = @default.Apply(@default => @default.Apply(getStoresResult => getStoresResult.Stores[0]?.Id)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.kvcachestorekvcache.KvcachestorekvcacheFunctions;
    import com.pulumi.alicloud.kvcachestorekvcache.inputs.GetStoresArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 default = KvcachestorekvcacheFunctions.getStores(GetStoresArgs.builder()
                .name("terraform-example")
                .build());
    
            ctx.export("firstStoreId", default_.stores()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: alicloud:kvcachestorekvcache:getStores
          arguments:
            name: terraform-example
    outputs:
      firstStoreId: ${default.stores[0].id}
    
    terraform {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_kvcachestorekvcache_stores" "default" {
      name = "terraform-example"
    }
    
    output "firstStoreId" {
      value = data.alicloud_kvcachestorekvcache_stores.default.stores[0].id
    }
    

    Using getStores

    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 getStores(args: GetStoresArgs, opts?: InvokeOptions): Promise<GetStoresResult>
    function getStoresOutput(args: GetStoresOutputArgs, opts?: InvokeOutputOptions): Output<GetStoresResult>
    def get_stores(enable_details: Optional[bool] = None,
                   ids: Optional[Sequence[str]] = None,
                   kvcs_ids: Optional[str] = None,
                   name: Optional[str] = None,
                   output_file: Optional[str] = None,
                   status: Optional[str] = None,
                   zone_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStoresResult
    def get_stores_output(enable_details: pulumi.Input[Optional[bool]] = None,
                   ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                   kvcs_ids: pulumi.Input[Optional[str]] = None,
                   name: pulumi.Input[Optional[str]] = None,
                   output_file: pulumi.Input[Optional[str]] = None,
                   status: pulumi.Input[Optional[str]] = None,
                   zone_id: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetStoresResult]
    func GetStores(ctx *Context, args *GetStoresArgs, opts ...InvokeOption) (*GetStoresResult, error)
    func GetStoresOutput(ctx *Context, args *GetStoresOutputArgs, opts ...InvokeOption) GetStoresResultOutput

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

    public static class GetStores 
    {
        public static Task<GetStoresResult> InvokeAsync(GetStoresArgs args, InvokeOptions? opts = null)
        public static Output<GetStoresResult> Invoke(GetStoresInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStoresResult> Invoke(GetStoresInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStoresResult> getStores(GetStoresArgs args, InvokeOptions options)
    public static Output<GetStoresResult> getStores(GetStoresArgs args, InvokeOptions options)
    public static Output<GetStoresResult> getStores(GetStoresArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:kvcachestorekvcache/getStores:getStores
      arguments:
        # arguments dictionary
    data "alicloud_kvcachestorekvcache_get_stores" "name" {
        # arguments
    }

    The following arguments are supported:

    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of Kv Cache Store IDs.
    KvcsIds string
    The ID of the Kv Cache Store used to filter the results.
    Name string
    The instance name used to filter the results.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID used to filter the results.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of Kv Cache Store IDs.
    KvcsIds string
    The ID of the Kv Cache Store used to filter the results.
    Name string
    The instance name used to filter the results.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID used to filter the results.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids list(string)
    A list of Kv Cache Store IDs.
    kvcs_ids string
    The ID of the Kv Cache Store used to filter the results.
    name string
    The instance name used to filter the results.
    output_file string
    File name where to save data source results (after running pulumi preview).
    status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id string
    The zone ID used to filter the results.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Kv Cache Store IDs.
    kvcsIds String
    The ID of the Kv Cache Store used to filter the results.
    name String
    The instance name used to filter the results.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID used to filter the results.
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of Kv Cache Store IDs.
    kvcsIds string
    The ID of the Kv Cache Store used to filter the results.
    name string
    The instance name used to filter the results.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId string
    The zone ID used to filter the results.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    A list of Kv Cache Store IDs.
    kvcs_ids str
    The ID of the Kv Cache Store used to filter the results.
    name str
    The instance name used to filter the results.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id str
    The zone ID used to filter the results.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Kv Cache Store IDs.
    kvcsIds String
    The ID of the Kv Cache Store used to filter the results.
    name String
    The instance name used to filter the results.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID used to filter the results.

    getStores Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Stores List<Pulumi.AliCloud.kvcachestoreKvCache.Outputs.GetStoresStore>
    A list of Kv Cache Store entries. Each element contains the following attributes:
    EnableDetails bool
    KvcsIds string
    Name string
    The name of the instance.
    OutputFile string
    Status string
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    ZoneId string
    The zone ID of the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Stores []GetStoresStore
    A list of Kv Cache Store entries. Each element contains the following attributes:
    EnableDetails bool
    KvcsIds string
    Name string
    The name of the instance.
    OutputFile string
    Status string
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    ZoneId string
    The zone ID of the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids list(string)
    stores list(object)
    A list of Kv Cache Store entries. Each element contains the following attributes:
    enable_details bool
    kvcs_ids string
    name string
    The name of the instance.
    output_file string
    status string
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    zone_id string
    The zone ID of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    stores List<GetStoresStore>
    A list of Kv Cache Store entries. Each element contains the following attributes:
    enableDetails Boolean
    kvcsIds String
    name String
    The name of the instance.
    outputFile String
    status String
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    zoneId String
    The zone ID of the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    stores GetStoresStore[]
    A list of Kv Cache Store entries. Each element contains the following attributes:
    enableDetails boolean
    kvcsIds string
    name string
    The name of the instance.
    outputFile string
    status string
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    zoneId string
    The zone ID of the instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    stores Sequence[GetStoresStore]
    A list of Kv Cache Store entries. Each element contains the following attributes:
    enable_details bool
    kvcs_ids str
    name str
    The name of the instance.
    output_file str
    status str
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    zone_id str
    The zone ID of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    stores List<Property Map>
    A list of Kv Cache Store entries. Each element contains the following attributes:
    enableDetails Boolean
    kvcsIds String
    name String
    The name of the instance.
    outputFile String
    status String
    The status of the instance. NOTE: This field is only available when enableDetails is true.
    zoneId String
    The zone ID of the instance.

    Supporting Types

    GetStoresStore

    Capacity int
    The storage capacity of the instance. Unit: GiB.
    CreateTime string
    The creation time of the instance (ISO 8601).
    Description string
    The description of the instance.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    Id string
    The ID of the instance. The value is the same as kvcsId.
    KvcsId string
    The ID of the instance.
    Name string
    The instance name used to filter the results.
    PaymentType string
    The payment type of the instance.
    RegionId string
    The region ID of the instance.
    Status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID used to filter the results.
    Capacity int
    The storage capacity of the instance. Unit: GiB.
    CreateTime string
    The creation time of the instance (ISO 8601).
    Description string
    The description of the instance.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    Id string
    The ID of the instance. The value is the same as kvcsId.
    KvcsId string
    The ID of the instance.
    Name string
    The instance name used to filter the results.
    PaymentType string
    The payment type of the instance.
    RegionId string
    The region ID of the instance.
    Status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID used to filter the results.
    capacity number
    The storage capacity of the instance. Unit: GiB.
    create_time string
    The creation time of the instance (ISO 8601).
    description string
    The description of the instance.
    hpn_zone string
    The cluster ID (HPN zone) of the instance.
    id string
    The ID of the instance. The value is the same as kvcsId.
    kvcs_id string
    The ID of the instance.
    name string
    The instance name used to filter the results.
    payment_type string
    The payment type of the instance.
    region_id string
    The region ID of the instance.
    status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id string
    The zone ID used to filter the results.
    capacity Integer
    The storage capacity of the instance. Unit: GiB.
    createTime String
    The creation time of the instance (ISO 8601).
    description String
    The description of the instance.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    id String
    The ID of the instance. The value is the same as kvcsId.
    kvcsId String
    The ID of the instance.
    name String
    The instance name used to filter the results.
    paymentType String
    The payment type of the instance.
    regionId String
    The region ID of the instance.
    status String
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID used to filter the results.
    capacity number
    The storage capacity of the instance. Unit: GiB.
    createTime string
    The creation time of the instance (ISO 8601).
    description string
    The description of the instance.
    hpnZone string
    The cluster ID (HPN zone) of the instance.
    id string
    The ID of the instance. The value is the same as kvcsId.
    kvcsId string
    The ID of the instance.
    name string
    The instance name used to filter the results.
    paymentType string
    The payment type of the instance.
    regionId string
    The region ID of the instance.
    status string
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId string
    The zone ID used to filter the results.
    capacity int
    The storage capacity of the instance. Unit: GiB.
    create_time str
    The creation time of the instance (ISO 8601).
    description str
    The description of the instance.
    hpn_zone str
    The cluster ID (HPN zone) of the instance.
    id str
    The ID of the instance. The value is the same as kvcsId.
    kvcs_id str
    The ID of the instance.
    name str
    The instance name used to filter the results.
    payment_type str
    The payment type of the instance.
    region_id str
    The region ID of the instance.
    status str
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id str
    The zone ID used to filter the results.
    capacity Number
    The storage capacity of the instance. Unit: GiB.
    createTime String
    The creation time of the instance (ISO 8601).
    description String
    The description of the instance.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    id String
    The ID of the instance. The value is the same as kvcsId.
    kvcsId String
    The ID of the instance.
    name String
    The instance name used to filter the results.
    paymentType String
    The payment type of the instance.
    regionId String
    The region ID of the instance.
    status String
    The instance status used to filter the results. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID used to filter the results.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.109.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial