All Products
Search
Document Center

AnalyticDB for PostgreSQL:DescribeLogBackups

Last Updated:Jul 18, 2024

Queries a list of log backups.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The ID of the instance.

Note You can call the DescribeDBInstances operation to query the IDs of all AnalyticDB for PostgreSQL instances in a specific region.
gp-bp12ga6v69h86****
StartTimestringYes

The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2022-12-12T02:00Z
EndTimestringYes

The end of the time range to query. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2022-12-12T03:00Z
PageSizeintegerNo

The number of entries to return on each page. Valid values:

  • 30
  • 50
  • 100

Default value: 30.

30
PageNumberintegerNo

The number of the page to return. The value must be an integer that is greater than 0. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
TotalLogSizelong

The total size of logs in the time range. Unit: bytes.

386748
PageSizeinteger

The number of backup sets on the current page.

30
PageNumberinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

24B9FCAF-2CBC-51C3-B563-F1C70D750187
TotalCountinteger

The total number of entries.

5
Itemsarray<object>

Details of the backup sets.

object
LogFileSizelong

The size of the log backup set. Unit: bytes.

77350
LogTimestring

The timestamp of the log.

2022-12-12T02:14:26Z
SegmentNamestring

The name of the compute node.

segment-0
LogFileNamestring

The name of the log backup set that is stored in Object Storage Service (OSS).

000000010000000400000012
DBInstanceIdstring

The ID of the coordinator node.

gp-bp12ga6v69h86****-master
BackupIdstring

The ID of the backup set.

12413721782

Examples

Sample success responses

JSONformat

{
  "TotalLogSize": 386748,
  "PageSize": 30,
  "PageNumber": 1,
  "RequestId": "24B9FCAF-2CBC-51C3-B563-F1C70D750187",
  "TotalCount": 5,
  "Items": [
    {
      "LogFileSize": 77350,
      "LogTime": "2022-12-12T02:14:26Z",
      "SegmentName": "segment-0",
      "LogFileName": "000000010000000400000012",
      "DBInstanceId": "gp-bp12ga6v69h86****-master",
      "BackupId": "12413721782"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history