tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getSqlserverSlowlogs
Start a Neo task
Explain and create a tencentcloud.getSqlserverSlowlogs resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of sqlserver slowlogs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getSqlserverSlowlogs({
instanceId: "mssql-qelbzgwf",
startTime: "2023-08-01 00:00:00",
endTime: "2023-08-07 00:00:00",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_sqlserver_slowlogs(instance_id="mssql-qelbzgwf",
start_time="2023-08-01 00:00:00",
end_time="2023-08-07 00:00:00")
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.GetSqlserverSlowlogs(ctx, &tencentcloud.GetSqlserverSlowlogsArgs{
InstanceId: "mssql-qelbzgwf",
StartTime: "2023-08-01 00:00:00",
EndTime: "2023-08-07 00:00:00",
}, 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 example = Tencentcloud.GetSqlserverSlowlogs.Invoke(new()
{
InstanceId = "mssql-qelbzgwf",
StartTime = "2023-08-01 00:00:00",
EndTime = "2023-08-07 00:00:00",
});
});
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.GetSqlserverSlowlogsArgs;
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 example = TencentcloudFunctions.getSqlserverSlowlogs(GetSqlserverSlowlogsArgs.builder()
.instanceId("mssql-qelbzgwf")
.startTime("2023-08-01 00:00:00")
.endTime("2023-08-07 00:00:00")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getSqlserverSlowlogs
arguments:
instanceId: mssql-qelbzgwf
startTime: 2023-08-01 00:00:00
endTime: 2023-08-07 00:00:00
Using getSqlserverSlowlogs
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 getSqlserverSlowlogs(args: GetSqlserverSlowlogsArgs, opts?: InvokeOptions): Promise<GetSqlserverSlowlogsResult>
function getSqlserverSlowlogsOutput(args: GetSqlserverSlowlogsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverSlowlogsResult>def get_sqlserver_slowlogs(end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
start_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlserverSlowlogsResult
def get_sqlserver_slowlogs_output(end_time: 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,
start_time: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverSlowlogsResult]func GetSqlserverSlowlogs(ctx *Context, args *GetSqlserverSlowlogsArgs, opts ...InvokeOption) (*GetSqlserverSlowlogsResult, error)
func GetSqlserverSlowlogsOutput(ctx *Context, args *GetSqlserverSlowlogsOutputArgs, opts ...InvokeOption) GetSqlserverSlowlogsResultOutput> Note: This function is named GetSqlserverSlowlogs in the Go SDK.
public static class GetSqlserverSlowlogs
{
public static Task<GetSqlserverSlowlogsResult> InvokeAsync(GetSqlserverSlowlogsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlserverSlowlogsResult> Invoke(GetSqlserverSlowlogsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSqlserverSlowlogsResult> getSqlserverSlowlogs(GetSqlserverSlowlogsArgs args, InvokeOptions options)
public static Output<GetSqlserverSlowlogsResult> getSqlserverSlowlogs(GetSqlserverSlowlogsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getSqlserverSlowlogs:getSqlserverSlowlogs
arguments:
# arguments dictionaryThe following arguments are supported:
- End
Time string - Query end time.
- Instance
Id string - Instance ID.
- Start
Time string - Query start time.
- Id string
- Unique ID of slow query log file.
- Result
Output stringFile - Used to save results.
- End
Time string - Query end time.
- Instance
Id string - Instance ID.
- Start
Time string - Query start time.
- Id string
- Unique ID of slow query log file.
- Result
Output stringFile - Used to save results.
- end
Time String - Query end time.
- instance
Id String - Instance ID.
- start
Time String - Query start time.
- id String
- Unique ID of slow query log file.
- result
Output StringFile - Used to save results.
- end
Time string - Query end time.
- instance
Id string - Instance ID.
- start
Time string - Query start time.
- id string
- Unique ID of slow query log file.
- result
Output stringFile - Used to save results.
- end_
time str - Query end time.
- instance_
id str - Instance ID.
- start_
time str - Query start time.
- id str
- Unique ID of slow query log file.
- result_
output_ strfile - Used to save results.
- end
Time String - Query end time.
- instance
Id String - Instance ID.
- start
Time String - Query start time.
- id String
- Unique ID of slow query log file.
- result
Output StringFile - Used to save results.
getSqlserverSlowlogs Result
The following output properties are available:
- End
Time string - File generation end time.
- Id string
- Unique ID of slow query log file.
- Instance
Id string - Slowlogs
List<Get
Sqlserver Slowlogs Slowlog> - Information list of slow query logs.
- Start
Time string - File generation start time.
- Result
Output stringFile
- End
Time string - File generation end time.
- Id string
- Unique ID of slow query log file.
- Instance
Id string - Slowlogs
[]Get
Sqlserver Slowlogs Slowlog - Information list of slow query logs.
- Start
Time string - File generation start time.
- Result
Output stringFile
- end
Time String - File generation end time.
- id String
- Unique ID of slow query log file.
- instance
Id String - slowlogs
List<Get
Sqlserver Slowlogs Slowlog> - Information list of slow query logs.
- start
Time String - File generation start time.
- result
Output StringFile
- end
Time string - File generation end time.
- id string
- Unique ID of slow query log file.
- instance
Id string - slowlogs
Get
Sqlserver Slowlogs Slowlog[] - Information list of slow query logs.
- start
Time string - File generation start time.
- result
Output stringFile
- end_
time str - File generation end time.
- id str
- Unique ID of slow query log file.
- instance_
id str - slowlogs
Sequence[Get
Sqlserver Slowlogs Slowlog] - Information list of slow query logs.
- start_
time str - File generation start time.
- result_
output_ strfile
- end
Time String - File generation end time.
- id String
- Unique ID of slow query log file.
- instance
Id String - slowlogs List<Property Map>
- Information list of slow query logs.
- start
Time String - File generation start time.
- result
Output StringFile
Supporting Types
GetSqlserverSlowlogsSlowlog
- Count double
- Number of logs in file.
- End
Time string - Query end time.
- External
Addr string - Download address for public network.
- Id double
- Unique ID of slow query log file.
- Internal
Addr string - Download address for private network.
- Size double
- File size in KB.
- Start
Time string - Query start time.
- Status double
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
- Count float64
- Number of logs in file.
- End
Time string - Query end time.
- External
Addr string - Download address for public network.
- Id float64
- Unique ID of slow query log file.
- Internal
Addr string - Download address for private network.
- Size float64
- File size in KB.
- Start
Time string - Query start time.
- Status float64
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
- count Double
- Number of logs in file.
- end
Time String - Query end time.
- external
Addr String - Download address for public network.
- id Double
- Unique ID of slow query log file.
- internal
Addr String - Download address for private network.
- size Double
- File size in KB.
- start
Time String - Query start time.
- status Double
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
- count number
- Number of logs in file.
- end
Time string - Query end time.
- external
Addr string - Download address for public network.
- id number
- Unique ID of slow query log file.
- internal
Addr string - Download address for private network.
- size number
- File size in KB.
- start
Time string - Query start time.
- status number
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
- count float
- Number of logs in file.
- end_
time str - Query end time.
- external_
addr str - Download address for public network.
- id float
- Unique ID of slow query log file.
- internal_
addr str - Download address for private network.
- size float
- File size in KB.
- start_
time str - Query start time.
- status float
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
- count Number
- Number of logs in file.
- end
Time String - Query end time.
- external
Addr String - Download address for public network.
- id Number
- Unique ID of slow query log file.
- internal
Addr String - Download address for private network.
- size Number
- File size in KB.
- start
Time String - Query start time.
- status Number
- Status (1: success, 2: failure) Note: this field may return null, indicating that no valid values can be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
