Domain name for API request: postgres.tencentcloudapi.com.
This API is used to query the list of log backups.
A maximum of 1000 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: DescribeLogBackups. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
MinFinishTime | No | String | Minimum end time of a backup in the format of 2018-01-01 00:00:00 . It is 7 days ago by default. |
MaxFinishTime | No | String | Maximum end time of a backup in the format of 2018-01-01 00:00:00 . It is the current time by default. |
Filters.N | No | Array of Filter | Filter instances using one or more criteria. Valid filter names: db-instance-id: Filter by instance ID (in string format). db-instance-name: Filter by instance name (in string format). db-instance-ip: Filter by instance VPC IP (in string format). |
Limit | No | Integer | The maximum number of results returned per page. Value range: 1-100. Default: 10 . |
Offset | No | Integer | Data offset, which starts from 0. |
OrderBy | No | String | Sorting field. Valid values: StartTime , FinishTime , Size . |
OrderByType | No | String | Sorting order. Valid values: asc (ascending), desc (descending). |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of queried log backups |
LogBackupSet | Array of LogBackup | List of log backup details |
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. |
u200cu200cu200cu200cu200cu200cu200cu200cThis example shows you how to query the latest record of the log backup.
POST / HTTP/1.1
Host: postgres.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLogBackups
<Common request parameters>
{
"Limit": 1,
"Offset": 0,
"OrderBy": "FinishTime",
"OrderByType": "desc"
}
{
"Response": {
"LogBackupSet": [
{
"BackupMethod": "physical",
"BackupMode": "automatic",
"DBInstanceId": "postgres-jdlmoll9",
"ExpireTime": "2023-02-22 21:10:52",
"FinishTime": "2023-02-15 21:10:52",
"Id": "2628bcde-ce13-554a-b47d-2b15187a02ec",
"Name": "******.tar.gz",
"Size": 16783360,
"StartTime": "2023-02-15 21:10:52",
"State": "finished"
}
],
"RequestId": "c716c175-6037-4bdd-a35b-2c05399489f3",
"TotalCount": 10
}
}
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 |
---|---|
FailedOperation.DatabaseAccessError | Failed to access database management service. Please try again later. If the problem persists, please contact customer service. |
FailedOperation.FailedOperationError | Operation failed. Please try again later. |
InvalidParameterValue.InvalidParameterValueError | Incorrect parameter value |
OperationDenied.CamDeniedError | This operation cannot be performed. |
문제 해결에 도움이 되었나요?