回档RDS实例到指定时间点

最近更新时间:2018-12-21 15:45:37

RestoreDBInstanceToPointInTime 恢复MySQL实例到指定时间点

恢复MySQL实例到指定时间点。

请求参数

Action

系统规定参数,取固定值:RestoreDBInstanceToPointInTime

  • 类型:String
  • 是否必须:是

Version

API版本号。

  • 类型:String
  • 备注:取固定值:2016-07-01
  • 是否必须:是

DBInstanceIdentifier

实例ID

  • 类型:String
  • 是否必须:是

RestorableTime

恢复到时间点

  • 类型:String
  • 是否必须:是
  • 样例:2018-05-30 11:00:00

AvailabilityZone

实例可用区名称

  • 类型:String
  • 是否必须:是
  • 样例:示例(AvailabilityZone.1=cn-beijing-6a&AvailabilityZone.2=cn-beijing-6b),表示实例的主副本在a区,备副本在b区。如果没有跨可用区的需求,建议将实例创建在云主机的可用区内已减少网络延时。

返回值

RequestId

请求ID

  • 类型:String

DBInstance

实例

  • 类型:实例结构体

请求示例

https://krds.api.ksyun.com/?Action=RestoreDBInstanceToPointInTime&Version=2016-07-01
&DBInstanceIdentifier=xxxx
&RestorableTime=xxxxxxxx

示例返回

{ 
"Data": {
"DBInstance": {
"DBInstanceClass": {
"Id": "RDSOpenAPI_bb0b4cbff280227c"
},
"DBInstanceIdentifier": "e241cd9f-c38c-467f-8b5e-2463c1e38b77",
"DBSource": {
"DBInstanceIdentifier": "61409224-d626-4359-a173-1c80538d4cab",
"DBInstanceName": "krds_20170309155954",
"PointInTime": "2017-03-10T00:00:00+0800"
},
"DBInstanceName": "krds_20170309155954_20170310000000",
"DBInstanceStatus": "CREATING",
"DBInstanceType": "TEMP",
"DBParameterGroupId": "f79e9e87-7602-4c97-b5f9-fdebe828e23f",
"GroupId": "b1ce7501-fa67-4004-b4f3-acd81920e486",
"DBSecurityGroupId": "2645",
"Vip": "0.0.0.0",
"Port": 3306,
"Engine": "mysql",
"InstanceCreateTime": "2017-03-10T16:19:54+0800",
"MasterUserName": "master",
"DatastoreVersionId": "bbecae24-e321-41ca-858a-f48937acbebc",
"VpcId": "c808395d-8c93-4974-8991-e9b4647bd003",
"SubnetId": "4a2843ed-c562-4958-bcbd-b2699abc70ee",
"PubliclyAccessible": true,
"ReadReplicaDBInstanceIdentifiers": [],
"DiskUsed": 0
}
},
"RequestId": "108305320291104221"
}

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

立即注册