tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCynosdbInstances
Start a Neo task
Explain and create a tencentcloud.getCynosdbInstances resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of Cynosdb instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getCynosdbInstances({
instanceId: "cynosdbmysql-ins-0wln9u6w",
projectId: 0,
dbType: "MYSQL",
instanceName: "test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_cynosdb_instances(instance_id="cynosdbmysql-ins-0wln9u6w",
project_id=0,
db_type="MYSQL",
instance_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.GetCynosdbInstances(ctx, &tencentcloud.GetCynosdbInstancesArgs{
InstanceId: pulumi.StringRef("cynosdbmysql-ins-0wln9u6w"),
ProjectId: pulumi.Float64Ref(0),
DbType: pulumi.StringRef("MYSQL"),
InstanceName: 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.GetCynosdbInstances.Invoke(new()
{
InstanceId = "cynosdbmysql-ins-0wln9u6w",
ProjectId = 0,
DbType = "MYSQL",
InstanceName = "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.GetCynosdbInstancesArgs;
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.getCynosdbInstances(GetCynosdbInstancesArgs.builder()
.instanceId("cynosdbmysql-ins-0wln9u6w")
.projectId(0)
.dbType("MYSQL")
.instanceName("test")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getCynosdbInstances
arguments:
instanceId: cynosdbmysql-ins-0wln9u6w
projectId: 0
dbType: MYSQL
instanceName: test
Using getCynosdbInstances
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 getCynosdbInstances(args: GetCynosdbInstancesArgs, opts?: InvokeOptions): Promise<GetCynosdbInstancesResult>
function getCynosdbInstancesOutput(args: GetCynosdbInstancesOutputArgs, opts?: InvokeOptions): Output<GetCynosdbInstancesResult>def get_cynosdb_instances(cluster_id: Optional[str] = None,
db_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCynosdbInstancesResult
def get_cynosdb_instances_output(cluster_id: Optional[pulumi.Input[str]] = None,
db_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
instance_name: 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[GetCynosdbInstancesResult]func GetCynosdbInstances(ctx *Context, args *GetCynosdbInstancesArgs, opts ...InvokeOption) (*GetCynosdbInstancesResult, error)
func GetCynosdbInstancesOutput(ctx *Context, args *GetCynosdbInstancesOutputArgs, opts ...InvokeOption) GetCynosdbInstancesResultOutput> Note: This function is named GetCynosdbInstances in the Go SDK.
public static class GetCynosdbInstances
{
public static Task<GetCynosdbInstancesResult> InvokeAsync(GetCynosdbInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetCynosdbInstancesResult> Invoke(GetCynosdbInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCynosdbInstancesResult> getCynosdbInstances(GetCynosdbInstancesArgs args, InvokeOptions options)
public static Output<GetCynosdbInstancesResult> getCynosdbInstances(GetCynosdbInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCynosdbInstances:getCynosdbInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - ID of the cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Id string
- Instance
Id string - ID of the Cynosdb instance to be queried.
- Instance
Name string - Name of the Cynosdb instance to be queried.
- Project
Id double - ID of the project to be queried.
- Result
Output stringFile - Used to save results.
- Cluster
Id string - ID of the cluster.
- Db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - Id string
- Instance
Id string - ID of the Cynosdb instance to be queried.
- Instance
Name string - Name of the Cynosdb instance to be queried.
- Project
Id float64 - ID of the project to be queried.
- Result
Output stringFile - Used to save results.
- cluster
Id String - ID of the cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id String
- instance
Id String - ID of the Cynosdb instance to be queried.
- instance
Name String - Name of the Cynosdb instance to be queried.
- project
Id Double - ID of the project to be queried.
- result
Output StringFile - Used to save results.
- cluster
Id string - ID of the cluster.
- db
Type string - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id string
- instance
Id string - ID of the Cynosdb instance to be queried.
- instance
Name string - Name of the Cynosdb instance to be queried.
- project
Id number - ID of the project to be queried.
- result
Output stringFile - Used to save results.
- cluster_
id str - ID of the cluster.
- db_
type str - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id str
- instance_
id str - ID of the Cynosdb instance to be queried.
- instance_
name str - Name of the Cynosdb instance to be queried.
- project_
id float - ID of the project to be queried.
- result_
output_ strfile - Used to save results.
- cluster
Id String - ID of the cluster.
- db
Type String - Type of CynosDB, and available values include
MYSQL,POSTGRESQL. - id String
- instance
Id String - ID of the Cynosdb instance to be queried.
- instance
Name String - Name of the Cynosdb instance to be queried.
- project
Id Number - ID of the project to be queried.
- result
Output StringFile - Used to save results.
getCynosdbInstances Result
The following output properties are available:
- Id string
- Instance
Lists List<GetCynosdb Instances Instance List> - A list of instances. Each element contains the following attributes:
- Cluster
Id string - Db
Type string - Instance
Id string - Instance
Name string - Name of CynosDB instance.
- Project
Id double - Result
Output stringFile
- Id string
- Instance
Lists []GetCynosdb Instances Instance List - A list of instances. Each element contains the following attributes:
- Cluster
Id string - Db
Type string - Instance
Id string - Instance
Name string - Name of CynosDB instance.
- Project
Id float64 - Result
Output stringFile
- id String
- instance
Lists List<GetCynosdb Instances Instance List> - A list of instances. Each element contains the following attributes:
- cluster
Id String - db
Type String - instance
Id String - instance
Name String - Name of CynosDB instance.
- project
Id Double - result
Output StringFile
- id string
- instance
Lists GetCynosdb Instances Instance List[] - A list of instances. Each element contains the following attributes:
- cluster
Id string - db
Type string - instance
Id string - instance
Name string - Name of CynosDB instance.
- project
Id number - result
Output stringFile
- id str
- instance_
lists Sequence[GetCynosdb Instances Instance List] - A list of instances. Each element contains the following attributes:
- cluster_
id str - db_
type str - instance_
id str - instance_
name str - Name of CynosDB instance.
- project_
id float - result_
output_ strfile
- id String
- instance
Lists List<Property Map> - A list of instances. Each element contains the following attributes:
- cluster
Id String - db
Type String - instance
Id String - instance
Name String - Name of CynosDB instance.
- project
Id Number - result
Output StringFile
Supporting Types
GetCynosdbInstancesInstanceList
- Cluster
Id string - ID of the cluster.
- Create
Time string - Creation time of the CynosDB instance.
- Instance
Cpu doubleCore - Instance
Id string - ID of the Cynosdb instance to be queried.
- Instance
Memory doubleSize - Instance
Name string - Name of the Cynosdb instance to be queried.
- Instance
Status string - Status of the Cynosdb instance.
- Instance
Storage doubleSize - Storage size of the Cynosdb instance, unit in GB.
- Instance
Type string - Instance type.
rofor readonly instance,rwfor read and write instance.
- Cluster
Id string - ID of the cluster.
- Create
Time string - Creation time of the CynosDB instance.
- Instance
Cpu float64Core - Instance
Id string - ID of the Cynosdb instance to be queried.
- Instance
Memory float64Size - Instance
Name string - Name of the Cynosdb instance to be queried.
- Instance
Status string - Status of the Cynosdb instance.
- Instance
Storage float64Size - Storage size of the Cynosdb instance, unit in GB.
- Instance
Type string - Instance type.
rofor readonly instance,rwfor read and write instance.
- cluster
Id String - ID of the cluster.
- create
Time String - Creation time of the CynosDB instance.
- instance
Cpu DoubleCore - instance
Id String - ID of the Cynosdb instance to be queried.
- instance
Memory DoubleSize - instance
Name String - Name of the Cynosdb instance to be queried.
- instance
Status String - Status of the Cynosdb instance.
- instance
Storage DoubleSize - Storage size of the Cynosdb instance, unit in GB.
- instance
Type String - Instance type.
rofor readonly instance,rwfor read and write instance.
- cluster
Id string - ID of the cluster.
- create
Time string - Creation time of the CynosDB instance.
- instance
Cpu numberCore - instance
Id string - ID of the Cynosdb instance to be queried.
- instance
Memory numberSize - instance
Name string - Name of the Cynosdb instance to be queried.
- instance
Status string - Status of the Cynosdb instance.
- instance
Storage numberSize - Storage size of the Cynosdb instance, unit in GB.
- instance
Type string - Instance type.
rofor readonly instance,rwfor read and write instance.
- cluster_
id str - ID of the cluster.
- create_
time str - Creation time of the CynosDB instance.
- instance_
cpu_ floatcore - instance_
id str - ID of the Cynosdb instance to be queried.
- instance_
memory_ floatsize - instance_
name str - Name of the Cynosdb instance to be queried.
- instance_
status str - Status of the Cynosdb instance.
- instance_
storage_ floatsize - Storage size of the Cynosdb instance, unit in GB.
- instance_
type str - Instance type.
rofor readonly instance,rwfor read and write instance.
- cluster
Id String - ID of the cluster.
- create
Time String - Creation time of the CynosDB instance.
- instance
Cpu NumberCore - instance
Id String - ID of the Cynosdb instance to be queried.
- instance
Memory NumberSize - instance
Name String - Name of the Cynosdb instance to be queried.
- instance
Status String - Status of the Cynosdb instance.
- instance
Storage NumberSize - Storage size of the Cynosdb instance, unit in GB.
- instance
Type String - Instance type.
rofor readonly instance,rwfor read and write instance.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
