tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMysqlInstTables
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 mysql inst_tables
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const instTables = tencentcloud.getMysqlInstTables({
database: "tf_ci_test",
instanceId: "cdb-fitq5t9h",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
inst_tables = tencentcloud.get_mysql_inst_tables(database="tf_ci_test",
instance_id="cdb-fitq5t9h")
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.GetMysqlInstTables(ctx, &tencentcloud.GetMysqlInstTablesArgs{
Database: "tf_ci_test",
InstanceId: "cdb-fitq5t9h",
}, 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 instTables = Tencentcloud.GetMysqlInstTables.Invoke(new()
{
Database = "tf_ci_test",
InstanceId = "cdb-fitq5t9h",
});
});
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.GetMysqlInstTablesArgs;
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 instTables = TencentcloudFunctions.getMysqlInstTables(GetMysqlInstTablesArgs.builder()
.database("tf_ci_test")
.instanceId("cdb-fitq5t9h")
.build());
}
}
variables:
instTables:
fn::invoke:
function: tencentcloud:getMysqlInstTables
arguments:
database: tf_ci_test
instanceId: cdb-fitq5t9h
Using getMysqlInstTables
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 getMysqlInstTables(args: GetMysqlInstTablesArgs, opts?: InvokeOptions): Promise<GetMysqlInstTablesResult>
function getMysqlInstTablesOutput(args: GetMysqlInstTablesOutputArgs, opts?: InvokeOptions): Output<GetMysqlInstTablesResult>
def get_mysql_inst_tables(database: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
table_regexp: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlInstTablesResult
def get_mysql_inst_tables_output(database: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
table_regexp: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMysqlInstTablesResult]
func GetMysqlInstTables(ctx *Context, args *GetMysqlInstTablesArgs, opts ...InvokeOption) (*GetMysqlInstTablesResult, error)
func GetMysqlInstTablesOutput(ctx *Context, args *GetMysqlInstTablesOutputArgs, opts ...InvokeOption) GetMysqlInstTablesResultOutput
> Note: This function is named GetMysqlInstTables
in the Go SDK.
public static class GetMysqlInstTables
{
public static Task<GetMysqlInstTablesResult> InvokeAsync(GetMysqlInstTablesArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlInstTablesResult> Invoke(GetMysqlInstTablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMysqlInstTablesResult> getMysqlInstTables(GetMysqlInstTablesArgs args, InvokeOptions options)
public static Output<GetMysqlInstTablesResult> getMysqlInstTables(GetMysqlInstTablesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlInstTables:getMysqlInstTables
arguments:
# arguments dictionary
The following arguments are supported:
- Database string
- The name of the database.
- Instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- Id string
- Result
Output stringFile - Used to save results.
- Table
Regexp string - Match the regular expression of the database table name, the rules are the same as MySQL official website.
- Database string
- The name of the database.
- Instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- Id string
- Result
Output stringFile - Used to save results.
- Table
Regexp string - Match the regular expression of the database table name, the rules are the same as MySQL official website.
- database String
- The name of the database.
- instance
Id String - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id String
- result
Output StringFile - Used to save results.
- table
Regexp String - Match the regular expression of the database table name, the rules are the same as MySQL official website.
- database string
- The name of the database.
- instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id string
- result
Output stringFile - Used to save results.
- table
Regexp string - Match the regular expression of the database table name, the rules are the same as MySQL official website.
- database str
- The name of the database.
- instance_
id str - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id str
- result_
output_ strfile - Used to save results.
- table_
regexp str - Match the regular expression of the database table name, the rules are the same as MySQL official website.
- database String
- The name of the database.
- instance
Id String - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id String
- result
Output StringFile - Used to save results.
- table
Regexp String - Match the regular expression of the database table name, the rules are the same as MySQL official website.
getMysqlInstTables Result
The following output properties are available:
- Database string
- Id string
- Instance
Id string - Items List<string>
- The returned database table information.
- Result
Output stringFile - Table
Regexp string
- Database string
- Id string
- Instance
Id string - Items []string
- The returned database table information.
- Result
Output stringFile - Table
Regexp string
- database String
- id String
- instance
Id String - items List<String>
- The returned database table information.
- result
Output StringFile - table
Regexp String
- database string
- id string
- instance
Id string - items string[]
- The returned database table information.
- result
Output stringFile - table
Regexp string
- database str
- id str
- instance_
id str - items Sequence[str]
- The returned database table information.
- result_
output_ strfile - table_
regexp str
- database String
- id String
- instance
Id String - items List<String>
- The returned database table information.
- result
Output StringFile - table
Regexp String
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