1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getRedisZoneConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getRedisZoneConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The 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.
    ResultOutputFile string
    Used to save results.
    TypeId 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.
    ResultOutputFile string
    Used to save results.
    TypeId 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.
    resultOutputFile String
    Used to save results.
    typeId 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.
    resultOutputFile string
    Used to save results.
    typeId 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_file str
    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.
    resultOutputFile String
    Used to save results.
    typeId Number
    Instance type ID.

    getRedisZoneConfig Result

    The following output properties are available:

    Id string
    Lists List<GetRedisZoneConfigList>
    A list of zone. Each element contains the following attributes:
    Region string
    ResultOutputFile string
    TypeId double
    Instance type. Which redis type supports in this zone.
    Id string
    Lists []GetRedisZoneConfigList
    A list of zone. Each element contains the following attributes:
    Region string
    ResultOutputFile string
    TypeId float64
    Instance type. Which redis type supports in this zone.
    id String
    lists List<GetRedisZoneConfigList>
    A list of zone. Each element contains the following attributes:
    region String
    resultOutputFile String
    typeId Double
    Instance type. Which redis type supports in this zone.
    id string
    lists GetRedisZoneConfigList[]
    A list of zone. Each element contains the following attributes:
    region string
    resultOutputFile string
    typeId number
    Instance type. Which redis type supports in this zone.
    id str
    lists Sequence[GetRedisZoneConfigList]
    A list of zone. Each element contains the following attributes:
    region str
    result_output_file str
    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
    resultOutputFile String
    typeId Number
    Instance type. Which redis type supports in this zone.

    Supporting Types

    GetRedisZoneConfigList

    MemSizes List<double>
    (Deprecated) It has been deprecated from version 1.26.0. Use shard_memories instead. The memory volume of an available instance(in MB).
    RedisReplicasNums List<double>
    The support numbers of instance copies.
    RedisShardNums List<double>
    The support numbers of instance shard.
    ShardMemories 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_redis and standalone_redis.
    TypeId 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.
    MemSizes []float64
    (Deprecated) It has been deprecated from version 1.26.0. Use shard_memories instead. The memory volume of an available instance(in MB).
    RedisReplicasNums []float64
    The support numbers of instance copies.
    RedisShardNums []float64
    The support numbers of instance shard.
    ShardMemories []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_redis and standalone_redis.
    TypeId 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.
    memSizes List<Double>
    (Deprecated) It has been deprecated from version 1.26.0. Use shard_memories instead. The memory volume of an available instance(in MB).
    redisReplicasNums List<Double>
    The support numbers of instance copies.
    redisShardNums List<Double>
    The support numbers of instance shard.
    shardMemories 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_redis and standalone_redis.
    typeId 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.
    memSizes number[]
    (Deprecated) It has been deprecated from version 1.26.0. Use shard_memories instead. The memory volume of an available instance(in MB).
    redisReplicasNums number[]
    The support numbers of instance copies.
    redisShardNums number[]
    The support numbers of instance shard.
    shardMemories 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_redis and standalone_redis.
    typeId 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_memories instead. The memory volume of an available instance(in MB).
    redis_replicas_nums Sequence[float]
    The support numbers of instance copies.
    redis_shard_nums Sequence[float]
    The support numbers of instance shard.
    shard_memories 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_redis and standalone_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.
    memSizes List<Number>
    (Deprecated) It has been deprecated from version 1.26.0. Use shard_memories instead. The memory volume of an available instance(in MB).
    redisReplicasNums List<Number>
    The support numbers of instance copies.
    redisShardNums List<Number>
    The support numbers of instance shard.
    shardMemories 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_redis and standalone_redis.
    typeId 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack