tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getCynosdbClusters
Start a Neo task
Explain and create a tencentcloud.getCynosdbClusters resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of Cynosdb clusters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getCynosdbClusters({
clusterId: "cynosdbmysql-dzj5l8gz",
projectId: 0,
dbType: "MYSQL",
clusterName: "test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_cynosdb_clusters(cluster_id="cynosdbmysql-dzj5l8gz",
project_id=0,
db_type="MYSQL",
cluster_name="test")
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.GetCynosdbClusters(ctx, &tencentcloud.GetCynosdbClustersArgs{
ClusterId: pulumi.StringRef("cynosdbmysql-dzj5l8gz"),
ProjectId: pulumi.Float64Ref(0),
DbType: pulumi.StringRef("MYSQL"),
ClusterName: pulumi.StringRef("test"),
}, 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 foo = Tencentcloud.GetCynosdbClusters.Invoke(new()
{
ClusterId = "cynosdbmysql-dzj5l8gz",
ProjectId = 0,
DbType = "MYSQL",
ClusterName = "test",
});
});
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.GetCynosdbClustersArgs;
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 foo = TencentcloudFunctions.getCynosdbClusters(GetCynosdbClustersArgs.builder()
.clusterId("cynosdbmysql-dzj5l8gz")
.projectId(0)
.dbType("MYSQL")
.clusterName("test")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getCynosdbClusters
arguments:
clusterId: cynosdbmysql-dzj5l8gz
projectId: 0
dbType: MYSQL
clusterName: test
Using getCynosdbClusters
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 getCynosdbClusters(args: GetCynosdbClustersArgs, opts?: InvokeOptions): Promise<GetCynosdbClustersResult>
function getCynosdbClustersOutput(args: GetCynosdbClustersOutputArgs, opts?: InvokeOptions): Output<GetCynosdbClustersResult>def get_cynosdb_clusters(cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
db_type: Optional[str] = None,
id: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCynosdbClustersResult
def get_cynosdb_clusters_output(cluster_id: Optional[pulumi.Input[str]] = None,
cluster_name: Optional[pulumi.Input[str]] = None,
db_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbClustersResult]func GetCynosdbClusters(ctx *Context, args *GetCynosdbClustersArgs, opts ...InvokeOption) (*GetCynosdbClustersResult, error)
func GetCynosdbClustersOutput(ctx *Context, args *GetCynosdbClustersOutputArgs, opts ...InvokeOption) GetCynosdbClustersResultOutput> Note: This function is named GetCynosdbClusters in the Go SDK.
public static class GetCynosdbClusters
{
public static Task<GetCynosdbClustersResult> InvokeAsync(GetCynosdbClustersArgs args, InvokeOptions? opts = null)
public static Output<GetCynosdbClustersResult> Invoke(GetCynosdbClustersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCynosdbClustersResult> getCynosdbClusters(GetCynosdbClustersArgs args, InvokeOptions options)
public static Output<GetCynosdbClustersResult> getCynosdbClusters(GetCynosdbClustersArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCynosdbClusters:getCynosdbClusters
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - ID of the cluster to be queried.
- Cluster
Name string - Name of the cluster to be queried.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Id string
- Project
Id double - ID of the project to be queried.
- Result
Output stringFile - Used to save results.
- Cluster
Id string - ID of the cluster to be queried.
- Cluster
Name string - Name of the cluster to be queried.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Id string
- Project
Id float64 - ID of the project to be queried.
- Result
Output stringFile - Used to save results.
- cluster
Id String - ID of the cluster to be queried.
- cluster
Name String - Name of the cluster to be queried.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id String
- project
Id Double - ID of the project to be queried.
- result
Output StringFile - Used to save results.
- cluster
Id string - ID of the cluster to be queried.
- cluster
Name string - Name of the cluster to be queried.
- db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id string
- project
Id number - ID of the project to be queried.
- result
Output stringFile - Used to save results.
- cluster_
id str - ID of the cluster to be queried.
- cluster_
name str - Name of the cluster to be queried.
- db_
type str - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id str
- project_
id float - ID of the project to be queried.
- result_
output_ strfile - Used to save results.
- cluster
Id String - ID of the cluster to be queried.
- cluster
Name String - Name of the cluster to be queried.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id String
- project
Id Number - ID of the project to be queried.
- result
Output StringFile - Used to save results.
getCynosdbClusters Result
The following output properties are available:
- Cluster
Lists List<GetCynosdb Clusters Cluster List> - A list of clusters. Each element contains the following attributes:
- Id string
- Cluster
Id string - ID of CynosDB cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL. - Project
Id double - ID of the project.
- Result
Output stringFile
- Cluster
Lists []GetCynosdb Clusters Cluster List - A list of clusters. Each element contains the following attributes:
- Id string
- Cluster
Id string - ID of CynosDB cluster.
- Cluster
Name string - Name of CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL. - Project
Id float64 - ID of the project.
- Result
Output stringFile
- cluster
Lists List<GetCynosdb Clusters Cluster List> - A list of clusters. Each element contains the following attributes:
- id String
- cluster
Id String - ID of CynosDB cluster.
- cluster
Name String - Name of CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL. - project
Id Double - ID of the project.
- result
Output StringFile
- cluster
Lists GetCynosdb Clusters Cluster List[] - A list of clusters. Each element contains the following attributes:
- id string
- cluster
Id string - ID of CynosDB cluster.
- cluster
Name string - Name of CynosDB cluster.
- db
Type string - Type of CynosDB, and available values include
MYSQL. - project
Id number - ID of the project.
- result
Output stringFile
- cluster_
lists Sequence[GetCynosdb Clusters Cluster List] - A list of clusters. Each element contains the following attributes:
- id str
- cluster_
id str - ID of CynosDB cluster.
- cluster_
name str - Name of CynosDB cluster.
- db_
type str - Type of CynosDB, and available values include
MYSQL. - project_
id float - ID of the project.
- result_
output_ strfile
- cluster
Lists List<Property Map> - A list of clusters. Each element contains the following attributes:
- id String
- cluster
Id String - ID of CynosDB cluster.
- cluster
Name String - Name of CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL. - project
Id Number - ID of the project.
- result
Output StringFile
Supporting Types
GetCynosdbClustersClusterList
- Auto
Renew doubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - Available
Zone string - The available zone of the CynosDB Cluster.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Cluster
Id string - ID of the cluster to be queried.
- Cluster
Limit double - Storage limit of CynosDB cluster instance, unit in GB.
- Cluster
Name string - Name of the cluster to be queried.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - Port double
- Port of CynosDB cluster.
- Project
Id double - ID of the project to be queried.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- Auto
Renew float64Flag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - Available
Zone string - The available zone of the CynosDB Cluster.
- Charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - Cluster
Id string - ID of the cluster to be queried.
- Cluster
Limit float64 - Storage limit of CynosDB cluster instance, unit in GB.
- Cluster
Name string - Name of the cluster to be queried.
- Cluster
Status string - Status of the Cynosdb cluster.
- Create
Time string - Creation time of the CynosDB cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - Port float64
- Port of CynosDB cluster.
- Project
Id float64 - ID of the project to be queried.
- Subnet
Id string - ID of the subnet within this VPC.
- Vpc
Id string - ID of the VPC.
- auto
Renew DoubleFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - available
Zone String - The available zone of the CynosDB Cluster.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cluster
Id String - ID of the cluster to be queried.
- cluster
Limit Double - Storage limit of CynosDB cluster instance, unit in GB.
- cluster
Name String - Name of the cluster to be queried.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - port Double
- Port of CynosDB cluster.
- project
Id Double - ID of the project to be queried.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
- auto
Renew numberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - available
Zone string - The available zone of the CynosDB Cluster.
- charge
Type string - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cluster
Id string - ID of the cluster to be queried.
- cluster
Limit number - Storage limit of CynosDB cluster instance, unit in GB.
- cluster
Name string - Name of the cluster to be queried.
- cluster
Status string - Status of the Cynosdb cluster.
- create
Time string - Creation time of the CynosDB cluster.
- db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - db
Version string - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - port number
- Port of CynosDB cluster.
- project
Id number - ID of the project to be queried.
- subnet
Id string - ID of the subnet within this VPC.
- vpc
Id string - ID of the VPC.
- auto_
renew_ floatflag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - available_
zone str - The available zone of the CynosDB Cluster.
- charge_
type str - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cluster_
id str - ID of the cluster to be queried.
- cluster_
limit float - Storage limit of CynosDB cluster instance, unit in GB.
- cluster_
name str - Name of the cluster to be queried.
- cluster_
status str - Status of the Cynosdb cluster.
- create_
time str - Creation time of the CynosDB cluster.
- db_
type str - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - db_
version str - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - port float
- Port of CynosDB cluster.
- project_
id float - ID of the project to be queried.
- subnet_
id str - ID of the subnet within this VPC.
- vpc_
id str - ID of the VPC.
- auto
Renew NumberFlag - Auto renew flag. Valid values are
0(MANUAL_RENEW),1(AUTO_RENEW). Only works for PREPAID cluster. - available
Zone String - The available zone of the CynosDB Cluster.
- charge
Type String - The charge type of instance. Valid values are
PREPAIDandPOSTPAID_BY_HOUR. Default value isPOSTPAID_BY_HOUR. - cluster
Id String - ID of the cluster to be queried.
- cluster
Limit Number - Storage limit of CynosDB cluster instance, unit in GB.
- cluster
Name String - Name of the cluster to be queried.
- cluster
Status String - Status of the Cynosdb cluster.
- create
Time String - Creation time of the CynosDB cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - db
Version String - Version of CynosDB, which is related to
db_type. ForMYSQL, available value is5.7. - port Number
- Port of CynosDB cluster.
- project
Id Number - ID of the project to be queried.
- subnet
Id String - ID of the subnet within this VPC.
- vpc
Id String - ID of the VPC.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
