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

tencentcloud.getTcaplusClusters

Explore with Pulumi AI

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

    Use this data source to query TcaplusDB clusters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getTcaplusClusters({
        clusterName: "cluster",
    });
    const id = tencentcloud.getTcaplusClusters({
        clusterId: tencentcloud_tcaplus_cluster.test.id,
    });
    const idname = tencentcloud.getTcaplusClusters({
        clusterId: tencentcloud_tcaplus_cluster.test.id,
        clusterName: "cluster",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_tcaplus_clusters(cluster_name="cluster")
    id = tencentcloud.get_tcaplus_clusters(cluster_id=tencentcloud_tcaplus_cluster["test"]["id"])
    idname = tencentcloud.get_tcaplus_clusters(cluster_id=tencentcloud_tcaplus_cluster["test"]["id"],
        cluster_name="cluster")
    
    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.GetTcaplusClusters(ctx, &tencentcloud.GetTcaplusClustersArgs{
    			ClusterName: pulumi.StringRef("cluster"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetTcaplusClusters(ctx, &tencentcloud.GetTcaplusClustersArgs{
    			ClusterId: pulumi.StringRef(tencentcloud_tcaplus_cluster.Test.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetTcaplusClusters(ctx, &tencentcloud.GetTcaplusClustersArgs{
    			ClusterId:   pulumi.StringRef(tencentcloud_tcaplus_cluster.Test.Id),
    			ClusterName: pulumi.StringRef("cluster"),
    		}, 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 name = Tencentcloud.GetTcaplusClusters.Invoke(new()
        {
            ClusterName = "cluster",
        });
    
        var id = Tencentcloud.GetTcaplusClusters.Invoke(new()
        {
            ClusterId = tencentcloud_tcaplus_cluster.Test.Id,
        });
    
        var idname = Tencentcloud.GetTcaplusClusters.Invoke(new()
        {
            ClusterId = tencentcloud_tcaplus_cluster.Test.Id,
            ClusterName = "cluster",
        });
    
    });
    
    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.GetTcaplusClustersArgs;
    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 name = TencentcloudFunctions.getTcaplusClusters(GetTcaplusClustersArgs.builder()
                .clusterName("cluster")
                .build());
    
            final var id = TencentcloudFunctions.getTcaplusClusters(GetTcaplusClustersArgs.builder()
                .clusterId(tencentcloud_tcaplus_cluster.test().id())
                .build());
    
            final var idname = TencentcloudFunctions.getTcaplusClusters(GetTcaplusClustersArgs.builder()
                .clusterId(tencentcloud_tcaplus_cluster.test().id())
                .clusterName("cluster")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getTcaplusClusters
          arguments:
            clusterName: cluster
      id:
        fn::invoke:
          function: tencentcloud:getTcaplusClusters
          arguments:
            clusterId: ${tencentcloud_tcaplus_cluster.test.id}
      idname:
        fn::invoke:
          function: tencentcloud:getTcaplusClusters
          arguments:
            clusterId: ${tencentcloud_tcaplus_cluster.test.id}
            clusterName: cluster
    

    Using getTcaplusClusters

    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 getTcaplusClusters(args: GetTcaplusClustersArgs, opts?: InvokeOptions): Promise<GetTcaplusClustersResult>
    function getTcaplusClustersOutput(args: GetTcaplusClustersOutputArgs, opts?: InvokeOptions): Output<GetTcaplusClustersResult>
    def get_tcaplus_clusters(cluster_id: Optional[str] = None,
                             cluster_name: Optional[str] = None,
                             id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetTcaplusClustersResult
    def get_tcaplus_clusters_output(cluster_id: Optional[pulumi.Input[str]] = None,
                             cluster_name: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetTcaplusClustersResult]
    func GetTcaplusClusters(ctx *Context, args *GetTcaplusClustersArgs, opts ...InvokeOption) (*GetTcaplusClustersResult, error)
    func GetTcaplusClustersOutput(ctx *Context, args *GetTcaplusClustersOutputArgs, opts ...InvokeOption) GetTcaplusClustersResultOutput

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

    public static class GetTcaplusClusters 
    {
        public static Task<GetTcaplusClustersResult> InvokeAsync(GetTcaplusClustersArgs args, InvokeOptions? opts = null)
        public static Output<GetTcaplusClustersResult> Invoke(GetTcaplusClustersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTcaplusClustersResult> getTcaplusClusters(GetTcaplusClustersArgs args, InvokeOptions options)
    public static Output<GetTcaplusClustersResult> getTcaplusClusters(GetTcaplusClustersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTcaplusClusters:getTcaplusClusters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    ID of the TcaplusDB cluster to be query.
    ClusterName string
    Name of the TcaplusDB cluster to be query.
    Id string
    ResultOutputFile string
    File for saving results.
    ClusterId string
    ID of the TcaplusDB cluster to be query.
    ClusterName string
    Name of the TcaplusDB cluster to be query.
    Id string
    ResultOutputFile string
    File for saving results.
    clusterId String
    ID of the TcaplusDB cluster to be query.
    clusterName String
    Name of the TcaplusDB cluster to be query.
    id String
    resultOutputFile String
    File for saving results.
    clusterId string
    ID of the TcaplusDB cluster to be query.
    clusterName string
    Name of the TcaplusDB cluster to be query.
    id string
    resultOutputFile string
    File for saving results.
    cluster_id str
    ID of the TcaplusDB cluster to be query.
    cluster_name str
    Name of the TcaplusDB cluster to be query.
    id str
    result_output_file str
    File for saving results.
    clusterId String
    ID of the TcaplusDB cluster to be query.
    clusterName String
    Name of the TcaplusDB cluster to be query.
    id String
    resultOutputFile String
    File for saving results.

    getTcaplusClusters Result

    The following output properties are available:

    Id string
    Lists List<GetTcaplusClustersList>
    A list of TcaplusDB cluster. Each element contains the following attributes.
    ClusterId string
    ID of the TcaplusDB cluster.
    ClusterName string
    Name of the TcaplusDB cluster.
    ResultOutputFile string
    Id string
    Lists []GetTcaplusClustersList
    A list of TcaplusDB cluster. Each element contains the following attributes.
    ClusterId string
    ID of the TcaplusDB cluster.
    ClusterName string
    Name of the TcaplusDB cluster.
    ResultOutputFile string
    id String
    lists List<GetTcaplusClustersList>
    A list of TcaplusDB cluster. Each element contains the following attributes.
    clusterId String
    ID of the TcaplusDB cluster.
    clusterName String
    Name of the TcaplusDB cluster.
    resultOutputFile String
    id string
    lists GetTcaplusClustersList[]
    A list of TcaplusDB cluster. Each element contains the following attributes.
    clusterId string
    ID of the TcaplusDB cluster.
    clusterName string
    Name of the TcaplusDB cluster.
    resultOutputFile string
    id str
    lists Sequence[GetTcaplusClustersList]
    A list of TcaplusDB cluster. Each element contains the following attributes.
    cluster_id str
    ID of the TcaplusDB cluster.
    cluster_name str
    Name of the TcaplusDB cluster.
    result_output_file str
    id String
    lists List<Property Map>
    A list of TcaplusDB cluster. Each element contains the following attributes.
    clusterId String
    ID of the TcaplusDB cluster.
    clusterName String
    Name of the TcaplusDB cluster.
    resultOutputFile String

    Supporting Types

    GetTcaplusClustersList

    ApiAccessId string
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ApiAccessIp string
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ApiAccessPort double
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ClusterId string
    ID of the TcaplusDB cluster to be query.
    ClusterName string
    Name of the TcaplusDB cluster to be query.
    CreateTime string
    Create time of the TcaplusDB cluster.
    IdlType string
    IDL type of the TcaplusDB cluster.
    NetworkType string
    Network type of the TcaplusDB cluster.
    OldPasswordExpireTime string
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    Password string
    Access password of the TcaplusDB cluster.
    PasswordStatus string
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    SubnetId string
    Subnet ID of the TcaplusDB cluster.
    VpcId string
    VPC ID of the TcaplusDB cluster.
    ApiAccessId string
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ApiAccessIp string
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ApiAccessPort float64
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    ClusterId string
    ID of the TcaplusDB cluster to be query.
    ClusterName string
    Name of the TcaplusDB cluster to be query.
    CreateTime string
    Create time of the TcaplusDB cluster.
    IdlType string
    IDL type of the TcaplusDB cluster.
    NetworkType string
    Network type of the TcaplusDB cluster.
    OldPasswordExpireTime string
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    Password string
    Access password of the TcaplusDB cluster.
    PasswordStatus string
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    SubnetId string
    Subnet ID of the TcaplusDB cluster.
    VpcId string
    VPC ID of the TcaplusDB cluster.
    apiAccessId String
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessIp String
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessPort Double
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    clusterId String
    ID of the TcaplusDB cluster to be query.
    clusterName String
    Name of the TcaplusDB cluster to be query.
    createTime String
    Create time of the TcaplusDB cluster.
    idlType String
    IDL type of the TcaplusDB cluster.
    networkType String
    Network type of the TcaplusDB cluster.
    oldPasswordExpireTime String
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    password String
    Access password of the TcaplusDB cluster.
    passwordStatus String
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    subnetId String
    Subnet ID of the TcaplusDB cluster.
    vpcId String
    VPC ID of the TcaplusDB cluster.
    apiAccessId string
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessIp string
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessPort number
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    clusterId string
    ID of the TcaplusDB cluster to be query.
    clusterName string
    Name of the TcaplusDB cluster to be query.
    createTime string
    Create time of the TcaplusDB cluster.
    idlType string
    IDL type of the TcaplusDB cluster.
    networkType string
    Network type of the TcaplusDB cluster.
    oldPasswordExpireTime string
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    password string
    Access password of the TcaplusDB cluster.
    passwordStatus string
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    subnetId string
    Subnet ID of the TcaplusDB cluster.
    vpcId string
    VPC ID of the TcaplusDB cluster.
    api_access_id str
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    api_access_ip str
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    api_access_port float
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    cluster_id str
    ID of the TcaplusDB cluster to be query.
    cluster_name str
    Name of the TcaplusDB cluster to be query.
    create_time str
    Create time of the TcaplusDB cluster.
    idl_type str
    IDL type of the TcaplusDB cluster.
    network_type str
    Network type of the TcaplusDB cluster.
    old_password_expire_time str
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    password str
    Access password of the TcaplusDB cluster.
    password_status str
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    subnet_id str
    Subnet ID of the TcaplusDB cluster.
    vpc_id str
    VPC ID of the TcaplusDB cluster.
    apiAccessId String
    Access id of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessIp String
    Access ip of the TcaplusDB cluster.For TcaplusDB SDK connect.
    apiAccessPort Number
    Access port of the TcaplusDB cluster.For TcaplusDB SDK connect.
    clusterId String
    ID of the TcaplusDB cluster to be query.
    clusterName String
    Name of the TcaplusDB cluster to be query.
    createTime String
    Create time of the TcaplusDB cluster.
    idlType String
    IDL type of the TcaplusDB cluster.
    networkType String
    Network type of the TcaplusDB cluster.
    oldPasswordExpireTime String
    Expiration time of the old password. If password_status is unmodifiable, it means the old password has not yet expired.
    password String
    Access password of the TcaplusDB cluster.
    passwordStatus String
    Password status of the TcaplusDB cluster. Valid values: unmodifiable, modifiable. unmodifiable means the password can not be changed in this moment; modifiable means the password can be changed in this moment.
    subnetId String
    Subnet ID of the TcaplusDB cluster.
    vpcId String
    VPC ID of the TcaplusDB cluster.

    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