Domain name for API request: postgres.intl.tencentcloudapi.com.
This API is used to query a Database Audit log.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeAuditLogs. |
| Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-guangzhou, ap-shanghai, ap-shanghai-fsi. |
| InstanceId | Yes | String | Instance ID |
| StartTime | Yes | String | Start time Parameter format: 2026-03-25 00:00:00 |
| EndTime | Yes | String | End time Parameter format: 2026-03-25 01:00:00 |
| Limit | Yes | Integer | Query limit Value range: [1, 100] |
| Product | Yes | String | Product name Parameter format: postgres |
| Offset | No | Integer | Offset Value range: [0, 10000] |
| Order | No | String | Sorting method Input parameter limitation: Timestamp,AffectRows,ExecTime |
| OrderBy | No | String | Sorting field Input limit: ASC, DESC |
| Filter | No | AuditLogFilter | Filter criteria |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | log count |
| Items | Array of AuditLog | log details Note: This field may return null, indicating that no valid values can be obtained. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Querying Logs
POST / HTTP/1.1
Host: postgres.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAuditLogs
<Common request parameters>
{
"InstanceId": "postgres-loe5jryf",
"StartTime": "2026-04-15 22:42:59",
"EndTime": "2026-04-15 23:42:59",
"Limit": 1,
"Product": "postgres"
}
{
"Response": {
"Items": [],
"TotalCount": 0,
"RequestId": "49ad95cb-26ed-451a-94ea-7b0f06c1817a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameter.IllegalInputParameter | Invalid parameters. |
| OperationDenied.ResourceNotFoundError | The instance does not exist. |
| OperationDenied.ResourceNotFundError | The instance does not exist. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan