最近更新时间:2021-10-19 16:38:11
恢复库表到当前实例,恢复的时候可以同时修改库或者表的名称。
可选择使用备份还是指定时间点来恢复,恢复时指定库表。
POST
英文名称 | 中文名称 | 类型 | 是否必须 | 备注 |
---|---|---|---|---|
Action | 调用接口名称 | String | 是 | 取固定值:RestoreToCurInstance |
Version | API版本号 | String | 是 | 取固定值:2016-07-01 |
DBBackupIdentifier | 备份id | String | 否 | 根据备份恢复,必传备份id,且必传SrcDatabases和DstDatabases |
RestorableTime | 恢复时间 | String | 否 | 根据时间点恢复,必传时间点,且必传SrcDatabases和DstDatabases;格式:yyyy-MM-dd HH:mm:ss |
SrcDatabases | 源 | list | 否 | [{ “DatabaseName”: “wang”, “WholeDatabase”:“True”, “TableNames”: [ “li”] }] |
DstDatabases | 目标 | list | 否 | [{ “DatabaseName”: “wang”, “WholeDatabase”:“True”, “TableNames”: [ “li”] }] |
英文名称 | 中文名称 | 类型 | 备注 |
---|---|---|---|
RequestId | 请求id | String |
//request url:
http://krds.{{region}}.api.ksyun.com/?Action=RestoreToCurInstance
//request body:
{
"DBInstanceIdentifier": "4d97f65f-5603-4373-b870-48a280ecc464",
"SrcDatabases": [
{
"DatabaseName": "ksyusers",
"WholeDatabase": "True",
"TableNames": [
"alert_historys",
"alert_receivers"
]
}
],
"DstDatabases": [
{
"DatabaseName": "xx",
"WholeDatabase": "True",
"TableNames": [
"alert_historys",
"alert_receivers"
]
}
],
"DBBackupIdentifier": "d2ee6017-83aa-4473-a04b-ad21c82ad401"
}
{
"DBInstanceIdentifier": "4d97f65f-5603-4373-b870-48a280ecc464",
"SrcDatabases": [
{
"DatabaseName": "ksyusers",
"WholeDatabase": "True",
"TableNames": [
"alert_historys",
"alert_receivers"
]
}
],
"DstDatabases": [
{
"DatabaseName": "xx",
"WholeDatabase": "True",
"TableNames": [
"alert_historys",
"alert_receivers"
]
}
],
"DBBackupIdentifier": "d2ee6017-83aa-4473-a04b-ad21c82ad401"
}
纯净模式