文档

ModifyDBInstancePayType - 按量付费实例转包年包月

更新时间:
重要

本文中含有需要您注意的重要提示信息,忽略该信息可能对您的业务造成影响,请务必仔细阅读。

该接口用于将按量付费实例变更为包年包月实例。

接口说明

适用引擎

  • 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:ModifyDBInstancePayTypeWRITE
  • DBInstance
    acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
  • rds:ResourceTag

请求参数

名称类型必填描述示例值
DBInstanceIdstring

实例 ID。可调用 DescribeDBInstances 获取。

rm-bp****
UsedTimeinteger

指定购买时长。取值:

  • 当参数 PeriodYear 时,UsedTime 取值为 1~5。
  • 当参数 PeriodMonth 时,UsedTime 取值为 1~11。
2
PayTypestring

付费类型,固定配置为 Prepaid,表示包年包月。

Prepaid
Periodstring

指定预付费实例为包年或者包月类型。

  • Year:包年
  • Month:包月
Year

返回参数

名称类型描述示例值
object

返回参数详情。

OrderIdlong

订单 ID。

10078937023****

示例

正常返回示例

JSON格式

{
  "OrderId": 0
}

错误码

HTTP status code错误码错误信息描述
400IncompleteAccountInfoYour information is incomplete. Complete your information before the operation.操作失败,账号信息中带*为必填项,请补充填写。路径:账号中心-基本信息。
400IncompleteTaxInfo Your tax information is incomplete. Complete your information before the operation.-
400InvalidPaymentMethod.Incomplete No payment method is specified for your account. We recommend that you add a payment method.-
400InvalidPaymentMethod.Missing Your payment method is incomplete. We recommend that you add a payment method.-
400InsuffcientBalanceOrBankAccountAdd a payment method or add funds to the prepayment balance. Get started by creating an instance.当前账户暂无有效支付方式,请添加支付方式或给预付款充值。
400InvalidPaymentMethod.NoAccessNo payment method is specified for your account. Please contact your Customer Manager or open a ticket.-
400InvalidPaymentMethod.MissingNo payment method is specified for your account. We recommend that you add a payment method.您的账户暂无有效支付方式,请添加支付方式。
400InvalidPaymentMethod.InsufficientBalanceNo payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.-
400OrderTaskAlreadyExistsOrder task already exists.操作失败,当前订单任务已存在。
400ReadOnlyInstanceNotSupportSpecified ReadOnly Instance not support this operation.操作失败,只读实例不支持此操作。
400Order.ComboInstanceNotAllowOperateA package instance is not allowed to operate independently.套餐实例不允许单独操作。
400Price.PricingPlanResultNotFoundPricing plan price result not found.定价计划价格结果没有找到。
400Order.NoRealNameAuthenticationYou 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.您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。

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

变更历史

变更时间变更内容概要操作
2022-06-23OpenAPI 描述信息更新、OpenAPI 错误码发生变更看变更集
变更项变更内容
API 描述OpenAPI 描述信息更新
错误码OpenAPI 错误码发生变更
    删除错误码:400
  • 本页导读 (1)
文档反馈