全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

基于备份创建RDS实例

最近更新时间:2021-10-19 16:38:06

RestoreDBInstanceFromDBBackup 基于备份创建实例(临时/高可用)

基于备份创建临时实例,高可用实例;基于备份恢复到新实例。

请求方式

GET

请求参数

英文名称 中文名称 类型 是否必须 备注
Action 调用接口名称 String 取固定值:RestoreDBInstanceFromDBBackup
Version API版本号 String 取固定值:2016-07-01
DBInstanceName 实例名称 String
DBBackupIdentifier 备份id String
DBInstanceType 实例类型 String 临时实例:TRDS,高可用实例:HRDS
ProjectId 项目ID String
AvailabilityZone 实例可用区 String
Duration 时长 Integer 时长 默认值:1(单位:月) 注:billType=1(包年包月)则必填
DurationUnit 时长单位 String 时长单位 默认值:M
Port 端口号 Integer 支持修改端口号

返回值

英文名称 中文名称 类型 备注
RequestId 请求id String
Data.DBInstance 实例基本信息 Object

请求示例

http://krds.{{region}}.api.ksyun.com/?Action=RestoreDBInstanceFromDBBackup&Version=2016-07-01&DBInstanceName=Kingsoft_create&DBBackupIdentifier=a80dab24-b6ab-4f11-b37e-16acb14db50a&DBInstanceType=TRDS

示例返回

{
    "Data": {
        "DBInstance": {
            "DBInstanceClass": {
                "Id": "RDSOpenAPI_43e19b9291d6b519",
                "Iops": 1200,
                "Vcpus": 1,
                "Disk": 5,
                "Ram": 1,
                "Mem": 1,
                "MaxConn": 200
            },
            "DBInstanceIdentifier": "99b9ba8e-ae19-438f-a4a6-0a3dc1814956",
            "DBInstanceName": "Kingsoft_create",
            "DBInstanceStatus": "CREATING",
            "DBInstanceType": "TRDS",
            "DBParameterGroupId": "1d15e2b0-0c78-4b7a-8ea1-1549ccc4a75d",
            "PreferredBackupTime": "02:00-03:00",
            "GroupId": "46e33c9d-b4d4-4cf1-9385-c98e4a0bc370",
            "Vip": "0.0.0.0",
            "Port": 3306,
            "Engine": "mysql",
            "EngineVersion": "5.7",
            "InstanceCreateTime": "2021-08-04T17:17:08+0800",
            "DatastoreVersionId": "771a9409-56ae-4b55-87b4-e087a4a59437",
            "VpcId": "6ae1b03b-182c-41ea-bba2-d8157fea129d",
            "SubnetId": "782249ad-da15-4f81-99e4-708842bdd85d",
            "PubliclyAccessible": true,
            "BillType": "YEAR_MONTH",
            "OrderType": "REGULAR",
            "MultiAvailabilityZone": false,
            "AvailabilityZoneList": [],
            "DiskUsed": 0.0,
            "Audit": false,
            "ReadReplicaDBInstanceIdentifiers": [],
            "DBSource": {
                "DBInstanceIdentifier": "4d97f65f-5603-4373-b870-48a280ecc464",
                "DBInstanceName": "zhebin_test",
                "DBInstanceType": "HRDS",
                "DBBackupIdentifier": "a80dab24-b6ab-4f11-b37e-16acb14db50a",
                "DBBackupName": "autobackup-20210804162102"
            },
            "ProductId": "28d9e273-dbbf-4aa8-9d18-f5aeed59a7ef",
            "ProductWhat": 1,
            "ProjectId": 0,
            "ProjectName": "默认项目",
            "Region": "cn-beijing-6",
            "ServiceEndTime": "2021-08-07T23:59:59+0800",
            "ServiceStartTime": "2021-08-04T17:17:08+0800",
            "SubOrderId": "TRDS2S2108041717080702GEW8E",
            "SecurityGroups": [],
            "SupportIPV6": false,
            "BillTypeId": 1
        }
    },
    "RequestId": "f8e8d2eb-8e74-41c7-b191-508945bd9909"
}
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