1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getTaurusdbMysqlSlowLogsV3
opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud

opentelekomcloud.getTaurusdbMysqlSlowLogsV3

Get Started
opentelekomcloud logo
opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud

    Use this data source to get the list of TaurusDB MySQL slow logs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject<any>("instanceId");
    const nodeId = config.requireObject<any>("nodeId");
    const startDate = config.requireObject<any>("startDate");
    const endDate = config.requireObject<any>("endDate");
    const test = opentelekomcloud.getTaurusdbMysqlSlowLogsV3({
        instanceId: instanceId,
        nodeId: nodeId,
        startDate: startDate,
        endDate: endDate,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    node_id = config.require_object("nodeId")
    start_date = config.require_object("startDate")
    end_date = config.require_object("endDate")
    test = opentelekomcloud.get_taurusdb_mysql_slow_logs_v3(instance_id=instance_id,
        node_id=node_id,
        start_date=start_date,
        end_date=end_date)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		nodeId := cfg.RequireObject("nodeId")
    		startDate := cfg.RequireObject("startDate")
    		endDate := cfg.RequireObject("endDate")
    		_, err := opentelekomcloud.GetTaurusdbMysqlSlowLogsV3(ctx, &opentelekomcloud.GetTaurusdbMysqlSlowLogsV3Args{
    			InstanceId: instanceId,
    			NodeId:     nodeId,
    			StartDate:  startDate,
    			EndDate:    endDate,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var nodeId = config.RequireObject<dynamic>("nodeId");
        var startDate = config.RequireObject<dynamic>("startDate");
        var endDate = config.RequireObject<dynamic>("endDate");
        var test = Opentelekomcloud.GetTaurusdbMysqlSlowLogsV3.Invoke(new()
        {
            InstanceId = instanceId,
            NodeId = nodeId,
            StartDate = startDate,
            EndDate = endDate,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetTaurusdbMysqlSlowLogsV3Args;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var nodeId = config.get("nodeId");
            final var startDate = config.get("startDate");
            final var endDate = config.get("endDate");
            final var test = OpentelekomcloudFunctions.getTaurusdbMysqlSlowLogsV3(GetTaurusdbMysqlSlowLogsV3Args.builder()
                .instanceId(instanceId)
                .nodeId(nodeId)
                .startDate(startDate)
                .endDate(endDate)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      nodeId:
        type: dynamic
      startDate:
        type: dynamic
      endDate:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getTaurusdbMysqlSlowLogsV3
          arguments:
            instanceId: ${instanceId}
            nodeId: ${nodeId}
            startDate: ${startDate}
            endDate: ${endDate}
    

    Using getTaurusdbMysqlSlowLogsV3

    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 getTaurusdbMysqlSlowLogsV3(args: GetTaurusdbMysqlSlowLogsV3Args, opts?: InvokeOptions): Promise<GetTaurusdbMysqlSlowLogsV3Result>
    function getTaurusdbMysqlSlowLogsV3Output(args: GetTaurusdbMysqlSlowLogsV3OutputArgs, opts?: InvokeOptions): Output<GetTaurusdbMysqlSlowLogsV3Result>
    def get_taurusdb_mysql_slow_logs_v3(end_date: Optional[str] = None,
                                        id: Optional[str] = None,
                                        instance_id: Optional[str] = None,
                                        node_id: Optional[str] = None,
                                        start_date: Optional[str] = None,
                                        type: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetTaurusdbMysqlSlowLogsV3Result
    def get_taurusdb_mysql_slow_logs_v3_output(end_date: Optional[pulumi.Input[str]] = None,
                                        id: Optional[pulumi.Input[str]] = None,
                                        instance_id: Optional[pulumi.Input[str]] = None,
                                        node_id: Optional[pulumi.Input[str]] = None,
                                        start_date: Optional[pulumi.Input[str]] = None,
                                        type: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetTaurusdbMysqlSlowLogsV3Result]
    func GetTaurusdbMysqlSlowLogsV3(ctx *Context, args *GetTaurusdbMysqlSlowLogsV3Args, opts ...InvokeOption) (*GetTaurusdbMysqlSlowLogsV3Result, error)
    func GetTaurusdbMysqlSlowLogsV3Output(ctx *Context, args *GetTaurusdbMysqlSlowLogsV3OutputArgs, opts ...InvokeOption) GetTaurusdbMysqlSlowLogsV3ResultOutput

    > Note: This function is named GetTaurusdbMysqlSlowLogsV3 in the Go SDK.

    public static class GetTaurusdbMysqlSlowLogsV3 
    {
        public static Task<GetTaurusdbMysqlSlowLogsV3Result> InvokeAsync(GetTaurusdbMysqlSlowLogsV3Args args, InvokeOptions? opts = null)
        public static Output<GetTaurusdbMysqlSlowLogsV3Result> Invoke(GetTaurusdbMysqlSlowLogsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTaurusdbMysqlSlowLogsV3Result> getTaurusdbMysqlSlowLogsV3(GetTaurusdbMysqlSlowLogsV3Args args, InvokeOptions options)
    public static Output<GetTaurusdbMysqlSlowLogsV3Result> getTaurusdbMysqlSlowLogsV3(GetTaurusdbMysqlSlowLogsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getTaurusdbMysqlSlowLogsV3:getTaurusdbMysqlSlowLogsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndDate string
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    InstanceId string
    Specifies the ID of the TaurusDB MySQL instance.
    NodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    StartDate string
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    Id string
    The data source ID.
    Type string
    Specifies the SQL statement type.
    EndDate string
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    InstanceId string
    Specifies the ID of the TaurusDB MySQL instance.
    NodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    StartDate string
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    Id string
    The data source ID.
    Type string
    Specifies the SQL statement type.
    endDate String
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    instanceId String
    Specifies the ID of the TaurusDB MySQL instance.
    nodeId String
    Specifies the ID of the TaurusDB MySQL instance node.
    startDate String
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    id String
    The data source ID.
    type String
    Specifies the SQL statement type.
    endDate string
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    instanceId string
    Specifies the ID of the TaurusDB MySQL instance.
    nodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    startDate string
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    id string
    The data source ID.
    type string
    Specifies the SQL statement type.
    end_date str
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    instance_id str
    Specifies the ID of the TaurusDB MySQL instance.
    node_id str
    Specifies the ID of the TaurusDB MySQL instance node.
    start_date str
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    id str
    The data source ID.
    type str
    Specifies the SQL statement type.
    endDate String
    Specifies the end date in the yyyy-mm-ddThh:mm:ssZ format.
    instanceId String
    Specifies the ID of the TaurusDB MySQL instance.
    nodeId String
    Specifies the ID of the TaurusDB MySQL instance node.
    startDate String
    Specifies the start date in the yyyy-mm-ddThh:mm:ssZ format.
    id String
    The data source ID.
    type String
    Specifies the SQL statement type.

    getTaurusdbMysqlSlowLogsV3 Result

    The following output properties are available:

    EndDate string
    Id string
    The data source ID.
    InstanceId string
    NodeId string
    Indicates the ID of the TaurusDB MySQL instance node.
    Region string
    The data source region.
    SlowLogLists List<GetTaurusdbMysqlSlowLogsV3SlowLogList>
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    StartDate string
    Type string
    Indicates the statement type.
    EndDate string
    Id string
    The data source ID.
    InstanceId string
    NodeId string
    Indicates the ID of the TaurusDB MySQL instance node.
    Region string
    The data source region.
    SlowLogLists []GetTaurusdbMysqlSlowLogsV3SlowLogList
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    StartDate string
    Type string
    Indicates the statement type.
    endDate String
    id String
    The data source ID.
    instanceId String
    nodeId String
    Indicates the ID of the TaurusDB MySQL instance node.
    region String
    The data source region.
    slowLogLists List<GetTaurusdbMysqlSlowLogsV3SlowLogList>
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    startDate String
    type String
    Indicates the statement type.
    endDate string
    id string
    The data source ID.
    instanceId string
    nodeId string
    Indicates the ID of the TaurusDB MySQL instance node.
    region string
    The data source region.
    slowLogLists GetTaurusdbMysqlSlowLogsV3SlowLogList[]
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    startDate string
    type string
    Indicates the statement type.
    end_date str
    id str
    The data source ID.
    instance_id str
    node_id str
    Indicates the ID of the TaurusDB MySQL instance node.
    region str
    The data source region.
    slow_log_lists Sequence[GetTaurusdbMysqlSlowLogsV3SlowLogList]
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    start_date str
    type str
    Indicates the statement type.
    endDate String
    id String
    The data source ID.
    instanceId String
    nodeId String
    Indicates the ID of the TaurusDB MySQL instance node.
    region String
    The data source region.
    slowLogLists List<Property Map>
    Indicates the list of the slow logs. The slow_log_list structure is documented below.
    startDate String
    type String
    Indicates the statement type.

    Supporting Types

    GetTaurusdbMysqlSlowLogsV3SlowLogList

    ClientIp string
    Indicates the IP address of the client.
    Count string
    Indicates the number of executions.
    Database string
    Indicates the database that slow query logs belong to.
    LockTime string
    Indicates the lock wait time.
    NodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    QuerySample string
    Indicates the execution syntax.
    RowsExamined string
    Indicates the number of scanned rows.
    RowsSent string
    Indicates the number of sent rows.
    StartTime string
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    Time string
    Indicates the execution time.
    Type string
    Specifies the SQL statement type.
    Users string
    Indicates the name of the account.
    ClientIp string
    Indicates the IP address of the client.
    Count string
    Indicates the number of executions.
    Database string
    Indicates the database that slow query logs belong to.
    LockTime string
    Indicates the lock wait time.
    NodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    QuerySample string
    Indicates the execution syntax.
    RowsExamined string
    Indicates the number of scanned rows.
    RowsSent string
    Indicates the number of sent rows.
    StartTime string
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    Time string
    Indicates the execution time.
    Type string
    Specifies the SQL statement type.
    Users string
    Indicates the name of the account.
    clientIp String
    Indicates the IP address of the client.
    count String
    Indicates the number of executions.
    database String
    Indicates the database that slow query logs belong to.
    lockTime String
    Indicates the lock wait time.
    nodeId String
    Specifies the ID of the TaurusDB MySQL instance node.
    querySample String
    Indicates the execution syntax.
    rowsExamined String
    Indicates the number of scanned rows.
    rowsSent String
    Indicates the number of sent rows.
    startTime String
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    time String
    Indicates the execution time.
    type String
    Specifies the SQL statement type.
    users String
    Indicates the name of the account.
    clientIp string
    Indicates the IP address of the client.
    count string
    Indicates the number of executions.
    database string
    Indicates the database that slow query logs belong to.
    lockTime string
    Indicates the lock wait time.
    nodeId string
    Specifies the ID of the TaurusDB MySQL instance node.
    querySample string
    Indicates the execution syntax.
    rowsExamined string
    Indicates the number of scanned rows.
    rowsSent string
    Indicates the number of sent rows.
    startTime string
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    time string
    Indicates the execution time.
    type string
    Specifies the SQL statement type.
    users string
    Indicates the name of the account.
    client_ip str
    Indicates the IP address of the client.
    count str
    Indicates the number of executions.
    database str
    Indicates the database that slow query logs belong to.
    lock_time str
    Indicates the lock wait time.
    node_id str
    Specifies the ID of the TaurusDB MySQL instance node.
    query_sample str
    Indicates the execution syntax.
    rows_examined str
    Indicates the number of scanned rows.
    rows_sent str
    Indicates the number of sent rows.
    start_time str
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    time str
    Indicates the execution time.
    type str
    Specifies the SQL statement type.
    users str
    Indicates the name of the account.
    clientIp String
    Indicates the IP address of the client.
    count String
    Indicates the number of executions.
    database String
    Indicates the database that slow query logs belong to.
    lockTime String
    Indicates the lock wait time.
    nodeId String
    Specifies the ID of the TaurusDB MySQL instance node.
    querySample String
    Indicates the execution syntax.
    rowsExamined String
    Indicates the number of scanned rows.
    rowsSent String
    Indicates the number of sent rows.
    startTime String
    Indicates the start time in the yyyy-mm-ddThh:mm:ssZ format.
    time String
    Indicates the execution time.
    type String
    Specifies the SQL statement type.
    users String
    Indicates the name of the account.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud
      Meet Neo: Your AI Platform Teammate