tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getRedisZoneConfig
Start a Neo task
Explain and create a tencentcloud.getRedisZoneConfig resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query which instance types of Redis are available in a specific region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const redislab = tencentcloud.getRedisZoneConfig({
region: "ap-hongkong",
resultOutputFile: "/temp/mytestpath",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
redislab = tencentcloud.get_redis_zone_config(region="ap-hongkong",
result_output_file="/temp/mytestpath")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetRedisZoneConfig(ctx, &tencentcloud.GetRedisZoneConfigArgs{
Region: pulumi.StringRef("ap-hongkong"),
ResultOutputFile: pulumi.StringRef("/temp/mytestpath"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var redislab = Tencentcloud.GetRedisZoneConfig.Invoke(new()
{
Region = "ap-hongkong",
ResultOutputFile = "/temp/mytestpath",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetRedisZoneConfigArgs;
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 redislab = TencentcloudFunctions.getRedisZoneConfig(GetRedisZoneConfigArgs.builder()
.region("ap-hongkong")
.resultOutputFile("/temp/mytestpath")
.build());
}
}
variables:
redislab:
fn::invoke:
function: tencentcloud:getRedisZoneConfig
arguments:
region: ap-hongkong
resultOutputFile: /temp/mytestpath
Using getRedisZoneConfig
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 getRedisZoneConfig(args: GetRedisZoneConfigArgs, opts?: InvokeOptions): Promise<GetRedisZoneConfigResult>
function getRedisZoneConfigOutput(args: GetRedisZoneConfigOutputArgs, opts?: InvokeOptions): Output<GetRedisZoneConfigResult>def get_redis_zone_config(id: Optional[str] = None,
region: Optional[str] = None,
result_output_file: Optional[str] = None,
type_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetRedisZoneConfigResult
def get_redis_zone_config_output(id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
type_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRedisZoneConfigResult]func GetRedisZoneConfig(ctx *Context, args *GetRedisZoneConfigArgs, opts ...InvokeOption) (*GetRedisZoneConfigResult, error)
func GetRedisZoneConfigOutput(ctx *Context, args *GetRedisZoneConfigOutputArgs, opts ...InvokeOption) GetRedisZoneConfigResultOutput> Note: This function is named GetRedisZoneConfig in the Go SDK.
public static class GetRedisZoneConfig
{
public static Task<GetRedisZoneConfigResult> InvokeAsync(GetRedisZoneConfigArgs args, InvokeOptions? opts = null)
public static Output<GetRedisZoneConfigResult> Invoke(GetRedisZoneConfigInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRedisZoneConfigResult> getRedisZoneConfig(GetRedisZoneConfigArgs args, InvokeOptions options)
public static Output<GetRedisZoneConfigResult> getRedisZoneConfig(GetRedisZoneConfigArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getRedisZoneConfig:getRedisZoneConfig
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Region string
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- Result
Output stringFile - Used to save results.
- Type
Id double - Instance type ID.
- Id string
- Region string
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- Result
Output stringFile - Used to save results.
- Type
Id float64 - Instance type ID.
- id String
- region String
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- result
Output StringFile - Used to save results.
- type
Id Double - Instance type ID.
- id string
- region string
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- result
Output stringFile - Used to save results.
- type
Id number - Instance type ID.
- id str
- region str
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- result_
output_ strfile - Used to save results.
- type_
id float - Instance type ID.
- id String
- region String
- Name of a region. If this value is not set, the current region getting from provider's configuration will be used.
- result
Output StringFile - Used to save results.
- type
Id Number - Instance type ID.
getRedisZoneConfig Result
The following output properties are available:
- Id string
- Lists
List<Get
Redis Zone Config List> - A list of zone. Each element contains the following attributes:
- Region string
- Result
Output stringFile - Type
Id double - Instance type. Which redis type supports in this zone.
- Id string
- Lists
[]Get
Redis Zone Config List - A list of zone. Each element contains the following attributes:
- Region string
- Result
Output stringFile - Type
Id float64 - Instance type. Which redis type supports in this zone.
- id String
- lists
List<Get
Redis Zone Config List> - A list of zone. Each element contains the following attributes:
- region String
- result
Output StringFile - type
Id Double - Instance type. Which redis type supports in this zone.
- id string
- lists
Get
Redis Zone Config List[] - A list of zone. Each element contains the following attributes:
- region string
- result
Output stringFile - type
Id number - Instance type. Which redis type supports in this zone.
- id str
- lists
Sequence[Get
Redis Zone Config List] - A list of zone. Each element contains the following attributes:
- region str
- result_
output_ strfile - type_
id float - Instance type. Which redis type supports in this zone.
- id String
- lists List<Property Map>
- A list of zone. Each element contains the following attributes:
- region String
- result
Output StringFile - type
Id Number - Instance type. Which redis type supports in this zone.
Supporting Types
GetRedisZoneConfigList
- Mem
Sizes List<double> - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - Redis
Replicas List<double>Nums - The support numbers of instance copies.
- Redis
Shard List<double>Nums - The support numbers of instance shard.
- List<double>
- The memory volume list of an available instance shard(in MB).
- Type string
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - Type
Id double - Instance type ID.
- Version string
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - Zone string
- ID of available zone.
- Mem
Sizes []float64 - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - Redis
Replicas []float64Nums - The support numbers of instance copies.
- Redis
Shard []float64Nums - The support numbers of instance shard.
- []float64
- The memory volume list of an available instance shard(in MB).
- Type string
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - Type
Id float64 - Instance type ID.
- Version string
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - Zone string
- ID of available zone.
- mem
Sizes List<Double> - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - redis
Replicas List<Double>Nums - The support numbers of instance copies.
- redis
Shard List<Double>Nums - The support numbers of instance shard.
- List<Double>
- The memory volume list of an available instance shard(in MB).
- type String
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - type
Id Double - Instance type ID.
- version String
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - zone String
- ID of available zone.
- mem
Sizes number[] - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - redis
Replicas number[]Nums - The support numbers of instance copies.
- redis
Shard number[]Nums - The support numbers of instance shard.
- number[]
- The memory volume list of an available instance shard(in MB).
- type string
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - type
Id number - Instance type ID.
- version string
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - zone string
- ID of available zone.
- mem_
sizes Sequence[float] - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - redis_
replicas_ Sequence[float]nums - The support numbers of instance copies.
- redis_
shard_ Sequence[float]nums - The support numbers of instance shard.
- Sequence[float]
- The memory volume list of an available instance shard(in MB).
- type str
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - type_
id float - Instance type ID.
- version str
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - zone str
- ID of available zone.
- mem
Sizes List<Number> - (Deprecated) It has been deprecated from version 1.26.0. Use
shard_memoriesinstead. The memory volume of an available instance(in MB). - redis
Replicas List<Number>Nums - The support numbers of instance copies.
- redis
Shard List<Number>Nums - The support numbers of instance shard.
- List<Number>
- The memory volume list of an available instance shard(in MB).
- type String
- (Deprecated) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
master_slave_redis,master_slave_ckv,cluster_ckv,cluster_redisandstandalone_redis. - type
Id Number - Instance type ID.
- version String
- Version description of an available instance. Possible values:
Redis 3.2,Redis 4.0. - zone String
- ID of available zone.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
