全部产品
Search
文档中心

云数据库 RDS:DescribeRenewalPrice - 查询RDS实例续费的费用

更新时间:Apr 17, 2024

该接口用于查询包年包月RDS实例续费的费用。

接口说明

适用引擎

  • RDS MySQL
  • RDS PostgreSQL
  • RDS SQL Server
  • RDS MariaDB

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

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

用于保证请求的幂等性。

ETnLKlblzczshOTUbOCz****
DBInstanceIdstring

实例 ID。可调用 DescribeDBInstances 获取。

rm-uf6wjk5****
RegionIdstring

地域 ID。可调用 DescribeRegions 获取。

cn-hangzhou
PayTypestring

实例的付费类型。取值:

  • Postpaid:后付费(按量付费)
  • Prepaid:预付费(包年包月)
Postpaid
DBInstanceClassstring

实例规格。规格详情请参见主实例规格表。默认为实例当前规格。

mysql.n2.medium.2c
UsedTimeinteger

实例购买时长,取值:

  • 当参数 TimeType=Year 时,取值为 1~3
  • 当参数 TimeType=Month 时,取值为 1~9
1
TimeTypestring

实例包年包月的类型,取值:

  • Year:包年
  • Month:包月
Year
Quantityinteger

实例个数,默认值:1

1
OrderTypestring

订单类型。仅唯一取值:BUY

BUY
BusinessInfostring

业务扩展参数。

121436975448952
ResourceGroupIdstring

资源组 ID。可调用 DescribeDBInstanceAttribute 接口获取。

rg-acfmx****

返回参数

名称类型描述示例值
object

返回参数详情。

RequestIdstring

请求 ID。

DC9F4EF6-D038-4405-B497-1F48E722C9F2
PriceInfoobject

价格信息列表。

OriginalPricefloat

原价。

138
DiscountPricefloat

折扣。

27
Currencystring

货币单位。

CNY
TradePricefloat

最终价,为原价减去折扣。

111
Couponsobject []

优惠信息列表。

IsSelectedstring

是否已选择优惠券。

true
CouponNostring

优惠券编号。

123456
Namestring

优惠券名称。

test
Descriptionstring

优惠券描述。

test
RuleIdsarray

活动 ID 列表。

string

活动 ID。

1001199213
ActivityInfoobject

价格信息。

CheckErrMsgstring

错误描述。

Error description
ErrorCodestring

错误代码。

123456
Successstring

是否成功。

Success
Rulesobject []

活动规格列表。

Namestring

活动名称。

test
Descriptionstring

活动描述。

Activity Description
RuleIdlong

活动 ID。

1001199213

示例

正常返回示例

JSON格式

{
  "RequestId": "DC9F4EF6-D038-4405-B497-1F48E722C9F2",
  "PriceInfo": {
    "OriginalPrice": 138,
    "DiscountPrice": 27,
    "Currency": "CNY",
    "TradePrice": 111,
    "Coupons": {
      "Coupon": [
        {
          "IsSelected": "true",
          "CouponNo": "123456",
          "Name": "test",
          "Description": "test"
        }
      ]
    },
    "RuleIds": {
      "RuleId": [
        "1001199213"
      ]
    },
    "ActivityInfo": {
      "CheckErrMsg": "Error description",
      "ErrorCode": " 123456",
      "Success": "Success"
    }
  },
  "Rules": {
    "Rule": [
      {
        "Name": "test",
        "Description": "Activity Description",
        "RuleId": 1001199213
      }
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
400SYSTEM.SaleValidateFailedThe request not refer to the correct order period. please check your Period or UsedTime param.该请求未提及正确的订购期限。 请检查您的Period或UsedTime参数。
400OrdQueryAccountErrorError calling account service.调用账号服务错误。
400Price.WanHuaTong.sysInquiry error.询价错误。
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.您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。
400InsufficientAvailableQuotaYour account quota limit is less than 0, please recharge before trying to purchase.您的账户可用额度小于0,请先充值后再尝试购买。
400CommodityServiceCalling.ExceptionFailed to call commodity service.调用商品服务返回失败。
400RegionDissolvedEOMDear 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.客户您好,阿里云计划对当前地域进行优化调整,该区域云服务将停止运营,为确保您的业务连续性及数据迁移工作的平稳过渡,您目前无法操作新购类型的订单,感谢理解与支持。
400Commodity.InvalidComponentThe module you purchased is not legal, please buy it again.您购买的模块不合法,请重新购买。
400RegionEndTimeDissolvedIndiaCloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024.客户您好,印度地域裁撤,购买的服务效期不能超过2024.07.15。
400RegionEndTimeDissolvedAustraliaCloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.客户您好,澳洲地域裁撤,购买的服务效期不能超过2024.09.30
400Price.CommoditySysCommodity system call exception.商品系统调用异常。
400Pay.InsufficientBalanceInsufficient available balance.可用金不足。
400Order.PeriodInvalidThere is a problem with the period you selected, please choose again.您选购的周期有问题,请重新选购。
400pay.noCreditCardAccount not bound to credit card.账户未绑定信用卡。
400Order.InstHasUnpaidOrderThere is an unpaid order for the service you have purchased. Please pay or void it before placing the order.您选购的服务存在未支付订单,请支付或作废后再下单。
400noAvailablePaymentMethodNo payment method is specified for your account. We recommend that you add a payment method.没有为您的帐户指定付款方式。我们建议您添加一种付款方式。
400BasicInfoUncompletedYour information is incomplete. Complete your information before the operation.您的基本信息未完善,请在操作前先完善您的基本信息。
400Risk.RiskControlRejectionYour account is abnormal, please contact customer service for details.您的账户出现异常,详情请联系客服。
400BasicInfoUncompletedYour information is incomplete, Complete your information before the operation.您的信息不完整,请在操作前填写您的信息。
400System.SaleValidateFailedSales expression validation system error.销售表达式校验系统错误。
403OrderStatus.UnPaidThe specified db instance has unpaid order.实例当前存在未支付订单,请支付后重试。
404canNotFindSubscriptionSubscription information not found.找不到订购信息。

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

变更历史

变更时间变更内容概要操作
2023-09-08OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    新增错误码:400
    新增错误码:404
2023-07-21OpenAPI 入参发生变更看变更集
变更项变更内容
入参OpenAPI 入参发生变更
    新增入参:ResourceGroupId