Skip to Content
云数据库 UDB MySQL将新建的db恢复到指定db某个指定时间点 - CreateUDBInstanceByRecovery

将新建的db恢复到指定db某个指定时间点 - CreateUDBInstanceByRecovery

简介

创建db,将新创建的db恢复到指定db某个指定时间点

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 CreateUDBInstanceByRecoveryYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
Regionstring地域。 参见 地域和可用区列表Yes
Zonestring可用区。参见 可用区列表No
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
Namestring实例名称,至少6位Yes
SrcDBIdstring源实例的IdYes
RecoveryTimeint恢复到某个时间点的时间戳(UTC时间格式,默认单位秒)Yes
ChargeTypestringYear, Month, Dynamic,Trial,默认: DynamicNo
Quantityint购买时长,默认值1No
UseSSDboolean指定是否是否使用SSD,默认使用主库的配置No
UDBCIdstring专区的IdNo
SubnetIdstring子网ID
No
VPCIdstringVPC的IDNo
EnableIpV6boolean是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为trueNo
Tablesstring指定需要恢复的表, 如果指定该字段则回档实例只有指定的表数据,格式为(库名.表名), 指定多个用逗号隔开,eg: [ udb.test, mysql_school.my_student]No
AdminPasswordstring管理员密码 (指定库表回档到新实例时有效)No
SpecificationTypeint实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineTypeNo
MachineTypestring规格类型ID,当SpecificationType为1时有效No
CouponIdstring使用的代金券idNo

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
DBIdstringdb实例idNo

示例

请求示例

https://api.an-link.com/?Action=CreateUDBInstanceByRecovery &Region=cn-bj2 &ChargeType=Month &Name=udb-xxxxxxx &SrcDBId=udb-xxxxx &RecoveryTime=1432806384 &UseSSD=true &SubnetId=SfBAwgaR &VPCId=axmBjGuC &EnableIpV6=true &Tables=QLdHhoGF &AdminPassword=CFJHxCUW &AdminPassword=PFisJMZz &AdminPassword=SPffecnI &SpecificationType=yRERufjK &MachineType=YWsemVcG

响应示例

{ "Action": "CreateUDBInstanceByRecoveryResponse", "DBId": "udb-xxxxx", "RetCode": 0 }