tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCynosdbCluster
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 cynosdb cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cluster = tencentcloud.getCynosdbCluster({
clusterId: "cynosdbmysql-bws8h88b",
database: "users",
table: "tb_user_name",
tableType: "all",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cluster = tencentcloud.get_cynosdb_cluster(cluster_id="cynosdbmysql-bws8h88b",
database="users",
table="tb_user_name",
table_type="all")
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.LookupCynosdbCluster(ctx, &tencentcloud.LookupCynosdbClusterArgs{
ClusterId: "cynosdbmysql-bws8h88b",
Database: pulumi.StringRef("users"),
Table: pulumi.StringRef("tb_user_name"),
TableType: pulumi.StringRef("all"),
}, 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 cluster = Tencentcloud.GetCynosdbCluster.Invoke(new()
{
ClusterId = "cynosdbmysql-bws8h88b",
Database = "users",
Table = "tb_user_name",
TableType = "all",
});
});
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.GetCynosdbClusterArgs;
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 cluster = TencentcloudFunctions.getCynosdbCluster(GetCynosdbClusterArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.database("users")
.table("tb_user_name")
.tableType("all")
.build());
}
}
variables:
cluster:
fn::invoke:
function: tencentcloud:getCynosdbCluster
arguments:
clusterId: cynosdbmysql-bws8h88b
database: users
table: tb_user_name
tableType: all
Using getCynosdbCluster
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 getCynosdbCluster(args: GetCynosdbClusterArgs, opts?: InvokeOptions): Promise<GetCynosdbClusterResult>
function getCynosdbClusterOutput(args: GetCynosdbClusterOutputArgs, opts?: InvokeOptions): Output<GetCynosdbClusterResult>
def get_cynosdb_cluster(cluster_id: Optional[str] = None,
database: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
table: Optional[str] = None,
table_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCynosdbClusterResult
def get_cynosdb_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
database: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
table: Optional[pulumi.Input[str]] = None,
table_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbClusterResult]
func LookupCynosdbCluster(ctx *Context, args *LookupCynosdbClusterArgs, opts ...InvokeOption) (*LookupCynosdbClusterResult, error)
func LookupCynosdbClusterOutput(ctx *Context, args *LookupCynosdbClusterOutputArgs, opts ...InvokeOption) LookupCynosdbClusterResultOutput
> Note: This function is named LookupCynosdbCluster
in the Go SDK.
public static class GetCynosdbCluster
{
public static Task<GetCynosdbClusterResult> InvokeAsync(GetCynosdbClusterArgs args, InvokeOptions? opts = null)
public static Output<GetCynosdbClusterResult> Invoke(GetCynosdbClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCynosdbClusterResult> getCynosdbCluster(GetCynosdbClusterArgs args, InvokeOptions options)
public static Output<GetCynosdbClusterResult> getCynosdbCluster(GetCynosdbClusterArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCynosdbCluster:getCynosdbCluster
arguments:
# arguments dictionary
The following arguments are supported:
- cluster_
id str - Cluster ID.
- database str
- Database name.
- id str
- result_
output_ strfile - Used to save results.
- table str
- Data Table Name.
- table_
type str - Data table type: view: only return view, base_ Table: only returns the basic table, all: returns the view and table.
getCynosdbCluster Result
The following output properties are available:
- Cluster
Id string - Id string
- Tables
List<Get
Cynosdb Cluster Table> - Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- Database string
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- Result
Output stringFile - Table string
- Table
Type string
- Cluster
Id string - Id string
- Tables
[]Get
Cynosdb Cluster Table - Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- Database string
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- Result
Output stringFile - Table string
- Table
Type string
- cluster
Id String - id String
- tables
List<Get
Cynosdb Cluster Table> - Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- database String
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output StringFile - table String
- table
Type String
- cluster
Id string - id string
- tables
Get
Cynosdb Cluster Table[] - Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- database string
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output stringFile - table string
- table
Type string
- cluster_
id str - id str
- tables
Sequence[Get
Cynosdb Cluster Table] - Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- database str
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- result_
output_ strfile - table str
- table_
type str
- cluster
Id String - id String
- tables List<Property Map>
- Table Name List Note: This field may return null, indicating that a valid value cannot be obtained.
- database String
- Database name note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output StringFile - table String
- table
Type String
Supporting Types
GetCynosdbClusterTable
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