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

tencentcloud.getRedisInstanceZoneInfo

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of redis instance_zone_info

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceZoneInfo = tencentcloud.getRedisInstanceZoneInfo({
        instanceId: "crs-c1nl9rpv",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_zone_info = tencentcloud.get_redis_instance_zone_info(instance_id="crs-c1nl9rpv")
    
    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.GetRedisInstanceZoneInfo(ctx, &tencentcloud.GetRedisInstanceZoneInfoArgs{
    			InstanceId: pulumi.StringRef("crs-c1nl9rpv"),
    		}, 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 instanceZoneInfo = Tencentcloud.GetRedisInstanceZoneInfo.Invoke(new()
        {
            InstanceId = "crs-c1nl9rpv",
        });
    
    });
    
    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.GetRedisInstanceZoneInfoArgs;
    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 instanceZoneInfo = TencentcloudFunctions.getRedisInstanceZoneInfo(GetRedisInstanceZoneInfoArgs.builder()
                .instanceId("crs-c1nl9rpv")
                .build());
    
        }
    }
    
    variables:
      instanceZoneInfo:
        fn::invoke:
          function: tencentcloud:getRedisInstanceZoneInfo
          arguments:
            instanceId: crs-c1nl9rpv
    

    Using getRedisInstanceZoneInfo

    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 getRedisInstanceZoneInfo(args: GetRedisInstanceZoneInfoArgs, opts?: InvokeOptions): Promise<GetRedisInstanceZoneInfoResult>
    function getRedisInstanceZoneInfoOutput(args: GetRedisInstanceZoneInfoOutputArgs, opts?: InvokeOptions): Output<GetRedisInstanceZoneInfoResult>
    def get_redis_instance_zone_info(id: Optional[str] = None,
                                     instance_id: Optional[str] = None,
                                     result_output_file: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetRedisInstanceZoneInfoResult
    def get_redis_instance_zone_info_output(id: Optional[pulumi.Input[str]] = None,
                                     instance_id: Optional[pulumi.Input[str]] = None,
                                     result_output_file: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetRedisInstanceZoneInfoResult]
    func GetRedisInstanceZoneInfo(ctx *Context, args *GetRedisInstanceZoneInfoArgs, opts ...InvokeOption) (*GetRedisInstanceZoneInfoResult, error)
    func GetRedisInstanceZoneInfoOutput(ctx *Context, args *GetRedisInstanceZoneInfoOutputArgs, opts ...InvokeOption) GetRedisInstanceZoneInfoResultOutput

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

    public static class GetRedisInstanceZoneInfo 
    {
        public static Task<GetRedisInstanceZoneInfoResult> InvokeAsync(GetRedisInstanceZoneInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetRedisInstanceZoneInfoResult> Invoke(GetRedisInstanceZoneInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRedisInstanceZoneInfoResult> getRedisInstanceZoneInfo(GetRedisInstanceZoneInfoArgs args, InvokeOptions options)
    public static Output<GetRedisInstanceZoneInfoResult> getRedisInstanceZoneInfo(GetRedisInstanceZoneInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getRedisInstanceZoneInfo:getRedisInstanceZoneInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    InstanceId string
    The ID of instance.
    ResultOutputFile string
    Used to save results.
    Id string
    InstanceId string
    The ID of instance.
    ResultOutputFile string
    Used to save results.
    id String
    instanceId String
    The ID of instance.
    resultOutputFile String
    Used to save results.
    id string
    instanceId string
    The ID of instance.
    resultOutputFile string
    Used to save results.
    id str
    instance_id str
    The ID of instance.
    result_output_file str
    Used to save results.
    id String
    instanceId String
    The ID of instance.
    resultOutputFile String
    Used to save results.

    getRedisInstanceZoneInfo Result

    The following output properties are available:

    id String
    replicaGroups List<Property Map>
    List of instance node groups.
    instanceId String
    resultOutputFile String

    Supporting Types

    GetRedisInstanceZoneInfoReplicaGroup

    GroupId double
    Node group ID.
    GroupName string
    Node group Name.
    RedisNodes List<GetRedisInstanceZoneInfoReplicaGroupRedisNode>
    Node group node list.
    Role string
    The node group type, master is the primary node, and replica is the replica node.
    ZoneId string
    he availability zone ID of the node, such as ap-guangzhou-1.
    GroupId float64
    Node group ID.
    GroupName string
    Node group Name.
    RedisNodes []GetRedisInstanceZoneInfoReplicaGroupRedisNode
    Node group node list.
    Role string
    The node group type, master is the primary node, and replica is the replica node.
    ZoneId string
    he availability zone ID of the node, such as ap-guangzhou-1.
    groupId Double
    Node group ID.
    groupName String
    Node group Name.
    redisNodes List<GetRedisInstanceZoneInfoReplicaGroupRedisNode>
    Node group node list.
    role String
    The node group type, master is the primary node, and replica is the replica node.
    zoneId String
    he availability zone ID of the node, such as ap-guangzhou-1.
    groupId number
    Node group ID.
    groupName string
    Node group Name.
    redisNodes GetRedisInstanceZoneInfoReplicaGroupRedisNode[]
    Node group node list.
    role string
    The node group type, master is the primary node, and replica is the replica node.
    zoneId string
    he availability zone ID of the node, such as ap-guangzhou-1.
    group_id float
    Node group ID.
    group_name str
    Node group Name.
    redis_nodes Sequence[GetRedisInstanceZoneInfoReplicaGroupRedisNode]
    Node group node list.
    role str
    The node group type, master is the primary node, and replica is the replica node.
    zone_id str
    he availability zone ID of the node, such as ap-guangzhou-1.
    groupId Number
    Node group ID.
    groupName String
    Node group Name.
    redisNodes List<Property Map>
    Node group node list.
    role String
    The node group type, master is the primary node, and replica is the replica node.
    zoneId String
    he availability zone ID of the node, such as ap-guangzhou-1.

    GetRedisInstanceZoneInfoReplicaGroupRedisNode

    Keys double
    The number of node keys.
    NodeId string
    Node ID.
    Role string
    The node group type, master is the primary node, and replica is the replica node.
    Slot string
    Node slot distribution.
    Status string
    Node status.
    Keys float64
    The number of node keys.
    NodeId string
    Node ID.
    Role string
    The node group type, master is the primary node, and replica is the replica node.
    Slot string
    Node slot distribution.
    Status string
    Node status.
    keys Double
    The number of node keys.
    nodeId String
    Node ID.
    role String
    The node group type, master is the primary node, and replica is the replica node.
    slot String
    Node slot distribution.
    status String
    Node status.
    keys number
    The number of node keys.
    nodeId string
    Node ID.
    role string
    The node group type, master is the primary node, and replica is the replica node.
    slot string
    Node slot distribution.
    status string
    Node status.
    keys float
    The number of node keys.
    node_id str
    Node ID.
    role str
    The node group type, master is the primary node, and replica is the replica node.
    slot str
    Node slot distribution.
    status str
    Node status.
    keys Number
    The number of node keys.
    nodeId String
    Node ID.
    role String
    The node group type, master is the primary node, and replica is the replica node.
    slot String
    Node slot distribution.
    status String
    Node status.

    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