查看备份列表

最近更新时间:2018-12-20 17:39:40

DescribeDBBackups 查看备份列表

查看指定MySQL实例的备份列表。

请求参数

英文名称 中文名称 类型 是否必须 备注
Action 调用接口名称 String 取固定值:DescribeDBBackups
Version API版本号 String 取固定值:2016-07-01
DBInstanceIdentifier 实例Id String
BackupType 备份类型 String 取值范围:AutoBackup(自动产生的备份)、Snapshot(手动发起的备份)
Keyword 备份搜索关键字(根据备份名字) String
Marker 获取记录开始偏移量 Integer
MaxRecords 每页结果中包含的最大条数 Integer 取值范围[10,100],默认为10

返回值

RequestId

请求ID

  • 类型:String

DBBackup

备份model

  • 类型:DBBackup

Marker

获取记录开始偏移量

  • 类型:String

MaxRecords

每页结果中包含的最大条数

  • 类型:Integer

TotalCount

记录总数

  • 类型:Integer

请求示例

http://krds.api.ksyun.com/?Action=DescribeDBBackups&Version=2016-07-01&DBInstanceIdentifier=bb2d111a-af44-41ee-b10d-754f23bc59e1

示例返回

{
    "Data": {
        "Marker": 10,
        "TotalCount": 4,
        "MaxRecords": 10,
        "DBBackup": [
            {
                "Engine": "mysql",
                "BackupUpdatedTime": "2017-02-22T15:22:11+0800",
                "BackupLocationRef": "/data/snapshot/58cef70d-1ec3-4d87-bd4a-67a0d38bc4b2/34446452-9af9-4323-8a15-3216c6d8a570",
                "BackupCreateTime": "2017-02-22T15:22:11+0800",
                "DBBackupIdentifier": "34446452-9af9-4323-8a15-3216c6d8a570",
                "BackupMode": "FULL_AMOUNT_BACKUP",
                "Status": "COMPLETED",
                "BackupType": "Snapshot",
                "DBBackupName": "test1",
                "EngineVersion": "5.5",
                "BackupSize": 1.4,
                "DBInstanceIdentifier": "244fa411-8ebb-4588-a258-e8f8f00b3283",
                "RemotePath": "http://ks3-cn-shanghai.ksyun.com/krds-shanghai-test/rds/openstack/lxc_data/c7f3c2487eb34bbbbad16f76da2e2eb7/backup/e5341865-d181-4674-aa47-d8926a8f2717/965859da-0950-49da-bdab-67da80fd7975/965859da-0950-49da-bdab-67da80fd7975.xbstream?AccessKeyId=bCPubcaLG5jstVnENKm%2F&Expires=1530087146&Signature=NnIGRXLlM3TvcL3SeZpfqNvd95w%3D"
            },
            {
                "Engine": "mysql",
                "BackupUpdatedTime": "2017-02-21T23:25:35+0800",
                "BackupLocationRef": "/data/incremental/58cef70d-1ec3-4d87-bd4a-67a0d38bc4b2/e70eb37f-530f-4c09-8105-6bbcf8b1cc2f",
                "BackupCreateTime": "2017-02-21T23:25:35+0800",
                "DBBackupIdentifier": "e70eb37f-530f-4c09-8105-6bbcf8b1cc2f",
                "BackupMode": "INCREMENTAL_BACKUP",
                "Status": "COMPLETED",
                "BackupType": "AutoBackup",
                "DBBackupName": "autobackup-20170221232535",
                "ParentId": "72d4561d-8d64-4ed2-ba9a-b7805d4bdc12",
                "EngineVersion": "5.5",
                "BackupSize": 1.02,
                "DBInstanceIdentifier": "244fa411-8ebb-4588-a258-e8f8f00b3283",
                "RemotePath": "http://ks3-cn-shanghai.ksyun.com/krds-shanghai-test/rds/openstack/lxc_data/c7f3c2487eb34bbbbad16f76da2e2eb7/backup/e5341865-d181-4674-aa47-d8926a8f2717/965859da-0950-49da-bdab-67da80fd7975/965859da-0950-49da-bdab-67da80fd7975.xbstream?AccessKeyId=bCPubcaLG5jstVnENKm%2F&Expires=1530087146&Signature=NnIGRXLlM3TvcL3SeZpfqNvd95w%3D"
            }
        ]
    },
    "RequestId": "333f7691-02e5-41d6-aad7-7266b580659f"
}

金山云,开启您的云计算之旅

注册有礼