Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi
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 dictionarydata "alicloud_kvcachestorekvcache_get_stores" "name" {
# arguments
}The following arguments are supported:
- Enable
Details bool - Default to
false. Set it totruecan 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.
- Enable
Details bool - Default to
false. Set it totruecan output more details about resource attributes. - Ids []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.
- enable_
details bool - Default to
false. Set it totruecan 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.
- enable
Details Boolean - Default to
false. Set it totruecan 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.
- enable
Details boolean - Default to
false. Set it totruecan output more details about resource attributes. - ids 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.
- enable_
details bool - Default to
false. Set it totruecan 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.
- enable
Details Boolean - Default to
false. Set it totruecan 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.
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.
Ali Cloud.kvcachestore Kv Cache. Outputs. Get Stores Store> - 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
enableDetailsistrue. - Zone
Id string - The zone ID of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Stores
[]Get
Stores Store - 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
enableDetailsistrue. - 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(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
enableDetailsistrue. - 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<Get
Stores Store> - A list of Kv Cache Store entries. Each element contains the following attributes:
- enable
Details Boolean - 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
enableDetailsistrue. - zone
Id String - The zone ID of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- stores
Get
Stores Store[] - A list of Kv Cache Store entries. Each element contains the following attributes:
- enable
Details boolean - 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
enableDetailsistrue. - zone
Id string - The zone ID of the instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- stores
Sequence[Get
Stores Store] - 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
enableDetailsistrue. - 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:
- enable
Details Boolean - 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
enableDetailsistrue. - zone
Id String - The zone ID of the instance.
Supporting Types
GetStoresStore
- Capacity int
- 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 int
- 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 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.
- 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 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 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.
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi