tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getRedisInstanceZoneInfo
Explore with Pulumi AI
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
- Instance
Id string - The ID of instance.
- Result
Output stringFile - Used to save results.
- Id string
- Instance
Id string - The ID of instance.
- Result
Output stringFile - Used to save results.
- id String
- instance
Id String - The ID of instance.
- result
Output StringFile - Used to save results.
- id string
- instance
Id string - The ID of instance.
- result
Output stringFile - Used to save results.
- id str
- instance_
id str - The ID of instance.
- result_
output_ strfile - Used to save results.
- id String
- instance
Id String - The ID of instance.
- result
Output StringFile - Used to save results.
getRedisInstanceZoneInfo Result
The following output properties are available:
- Id string
- Replica
Groups List<GetRedis Instance Zone Info Replica Group> - List of instance node groups.
- Instance
Id string - Result
Output stringFile
- Id string
- Replica
Groups []GetRedis Instance Zone Info Replica Group - List of instance node groups.
- Instance
Id string - Result
Output stringFile
- id String
- replica
Groups List<GetRedis Instance Zone Info Replica Group> - List of instance node groups.
- instance
Id String - result
Output StringFile
- id string
- replica
Groups GetRedis Instance Zone Info Replica Group[] - List of instance node groups.
- instance
Id string - result
Output stringFile
- id str
- replica_
groups Sequence[GetRedis Instance Zone Info Replica Group] - List of instance node groups.
- instance_
id str - result_
output_ strfile
- id String
- replica
Groups List<Property Map> - List of instance node groups.
- instance
Id String - result
Output StringFile
Supporting Types
GetRedisInstanceZoneInfoReplicaGroup
- Group
Id double - Node group ID.
- Group
Name string - Node group Name.
- Redis
Nodes List<GetRedis Instance Zone Info Replica Group Redis Node> - Node group node list.
- Role string
- The node group type, master is the primary node, and replica is the replica node.
- Zone
Id string - he availability zone ID of the node, such as ap-guangzhou-1.
- Group
Id float64 - Node group ID.
- Group
Name string - Node group Name.
- Redis
Nodes []GetRedis Instance Zone Info Replica Group Redis Node - Node group node list.
- Role string
- The node group type, master is the primary node, and replica is the replica node.
- Zone
Id string - he availability zone ID of the node, such as ap-guangzhou-1.
- group
Id Double - Node group ID.
- group
Name String - Node group Name.
- redis
Nodes List<GetRedis Instance Zone Info Replica Group Redis Node> - Node group node list.
- role String
- The node group type, master is the primary node, and replica is the replica node.
- zone
Id String - he availability zone ID of the node, such as ap-guangzhou-1.
- group
Id number - Node group ID.
- group
Name string - Node group Name.
- redis
Nodes GetRedis Instance Zone Info Replica Group Redis Node[] - Node group node list.
- role string
- The node group type, master is the primary node, and replica is the replica node.
- zone
Id 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[GetRedis Instance Zone Info Replica Group Redis Node] - 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.
- group
Id Number - Node group ID.
- group
Name String - Node group Name.
- redis
Nodes List<Property Map> - Node group node list.
- role String
- The node group type, master is the primary node, and replica is the replica node.
- zone
Id String - he availability zone ID of the node, such as ap-guangzhou-1.
GetRedisInstanceZoneInfoReplicaGroupRedisNode
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack