调用 DescribeBackups 接口查询目标 Redis 企业版实例的备份集列表。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Scope | String | 否 | AccountInstances | 备份查询范围。取值范围如下:
|
InstanceId | String | 否 | redis-cn0212gzmh2xs**** | 实例 ID。 说明
|
StartTime | String | 否 | 2024-08-22T07:51:09Z | 查询开始时间。格式为 说明
|
EndTime | String | 否 | 2024-08-22T07:51:12Z | 查询结束时间。格式为 说明
|
BackupStrategyList | String[] | 否 | [
"AutomatedBackup",
"ManualBackup"
] | 备份方式列表。取值范围如下:
说明
|
BackupPointName | String | 否 | testbackup | 备份名称,支持模糊查询。 说明
|
ProjectName | String | 否 | default | 备份所属的项目。 说明
|
PageSize | Integer | 否 | 10 | 每页记录数。取值为 1~100 间的整数。 说明
|
PageNumber | Integer | 否 | 1 | 备份集信息列表的页码,取值为不超过 Integer 数据类型的最大值,起始值为 1。 说明
|
BackupPointId | String | 否 | b-cn02xmmrp751i9cdzcphjmk4**** | 备份文件的备份 ID。支持模糊查询。 说明
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | 总的备份集信息条目数。 |
Backups | Object[] | 备份集信息列表详情。 |
POST https://redis.volcengineapi.com/?Action=DescribeBackups&Version=2020-12-07 HTTP/1.1 Host: redis.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/Redis/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceId": "redis-cn0212gzmh2xs****", "PageNumber": 1, "PageSize": 10, "BackupStrategyList": [ "AutomatedBackup", "ManualBackup" ] }
{ "ResponseMetadata": { "RequestId": "f3ffd83e-bef7-43b9-a803-e75b4f49****", "Action": "DescribeBackups", "Version": "2020-12-07", "Service": "Redis", "Region": "cn-beijing" }, "Result": { "Backups": [ { "BackupPointId": "b-cn02xmmrp751i9cdzcphjmk4****", "BackupPointName": "testbackup", "BackupStrategy": "ManualBackup", "BackupType": "Full", "EndTime": "2024-08-22T07:51:12Z", "InstanceId": "redis-cn0212gzmh2xs****", "InstanceInfo": { "AccountId": 210000****, "ArchType": "Cluster", "ChargeType": "PostPaid", "DeletionProtection": "disabled", "EngineVersion": "7.2", "ExpiredTime": "", "InstanceId": "redis-cn0212gzmh2xs****", "InstanceName": "test", "MaintenanceTime": "02:00-03:00", "NetworkType": "VPC", "RegionId": "cn-beijing", "Replicas": 2, "ShardCapacity": 1024, "ShardNumber": 2, "TotalCapacity": 2048, "VpcId": "3tf2ofnsmi3vj0wt****", "ZoneIds": [ "cn-beijing-a" ] }, "ProjectName": "default", "Size": 486040, "StartTime": "2024-08-22T07:51:09Z", "Status": "Available", "TTL": 7 } ], "Total": 1 } }
更多详情,请参见错误码。