调用 DescribeBackups 接口查询备份列表。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-21a3333b**** | 实例 ID。 |
BackupId | String | 否 | 20231101-021****_20231101-101**** | 备份 ID。 |
BackupStartTime | String | 否 | 2023-10-19T06:20:06.000Z | 备份创建最早时间,格式为 yyyy-MM-ddTHH:mm:ss.sssZ(UTC 时间)。 说明 以备份开始时间为准。 |
BackupEndTime | String | 否 | 2023-10-19T06:20:08.000Z | 备份创建最晚时间,格式为 yyyy-MM-ddTHH:mm:ss.sssZ(UTC 时间)。 说明 以备份开始时间为准。 |
BackupStatus | String | 否 | Success | 备份状态,取值:
|
BackupType | String | 否 | Full | 备份类型,取值:
|
PageNumber | Integer | 否 | 1 | 当前页查询偏移量,默认值为 1。 |
PageSize | Integer | 否 | 10 | 每页记录数,取值应大于 0 且不超过 1000,默认值为 10。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | 备份总数。 |
Backups | Object[] | 请参见返回示例。 | 备份列表。 |
POST /?Action=DescribeBackups&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-da8f12d3****" }
{ "ResponseMetadata": { "RequestId": "202308041100439000B4A38D7086052659", "Action": "DescribeBackups", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "Backups": [ { "BackupEndTime": "2023-11-15T12:43:08.000Z", "BackupFileName": "20231115-024906F_20231115-204305I", "BackupFileSize": 17195278, "BackupId": "20231115-024906F_20231115-204305I", "BackupProgress": 100, "BackupStartTime": "2023-11-15T12:43:05.000Z", "BackupStatus": "Success", "BackupType": "Increment", "CreateType": "System", "InstanceInfo": { "ChargeDetail": { "AutoRenew": false, "ChargeEndTime": "", "ChargeStartTime": "2023-09-11T06:43:34.000Z", "ChargeStatus": "Normal", "ChargeType": "PostPaid", "Number": 1, "OverdueReclaimTime": "", "OverdueTime": "", "Period": 1, "PeriodUnit": "Month" }, "DBEngineVersion": "PostgreSQL_12", "InstanceId": "postgres-da8f12d3****", "InstanceName": "测试实例", "InstanceStatus": "Running", "InstanceType": "HA", "Memory": 2, "Nodes": [ { "InstanceId": "postgres-da8f12d3****", "NodeId": "postgres-da8f12d3****", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Primary", "ZoneId": "cn-beijing-b" }, { "InstanceId": "postgres-da8f12d3****", "NodeId": "postgres-da8f12d3****-fkoh", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Secondary", "ZoneId": "cn-beijing-a" } ], "ProjectName": "rds-pg", "StorageSpace": 20, "StorageType": "LocalSSD", "SubnetId": "subnet-30uhx4w39n75s7r2qr0lq****", "VCPU": 1, "VpcId": "vpc-2gdgzrrl5icjk50ztyz6b****", "ZoneId": "cn-beijing-b" } } ], "Total": 1 } }