tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDbbrainMysqlProcessList
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 dbbrain mysql_process_list
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mysqlProcessList = tencentcloud.getDbbrainMysqlProcessList({
instanceId: local.mysql_id,
product: "mysql",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mysql_process_list = tencentcloud.get_dbbrain_mysql_process_list(instance_id=local["mysql_id"],
product="mysql")
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.GetDbbrainMysqlProcessList(ctx, &tencentcloud.GetDbbrainMysqlProcessListArgs{
InstanceId: local.Mysql_id,
Product: pulumi.StringRef("mysql"),
}, 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 mysqlProcessList = Tencentcloud.GetDbbrainMysqlProcessList.Invoke(new()
{
InstanceId = local.Mysql_id,
Product = "mysql",
});
});
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.GetDbbrainMysqlProcessListArgs;
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 mysqlProcessList = TencentcloudFunctions.getDbbrainMysqlProcessList(GetDbbrainMysqlProcessListArgs.builder()
.instanceId(local.mysql_id())
.product("mysql")
.build());
}
}
variables:
mysqlProcessList:
fn::invoke:
function: tencentcloud:getDbbrainMysqlProcessList
arguments:
instanceId: ${local.mysql_id}
product: mysql
Using getDbbrainMysqlProcessList
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 getDbbrainMysqlProcessList(args: GetDbbrainMysqlProcessListArgs, opts?: InvokeOptions): Promise<GetDbbrainMysqlProcessListResult>
function getDbbrainMysqlProcessListOutput(args: GetDbbrainMysqlProcessListOutputArgs, opts?: InvokeOptions): Output<GetDbbrainMysqlProcessListResult>
def get_dbbrain_mysql_process_list(command: Optional[str] = None,
db: Optional[str] = None,
host: Optional[str] = None,
id: Optional[float] = None,
info: Optional[str] = None,
instance_id: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
state: Optional[str] = None,
time: Optional[float] = None,
user: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainMysqlProcessListResult
def get_dbbrain_mysql_process_list_output(command: Optional[pulumi.Input[str]] = None,
db: Optional[pulumi.Input[str]] = None,
host: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[float]] = None,
info: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
time: Optional[pulumi.Input[float]] = None,
user: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainMysqlProcessListResult]
func GetDbbrainMysqlProcessList(ctx *Context, args *GetDbbrainMysqlProcessListArgs, opts ...InvokeOption) (*GetDbbrainMysqlProcessListResult, error)
func GetDbbrainMysqlProcessListOutput(ctx *Context, args *GetDbbrainMysqlProcessListOutputArgs, opts ...InvokeOption) GetDbbrainMysqlProcessListResultOutput
> Note: This function is named GetDbbrainMysqlProcessList
in the Go SDK.
public static class GetDbbrainMysqlProcessList
{
public static Task<GetDbbrainMysqlProcessListResult> InvokeAsync(GetDbbrainMysqlProcessListArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainMysqlProcessListResult> Invoke(GetDbbrainMysqlProcessListInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbbrainMysqlProcessListResult> getDbbrainMysqlProcessList(GetDbbrainMysqlProcessListArgs args, InvokeOptions options)
public static Output<GetDbbrainMysqlProcessListResult> getDbbrainMysqlProcessList(GetDbbrainMysqlProcessListArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainMysqlProcessList:getDbbrainMysqlProcessList
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - instance id.
- Command string
- The execution type of the thread, used to filter the thread list.
- Db string
- The threads operations database, used to filter the thread list.
- Host string
- The operating host address of the thread, used to filter the thread list.
- Id double
- thread ID, used to filter the thread list.
- Info string
- The threads operation statement is used to filter the thread list.
- Product string
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - Result
Output stringFile - Used to save results.
- State string
- The operational state of the thread, used to filter the thread list.
- Time double
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- User string
- The operating account name of the thread, used to filter the thread list.
- Instance
Id string - instance id.
- Command string
- The execution type of the thread, used to filter the thread list.
- Db string
- The threads operations database, used to filter the thread list.
- Host string
- The operating host address of the thread, used to filter the thread list.
- Id float64
- thread ID, used to filter the thread list.
- Info string
- The threads operation statement is used to filter the thread list.
- Product string
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - Result
Output stringFile - Used to save results.
- State string
- The operational state of the thread, used to filter the thread list.
- Time float64
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- User string
- The operating account name of the thread, used to filter the thread list.
- instance
Id String - instance id.
- command String
- The execution type of the thread, used to filter the thread list.
- db String
- The threads operations database, used to filter the thread list.
- host String
- The operating host address of the thread, used to filter the thread list.
- id Double
- thread ID, used to filter the thread list.
- info String
- The threads operation statement is used to filter the thread list.
- product String
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - result
Output StringFile - Used to save results.
- state String
- The operational state of the thread, used to filter the thread list.
- time Double
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user String
- The operating account name of the thread, used to filter the thread list.
- instance
Id string - instance id.
- command string
- The execution type of the thread, used to filter the thread list.
- db string
- The threads operations database, used to filter the thread list.
- host string
- The operating host address of the thread, used to filter the thread list.
- id number
- thread ID, used to filter the thread list.
- info string
- The threads operation statement is used to filter the thread list.
- product string
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - result
Output stringFile - Used to save results.
- state string
- The operational state of the thread, used to filter the thread list.
- time number
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user string
- The operating account name of the thread, used to filter the thread list.
- instance_
id str - instance id.
- command str
- The execution type of the thread, used to filter the thread list.
- db str
- The threads operations database, used to filter the thread list.
- host str
- The operating host address of the thread, used to filter the thread list.
- id float
- thread ID, used to filter the thread list.
- info str
- The threads operation statement is used to filter the thread list.
- product str
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - result_
output_ strfile - Used to save results.
- state str
- The operational state of the thread, used to filter the thread list.
- time float
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user str
- The operating account name of the thread, used to filter the thread list.
- instance
Id String - instance id.
- command String
- The execution type of the thread, used to filter the thread list.
- db String
- The threads operations database, used to filter the thread list.
- host String
- The operating host address of the thread, used to filter the thread list.
- id Number
- thread ID, used to filter the thread list.
- info String
- The threads operation statement is used to filter the thread list.
- product String
- Service product type, supported values:
mysql
- cloud database MySQL;cynosdb
- cloud database TDSQL-C for MySQL, the default ismysql
. - result
Output StringFile - Used to save results.
- state String
- The operational state of the thread, used to filter the thread list.
- time Number
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user String
- The operating account name of the thread, used to filter the thread list.
getDbbrainMysqlProcessList Result
The following output properties are available:
- Instance
Id string - Process
Lists List<GetDbbrain Mysql Process List Process List> - Live thread list.
- Command string
- The execution type of the thread.
- Db string
- The thread that operates the database.
- Host string
- The operating host address of the thread.
- Id double
- thread ID.
- Info string
- The operation statement for the thread.
- Product string
- Result
Output stringFile - State string
- The operational state of the thread.
- Time double
- The operation duration of the thread, in seconds.
- User string
- The operating account name of the thread.
- Instance
Id string - Process
Lists []GetDbbrain Mysql Process List Process List - Live thread list.
- Command string
- The execution type of the thread.
- Db string
- The thread that operates the database.
- Host string
- The operating host address of the thread.
- Id float64
- thread ID.
- Info string
- The operation statement for the thread.
- Product string
- Result
Output stringFile - State string
- The operational state of the thread.
- Time float64
- The operation duration of the thread, in seconds.
- User string
- The operating account name of the thread.
- instance
Id String - process
Lists List<GetDbbrain Mysql Process List Process List> - Live thread list.
- command String
- The execution type of the thread.
- db String
- The thread that operates the database.
- host String
- The operating host address of the thread.
- id Double
- thread ID.
- info String
- The operation statement for the thread.
- product String
- result
Output StringFile - state String
- The operational state of the thread.
- time Double
- The operation duration of the thread, in seconds.
- user String
- The operating account name of the thread.
- instance
Id string - process
Lists GetDbbrain Mysql Process List Process List[] - Live thread list.
- command string
- The execution type of the thread.
- db string
- The thread that operates the database.
- host string
- The operating host address of the thread.
- id number
- thread ID.
- info string
- The operation statement for the thread.
- product string
- result
Output stringFile - state string
- The operational state of the thread.
- time number
- The operation duration of the thread, in seconds.
- user string
- The operating account name of the thread.
- instance_
id str - process_
lists Sequence[GetDbbrain Mysql Process List Process List] - Live thread list.
- command str
- The execution type of the thread.
- db str
- The thread that operates the database.
- host str
- The operating host address of the thread.
- id float
- thread ID.
- info str
- The operation statement for the thread.
- product str
- result_
output_ strfile - state str
- The operational state of the thread.
- time float
- The operation duration of the thread, in seconds.
- user str
- The operating account name of the thread.
- instance
Id String - process
Lists List<Property Map> - Live thread list.
- command String
- The execution type of the thread.
- db String
- The thread that operates the database.
- host String
- The operating host address of the thread.
- id Number
- thread ID.
- info String
- The operation statement for the thread.
- product String
- result
Output StringFile - state String
- The operational state of the thread.
- time Number
- The operation duration of the thread, in seconds.
- user String
- The operating account name of the thread.
Supporting Types
GetDbbrainMysqlProcessListProcessList
- Command string
- The execution type of the thread, used to filter the thread list.
- Db string
- The threads operations database, used to filter the thread list.
- Host string
- The operating host address of the thread, used to filter the thread list.
- Id string
- thread ID, used to filter the thread list.
- Info string
- The threads operation statement is used to filter the thread list.
- State string
- The operational state of the thread, used to filter the thread list.
- Time string
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- User string
- The operating account name of the thread, used to filter the thread list.
- Command string
- The execution type of the thread, used to filter the thread list.
- Db string
- The threads operations database, used to filter the thread list.
- Host string
- The operating host address of the thread, used to filter the thread list.
- Id string
- thread ID, used to filter the thread list.
- Info string
- The threads operation statement is used to filter the thread list.
- State string
- The operational state of the thread, used to filter the thread list.
- Time string
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- User string
- The operating account name of the thread, used to filter the thread list.
- command String
- The execution type of the thread, used to filter the thread list.
- db String
- The threads operations database, used to filter the thread list.
- host String
- The operating host address of the thread, used to filter the thread list.
- id String
- thread ID, used to filter the thread list.
- info String
- The threads operation statement is used to filter the thread list.
- state String
- The operational state of the thread, used to filter the thread list.
- time String
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user String
- The operating account name of the thread, used to filter the thread list.
- command string
- The execution type of the thread, used to filter the thread list.
- db string
- The threads operations database, used to filter the thread list.
- host string
- The operating host address of the thread, used to filter the thread list.
- id string
- thread ID, used to filter the thread list.
- info string
- The threads operation statement is used to filter the thread list.
- state string
- The operational state of the thread, used to filter the thread list.
- time string
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user string
- The operating account name of the thread, used to filter the thread list.
- command str
- The execution type of the thread, used to filter the thread list.
- db str
- The threads operations database, used to filter the thread list.
- host str
- The operating host address of the thread, used to filter the thread list.
- id str
- thread ID, used to filter the thread list.
- info str
- The threads operation statement is used to filter the thread list.
- state str
- The operational state of the thread, used to filter the thread list.
- time str
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user str
- The operating account name of the thread, used to filter the thread list.
- command String
- The execution type of the thread, used to filter the thread list.
- db String
- The threads operations database, used to filter the thread list.
- host String
- The operating host address of the thread, used to filter the thread list.
- id String
- thread ID, used to filter the thread list.
- info String
- The threads operation statement is used to filter the thread list.
- state String
- The operational state of the thread, used to filter the thread list.
- time String
- The minimum value of the operation duration of a thread, in seconds, used to filter the list of threads whose operation duration is longer than this value.
- user String
- The operating account name of the thread, used to filter the thread list.
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