全部产品
Search
文档中心

云数据库 RDS:CreateDBInstanceForRebuild - 回收站重建实例

更新时间:Aug 28, 2026

该接口用于重建已进入回收站的实例。

接口说明

适用引擎

  • RDS MySQL

  • RDS PostgreSQL

  • RDS SQL Server

  • RDS MariaDB

相关功能文档

警告 该 API 操作涉及费用,请仔细阅读相关功能文档后再进行操作。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

rds:CreateDBInstanceForRebuild

create

*DBInstance

acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}

请求参数

名称

类型

必填

描述

示例值

RegionId

string

地域 ID。可调用 DescribeRegions 获取。

cn-hangzhou

DBInstanceId

string

实例 ID。可调用 DescribeDBInstances 获取。

rm-uf6wjk5****

PayType

string

目标实例的付费类型,取值:

  • Postpaid:后付费(按量付费)

  • Prepaid:预付费(包年包月)

Postpaid

SecurityIPList

string

该实例的 IP 白名单。多条记录请以半角逗号(,)隔开,不可重复,最多 1000 条记录。支持如下两种格式:

  • IP 地址形式,例如:10.10.XX.XX。

  • CIDR 形式,例如:10.10.XX.XX/24(无类域间路由,24 表示了地址中前缀的长度,范围为 1~32)。

如不填则默认为原实例 default 分组白名单信息。

127.0.0.1

DBInstanceDescription

string

目标实例名称,长度为 2~256 个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。

说明

不能以 http:// 和 https:// 开头。

testdb

ZoneId

string

主节点可用区 ID。可以通过接口 DescribeRegions 查看可用区 ID。

说明

指定了 VPC 和交换机时,为匹配交换机对应的可用区,该参数必填。

cn-hangzhou-e

ZoneIdSlave1

string

备可用区 1。

说明

非基础系列实例需要传入该参数。

cn-hangzhou-c

ZoneIdSlave2

string

备可用区 2。

说明

仅三节点企业系列实例可传入该参数。

cn-hangzhou-d

VPCId

string

目标实例的 VPC ID。当 InstanceNetworkType=VPC 时,本参数必须配置。

说明

如果传入此参数,您还需要传入参数 ZoneId

vpc-uf6f7l4fg90****

VSwitchId

string

虚拟交换机 ID。虚拟交换机所在的可用区必须和 ZoneId 中传入的可用区 ID 相对应。

说明
  • 网络类型 InstanceNetworkType 需为 VPC

  • 若您填写了 ZoneSlaveId1(备可用区 ID),此处需填写两个交换机 ID,并使用半角逗号(,)隔开。

vsw-uf6adz52c2p****

Period

string

指定预付费实例为包年或者包月类型,取值:

  • Year:包年。

  • Month:包月。

说明

若付费类型为 Prepaid 则该参数必须传入。

Month

UsedTime

string

指定购买时长。取值:

  • 当参数 PeriodYear 时,UsedTime 取值为 1~5

  • 当参数 PeriodMonth 时,UsedTime 取值为 1~11

说明

PayTypePrepaid,需要传入该参数。

1

ClientToken

string

该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。

该参数值由 ASCII 字符组成,最长不超过 64 个字符,不能包含非 ASCII 字符。

ETnLKlblzczshOTUbOC****

DBInstanceNetType

string

实例的网络连接类型,取值:

  • Internet:公网连接。

  • Intranet:内网连接。

Internet

InstanceNetworkType

string

目标实例的网络类型,取值:

  • VPC:VPC 网络

  • Classic:经典网络

默认创建经典网络类型的实例。

说明

当实例为云盘实例时,该参数必填,且值为 VPC。当本参数值为 VPC 时,还需要传入参数 VpcIdVSwitchId

VPC

ResourceGroupId

string

资源组 ID,可以为空。

rg-acfmy****

返回参数

名称

类型

描述

示例值

object

返回参数详情。

DBInstanceId

string

实例 ID。

rm-uf6wjk5****

Message

string

返回信息。

success

OrderId

string

订单 ID。

20793850608****

RequestId

string

请求 ID。

1AD222E9-E606-4A42-BF6D-8A4442913CEF

TaskId

string

任务 ID。

417450000

示例

正常返回示例

