调用 DescribeBackups 接口查询目标 Redis 实例的备份集列表。
同步请求。
仅主备实例(即 InstanceClass
为 PrimarySecondary
)支持调用该接口,单节点实例(即 InstanceClass
取值为 Standalone
)不支持备份恢复相关操作,不支持调用该接口。关于两种类型实例的功能特性差异详情,请参见功能特性差异。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Scope | String | 否 | AccountInstances | 备份查询范围。取值范围如下:
|
InstanceId | String | 否 | redis-cn0212gzmh2xs**** | 实例 ID。 说明
|
StartTime | String | 否 | 2022-01-30T03:16:00Z | 查询开始时间。格式为 说明
|
EndTime | String | 否 | 2022-01-30T03:17:00Z | 查询结束时间。格式为 说明
|
BackupStrategyList | String[] | 否 | [
"AutomatedBackup",
"ManualBackup"
] | 备份方式列表。取值范围如下:
说明
|
BackupPointName | String | 否 | b-cn02xmmrp751i9cdzcphjmk4**** | 备份名称,支持模糊查询。 说明
|
ProjectName | String | 否 | default | 备份所属的项目。 说明
|
PageSize | Integer | 否 | 10 | 每页记录数。取值为 1~100 间的整数。每页记录数。取值为 1~100 间的整数。 说明
|
PageNumber | Integer | 否 | 1 | 备份集信息列表的页码,取值为不超过 Integer 数据类型的最大值,起始值为 1。 说明
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
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-e75b4f49043d", "Action": "DescribeBackups", "Version": "2020-12-07", "Service": "Redis", "Region": "cn-beijing" }, "Result": { "Backups": [ { "BackupPointId": "b-cn02xmmrp751i9cdzcphjmk4****", "BackupPointName": "b-cn02xmmrp751i9cdzcphjmk4****", "BackupStrategy":"ManualBackup", "BackupType": "Full", "EndTime": "2022-01-30T03:16:15Z", "InstanceDetail": { "AccountId": 2100xxxxxx, "ArchType": "Cluster", "ChargeType": "PrePaid", "EngineVersion": "5.0", "ExpiredTime": "2022-02-28 23:59:59", "InstanceId": "redis-cn0212gzmh2xs****", "InstanceName": "test", "MaintenanceTime": "02:00-03:00", "NetworkType": "VPC", "RegionId": "cn-beijing", "Replicas": 2, "ShardCapacity": 256, "ShardCount": 1, "TotalCapacity": 256, "UsedCapacity": 0, "VpcInfo": { "ID": "vpc-3tf2ofnsmi3vj0wt****", "Name": "vpc_test" }, "ZoneIds":[ "cn-beijing-a" ] }, "InstanceId": "redis-cn0212gzmh2xs****", "ProjectName": "default", "Size": 0, "StartTime": "2022-01-30T03:16:11Z", "Status": "Available", "TTL": 7 } ] "Total": 1 } }
更多详情,请参见错误码。