查询 StarRocks 计费实例的续费价格
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /webapi/price/renew HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID |
c-b25e21e24388**** |
| Duration |
integer |
是 |
续费周期 |
2 |
| PricingCycle |
string |
是 |
续费单位 |
Month |
| BillingInstanceIds |
string |
是 |
需要续费的计费实例 ID 列表,多个计费实例 ID 用逗号隔开。 |
c-3d6dc31ba67b1839 |
| PromotionOptionNo |
string |
否 |
优惠券 ID。 |
youhuiquan_12378dfj6 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 请求状态码。 |
200 |
| RequestId |
string |
请求 ID。 |
32A44F0D-BFF6-5664-999A-218BBDE74XXX |
| Success |
boolean |
请求是否成功。 |
false |
| ErrCode |
string |
错误码。 |
InvalidParams |
| ErrMessage |
string |
错误信息。 |
null |
| Data |
array<object> |
返回数据。 |
|
|
array<object> |
|||
| OriginalAmount |
number |
原价(原始金额)=目录价*计费用量 |
9812 |
| DiscountAmount |
number |
优惠金额=原始金额-账单应付金额(包括优惠券抵扣金额) |
0 |
| TradeAmount |
number |
金额。 |
9812 |
| Currency |
string |
币种 |
CNY |
| BillingInstanceId |
string |
帐单对应的实例 ID。对于默认计算组(FE 计算组和默认的 BE 计算组),该字段的值为实例 ID,否则为计算组 ID。 |
c-96f3bc7f04b2**** |
| OptionalPromotions |
array<object> |
优惠券编号 |
|
|
object |
优惠券信息。 |
||
| PromotionOptionNo |
string |
优惠券 ID。 |
youhuiquan_12378dfj6 |
| PromotionName |
string |
优惠券名称。 |
youhuiquan_promotion_option_id_for_blank |
| PromotionDesc |
string |
优惠券描述。 |
youhuiquan_desc |
| StandPrice |
number |
官网折扣价 |
9812 |
| StandDiscountPrice |
number |
基于官网折扣的优惠价格 |
9812 |
| DepreciateInfo |
object |
降价后官网总价。 |
9812 |
| CheapRate |
number |
降价比例 |
0 |
| CheapStandAmount |
number |
降价后官网价总价 |
9812 |
| OriginalStandAmount |
number |
原始官网总价。 |
9812 |
| IsShow |
boolean |
是否展示降价幅度。 |
true |
| Rules |
array<object> |
返回数据结构。 |
|
|
object |
命中的规则列表,每一条为一个规则,只返回命中的规则信息和命中规则位置信息。 |
||
| Name |
string |
规则名称。 |
rule_8syh2j121ns |
| RuleDescId |
string |
规则 ID。 |
8su2i3hsdf128 |
| Amount |
number |
资源数量。 |
1 |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE74XXX\n",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "null",
"Data": [
{
"OriginalAmount": 9812,
"DiscountAmount": 0,
"TradeAmount": 9812,
"Currency": "CNY",
"BillingInstanceId": "c-96f3bc7f04b2****",
"OptionalPromotions": [
{
"PromotionOptionNo": "youhuiquan_12378dfj6",
"PromotionName": "youhuiquan_promotion_option_id_for_blank",
"PromotionDesc": "youhuiquan_desc"
}
],
"StandPrice": 9812,
"StandDiscountPrice": 9812,
"DepreciateInfo": {
"CheapRate": 0,
"CheapStandAmount": 9812,
"OriginalStandAmount": 9812,
"IsShow": true
},
"Rules": [
{
"Name": "rule_8syh2j121ns",
"RuleDescId": "8su2i3hsdf128",
"Amount": 1
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。