文档

GetResourceRenewPrice - 查询资源续费价格

更新时间:

查询无影云应用资源的续费价格。

调试

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

授权信息

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

请求参数

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

产品类型。

枚举值:
  • CloudApp无影云应用
CloudApp
Periodlong

资源购买时长的数量部分,与PeriodUnit一起表示完整的购买时长。

1
PeriodUnitstring

资源购买时长的单位部分,与Period一起表示完整的购买时长。可使用的PeriodPeriodUnit的搭配如下:

  • 1 Week(1 周)
  • 1 Month(1 个月)
  • 2 Month(2 个月)
  • 3 Month(3 个月)
  • 6 Month(6 个月)
  • 1 Year(1 年)
  • 2 Year(2 年)
  • 3 Year(3 年)
说明 该参数区分大小写。例如,Week是有效的,week是无效的。另外,如果请求参数不符合上述搭配,例如2 Week,虽然调用本接口会成功,但最终在下单阶段会出错。
Week
AppInstanceGroupIdstring

交付组 ID。可通过接口 ListAppInstanceGroup 获取。

aig-9ciijz60n4xsv****

返回参数

名称类型描述示例值
object

返回信息集合。

RequestIdstring

请求 ID。

1CBAFFAB-B697-4049-A9B1-67E1FC5F****
Dataobject

价格对象。

Priceobject

价格详情。

OriginalPricestring

原价。

11
DiscountPricestring

折减的价格,原价减去折减的价格即为实际价格。

1
TradePricestring

实际价格,原价减去折减的价格即为实际价格。

10
Currencystring

币种。

CNY
Promotionsarray<object>

优惠券描述。

object

优惠券元数据。

OptionCodestring

优惠券代号。

coupon****
PromotionIdstring

优惠券 ID。

139965*****
PromotionNamestring

优惠券名称。

**活动
PromotionDescstring

优惠券描述。

**活动
Selectedboolean

是否选用优惠券。

枚举值:
  • true选用
  • false不选用
true
Rulesarray<object>

价格计算规则。

object

价格计算规则。

RuleIdlong

价格计算规则 ID。

20002****
Descriptionstring

价格计算规则描述。

**活动

示例

正常返回示例

JSON格式

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "Data": {
    "Price": {
      "OriginalPrice": "11\n",
      "DiscountPrice": "1",
      "TradePrice": "10",
      "Currency": "CNY",
      "Promotions": [
        {
          "OptionCode": "coupon****",
          "PromotionId": "139965*****",
          "PromotionName": "**活动",
          "PromotionDesc": "**活动",
          "Selected": true
        }
      ]
    },
    "Rules": [
      {
        "RuleId": 0,
        "Description": "**活动"
      }
    ]
  }
}

错误码

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