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

tencentcloud.getMysqlInstTables

Explore with Pulumi AI

tencentcloud logo
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.
    InstanceId 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
    ResultOutputFile string
    Used to save results.
    TableRegexp 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.
    InstanceId 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
    ResultOutputFile string
    Used to save results.
    TableRegexp 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.
    instanceId 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
    resultOutputFile String
    Used to save results.
    tableRegexp 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.
    instanceId 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
    resultOutputFile string
    Used to save results.
    tableRegexp 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_file str
    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.
    instanceId 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
    resultOutputFile String
    Used to save results.
    tableRegexp 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
    InstanceId string
    Items List<string>
    The returned database table information.
    ResultOutputFile string
    TableRegexp string
    Database string
    Id string
    InstanceId string
    Items []string
    The returned database table information.
    ResultOutputFile string
    TableRegexp string
    database String
    id String
    instanceId String
    items List<String>
    The returned database table information.
    resultOutputFile String
    tableRegexp String
    database string
    id string
    instanceId string
    items string[]
    The returned database table information.
    resultOutputFile string
    tableRegexp string
    database str
    id str
    instance_id str
    items Sequence[str]
    The returned database table information.
    result_output_file str
    table_regexp str
    database String
    id String
    instanceId String
    items List<String>
    The returned database table information.
    resultOutputFile String
    tableRegexp String

    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