JSON格式

{
  "DBInstanceId": "rm-uf6wjk5****",
  "Message": "success",
  "OrderId": "20793850608****",
  "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "TaskId": "417450000"
}

错误码

HTTP status code

错误码

错误信息

描述

400 RR309 We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification. 在默认付款方式中检测到安全风险。请在下单前验证您的付款方式。验证链接将通过电子邮件和内部消息发送给您。
400 GeneralIns.Creating The general instance is creating. 目前有实例还在生产中,请稍等
400 InvalidZone.NotSupportedForStorageType The specified zone is closed or invalid for Specified DBInstanceStorageType. 指定的区域已关闭或对于指定的DBInstanceStorageType无效。
400 GeneralIns.Maintaining The general instance is maintaining. 有实例在迁移或维护中,请稍等
400 GeneralIns.Switching The general instance is Switching. HA切换中,请稍等
400 InvalidEngine.VauleNotSupported The specified parameter "Engine" is not valid. 数据库类型不正确。请选用以下几种数据库类型:MySQL/SQLServer/PostgreSQL/PPAS。
400 InvalidEngineVersion.ValueNotSupported The specified parameter "EngineVersion" is not valid. 数据库版本验证失败。 数据库版本号取值范围: MySQL:5.5/5.6/5.7; SQLServer:2008r2/2012; PostgreSQL:9.4; PPAS:9.3。
400 InvalidDBinstanceClass.ValueNotSupported The specified parameter DBinstanceClass is invalid. 指定的参数“实例规格”无效
400 InvalidDBInstanceStorage.ValueNotSupported The specified parameter "DBInstanceStorage" is not valid. 实例存储设置无效。请重新设置存储。各引擎支持的存储范围如下:MySQL支持5至1000GB;SQLServer支持10至1000GB;PostgreSQL和PPAS支持5至2000GB。
400 InvalidDBInstanceDescription.Malformed The specified parameter "DBInstanceDescription" is not valid. 实例备注验证失败。格式要求:实例备注不能超过256个字节,不能以http:// , https://开头,必须以中文、英文字母开头。可以包含中文、英文字符、”_”,” -”,数字字符长度2~256。
400 InvalidSecurityIPList.Duplicate Specified security IP list is not valid: Duplicate IP address in the list 指定的安全IP列表无效。其中包含重复值。
400 InvalidSecurityIPListLength.Malformed The quota of security ip exceeds. 已超过安全IP数量上限。
400 DefaultVpc.NotSupport The default vpc create is not support. 操作失败,您的阿里云账号不支持默认VPC网络,请先创建VPC网络和交换机。
400 Forbidden.RegionNotFound The provided RegionId does not exist in our record. 操作失败,当前提供的地域标识在记录中不存在。
400 InvalidVpcIdOrVswitchId.NotSupported The specified vpcId or vSwitchId is not supported. 指定的vpcId或者vSwitchId不支持,请检查实例信息
400 InvalidVpcId.NotSupported The specified vpcId or vSwitchId is not supported. 操作失败,VPC或交换机不正确。请检查VPC或交换机是否和RDS在同一可用区。
400 InvalidZoneId.NotSupported The Specified vpc Zone not supported. 当前可用区不支持创建VPC网络类型实例,请更换可用区。
400 VswitchIpExhausted No available ip in the specified vswitch. 指定的vswitch中没有可用的IP。
400 InvalidGeneralGroupName.Malformed The specified parameter GeneralGroupName is not valid. 参数 GeneralGroupName 不合法.
400 AccountBasicInfoUncompleted Your information is incomplete. Complete your information before the operation. 您的信息不完整。在操作前完善您的信息。
400 IncorrecttVpcId The specified parameter VPCId is not valid. VPCId无效。请您选择正确的VPC网络。
400 OperationDenied.DBInstanceStatus Operation is denied by the current database instance status. 操作失败,当前数据库实例状态不支持。
400 InvalidDBInstanceClass.Offline The specified instance type is no longer provided. Please specify another instance type. 当前所选的实例规格已下线,请更换其他实例规格。
400 ZoneId.NotMatchWithCategory The number of available zones does not match the database engine or instance edition. Please reset it. 可用区数量与数据库类型或实例系列不匹配,请重新设置。
400 Order.ComboInstanceNotAllowOperate A package instance is not allowed to operate independently. 套餐实例不允许单独操作。
400 Price.PricingPlanResultNotFound Pricing plan price result not found. 定价计划价格结果没有找到。
400 Order.NoRealNameAuthentication You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication. 您还未通过实名认证,不符合购买条件,请登录费用与成本进行实名认证。
400 InsufficientAvailableQuota Your account quota limit is less than 0, please recharge before trying to purchase. 您的账户可用额度小于0,请先充值后再尝试购买。
400 CommodityServiceCalling.Exception Failed to call commodity service. 调用商品服务返回失败。
400 RegionDissolvedEOM Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support. 客户您好,阿里云计划对当前地域进行优化调整,该区域云服务将停止运营,为确保您的业务连续性及数据迁移工作的平稳过渡,您目前无法操作新购类型的订单,感谢理解与支持。
400 Commodity.InvalidComponent The module you purchased is not legal, please buy it again. 您购买的模块不合法,请重新购买。
400 RegionEndTimeDissolvedAustralia Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024. 客户您好,该地域已裁撤。
400 Price.CommoditySys Commodity system call exception. 商品系统调用异常。
400 Pay.InsufficientBalance Insufficient available balance. 可用金不足。
400 Order.PeriodInvalid There is a problem with the period you selected, please choose again. 您选购的周期有问题,请重新选购。
400 pay.noCreditCard Account not bound to credit card. 账户未绑定信用卡。
400 Order.InstHasUnpaidOrder There is an unpaid order for the service you have purchased. Please pay or void it before placing the order. 您选购的服务存在未支付订单,请支付或作废后再下单。
400 noAvailablePaymentMethod No payment method is specified for your account. We recommend that you add a payment method. 没有为您的账户指定付款方式。我们建议您添加一种付款方式。
400 BasicInfoUncompleted Your information is incomplete. Complete your information before the operation. 您的基本信息未完善,请在操作前先完善您的基本信息。
400 Risk.RiskControlRejection Your account is abnormal, please contact customer service for details. 您的账户出现异常,详情请联系客服。
400 Api.NotSupport Specified api is not supported. 当前接口不支持。
400 ContainForbiddenLabelError There is a label that prohibits placing orders. Please contact your distributor for assistance. 存在禁止下单的标签,请联系您的分销商处理
400 InvalidDBInstanceId.NotFound The DBInstanceId provided does not exist in records. 提供的DBInstanceId不存在。
400 InvalidInstanceLevel.DiskType Specified instance level not support request disk type 当前实例规格不支持该存储类型。
400 InvalidParam Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica. 指定的 wal_level 参数无效。实例中仍然存在复制槽,因此无法将其设置为replica。
400 KmsApiError User secret key invalid. 用户密钥失效。
400 System.SaleValidateFailed Sales expression validation system error. 销售表达式校验系统错误。
400 Abs.InvalidAccount.NotFound account is not found. 账户不存在。
400 SqlExecuteFailedOrTimeout sql command execution failed or timed out:%s. sql命令执行失败或执行超时
400 ColdData.EngineVersionNotSupport The current instance engine version not support coldDataEnabled. 当前实例引擎版本不支持归档冷数据。
400 ColdData.MinorVersionNotSupport The current instance minor version not support coldDataEnabled. 当前内核版本不支持归档冷数据。
400 IncorrectTargetClasscode The current instance type does not support this operation. 当前规格不支持此操作。
400 InvalidConnectionString.Duplicate Specified connection string already exists in the RDS. 链接地址名重复,请重新设置连接字符串。
400 RequiredParam.NotFound Required input param is not found. 没有传入必要的参数。
400 Parameters.Invalid Parameter error, please check the parameters. 参数错误,请检查参数。
400 BackupPolicyNotSupport Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy. 数据归档不支持跨地域备份和秒级快照,请检查备份策略。
400 InvalideStatus.Format The instance status does not support this operation. 实例状态不支持此操作。
400 InvalidReleasedKeepPolicy.Format Specified Released Keep Policy is not valid. 实例释放后的归档备份保留策略无效。
400 InvalidDBInstanceEngineType.Format the DB instance engine type does not support this operation. DB实例引擎类型不支持此操作。
400 Pay.NoCreditCard No credit cards. 无信用卡。
400 VpcNetworkTypeNotSupport The vpc network type instance does not support this operation. vpc网络类型实例不支持此操作。
400 MirrorInsExists Specified DB instance mirror ins already existed. 当前数据库实例镜像已存在。
400 UnsupportedClassCode The specified DB instance class stops selling. 实例规格停止售卖。
400 InvalidBackupSet The specified database does not exist in the backup set. 备份集中没有指定的数据库。
400 OrdTCommodityQueryError Failed to query for product. 查询产品失败。
400 ProductInstanceReleased The instance has been released. Please check before placing the order. 实例已释放,请核实后下单。
400 RegionEndTimeDissolvedIndia The region is no longer supported. 指定的地域无效。
400 InvalidParam.InstanceNetworkType Creation of classic network instances is not supported. 经典网络下线,不支持创建经典网络实例!
500 ExternalFailure The request processing has failed due to external service failure. 请求服务失败,请稍后重试。
500 RequestMetaDataFailed The service request failed. Please try again later or contact service personnel. 请求服务失败,请稍后再试或联系服务人员。
500 InvokeProxyFailure The request processing has failed due to service failure of rds api. 由于rds api服务失败,请求处理失败。
403 ClassicNetworkType.NotSupport The Classic instance network create is not support. 操作失败,当前实例不支持创建经典网络类型,请创建其他网络类型的实例。
403 InvalidEngineVersionInRegion.NotAvailable The EngineVersion in the Region is not available. 操作失败,当前地域不支持该引擎版本。
403 OperationDenied The specified request is out of resources. 指定请求资源不足。
403 QuotaExceeded.CreateInstance The quota of create instance exceeds. 已超过实例数量上限。请释放不需要的实例。
403 Forbidden.Authentication The operation is forbidden by Aliyun Realname Authentication System. 操作失败,该操作被阿里云实名认证系统禁止。
403 INST_HAS_UNPAID_ORDER The instanceId has unpaid order. 实例存在未支付订单,请先完成结算或作废订单后重试。
403 COMMODITY.FAILED The commodity is error. 服务器异常,请提交运维同学处理。
403 MoneyLessThan100 The Account Monet less Than 100. 当前阿里云账号余额不足100,请充值。
403 OperationDenied.ClassicNetworkType The operation is not permitted due to status of instance. 操作失败,经典网络类型不支持此操作。
403 OrderStatus.UnPaid The specified db instance has unpaid order. 实例当前存在未支付订单,请支付后重试。
403 InvalidReduceDiskSize The storage capacity after the scale-down must be larger than the used amount. 缩容目标容量不能小于当前存储空间使用量
403 CloudSSDNotSupport Cloud ssd does not support this operation, please upgrade to essd. SSD盘不支持此操作,请升级至ESSD。
403 InvalidUserOperatorPermission The user permission does not support this operation. 用户权限不支持此操作。
403 InvalidVswitchId Specified conn vswitch id is not valid. 指定的VSwitchId格式不正确或为空
403 IncorrectMinorVersion Current engine minor version does not support operations. 当前引擎小版本不支持此操作。
403 OperationDenied.ZoneResource There is no available zone for inventory. 没有可用的库存区域。
403 NotInFlowController Sorry,no permission. 非集团上云用户不可用,无权限。
403 InvalidKmsKey Kms key is disabled. Kms key已禁用。
403 InvalidInstanceLevel.Malformed Current DB instance level does not support this operation. 当前数据库实例级别不支持此操作。
404 InvalidDBInstanceId.NotFound Invalid DBInstanceId NotFound. 实例不存在。请确认该实例是否在当前账号下。
404 CreateOrder.Failed Create Order Failed. 创建订单失败。
404 InvalidRegionId.NotFound The provided RegionId does not exist in our records. 该地域不存在,请重新设置。
404 QueryPrice.Failed QueryPrice Failed. 询价失败,请联系客服同学。
404 InvalidClusterKms The current instance does not authorized to access the Key Management Service. 当前实例未授权访问密钥管理服务。
404 Request.NotFound The requested resource is not available. 请求的资源不可用。
404 HostInfo.NotFound The specified host info is not found. 指定的主机信息不存在。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情