Querying Slow Query Log Files (SQL Server)
Function
This API is used to query slow query log files.
- Before calling an API, you need to understand the API in Authentication.
Constraints
This API is supported only for Microsoft SQL Server.
URI
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Project ID of a tenant in a region.
For details about how to obtain the project ID, see Obtaining a Project ID.
instance_id
Yes
ID of the instance to be queried.
offset
No
Index offset.
If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.
limit
No
Number of records on each page. Its value range is from 1 to 100. The parameter value is 10 by default if it is not specified.
Request
Response
- Normal response
Table 2 Parameter description Name
Type
Description
list
Array of objects
Slow log file information. For details, see Table 3.
total_count
Integer
Total number of files.
- Example normal response
{ "total_count" : 1, "list" : [ { "file_name" : "SQLTrace.trc", "file_size" : "1024" } ] }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot