修改计算组节点磁盘类型询价
接口说明
请确保在使用该接口前,已充分了解 Serverless StarRocks 产品的收费方式和计费项。 调用该接口时,您需要注意:
-
只有标准版实例支持磁盘扩容,入门版实例不支持。
-
只有计算组规格类型为标准版 (standard) 的实例支持磁盘扩容。
-
实例必须处于运行中(Running)状态。
磁盘扩容后,计费变化情况如下:
-
按量付费:按照新的磁盘大小计费。
-
包年包月:在计费周期内,会根据新旧配置的价格差和剩余天数(从次日 0 点到有效期结束)来计算应补缴的费用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /webapi/priceInquiry/modifyDiskType HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
c-b25e21e24388**** |
| NodeGroupId |
string |
是 |
计算组 ID。 |
ng-d332aa8bca48**** |
| TargetPerformanceLevel |
string |
是 |
目标磁盘性能 |
pl2 |
| TargetDiskType |
string |
是 |
目标磁盘类型 |
essd |
| PromotionOptionNo |
string |
否 |
优惠券 ID。 |
youhuiquan_12378dfj6 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 请求状态码。 |
200 |
| RequestId |
string |
请求 ID。 |
32A44F0D-BFF6-5664-999A-218BBDE74XXX |
| Success |
boolean |
请求是否成功。 |
True |
| ErrCode |
string |
错误码。 |
InvalidParams |
| ErrMessage |
string |
错误信息。 |
Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]] |
| Data |
object |
返回数据。 |
|
| OriginalAmount |
number |
原价(原始金额)=目录价*计费用量 |
10923 |
| DiscountAmount |
number |
优惠金额=原始金额-账单应付金额(包括优惠券抵扣金额) |
0 |
| TradeAmount |
number |
金额。 |
10923 |
| ComponentPrices |
array<object> |
组件价格 |
|
|
object |
组件价格 |
||
| ComponentName |
string |
资源组 ID |
disk_type |
| OriginalAmount |
number |
原价 |
10923 |
| DiscountAmount |
number |
折扣 |
0 |
| TradeAmount |
number |
最终价,为原价减去折扣金额。 |
10923 |
| Currency |
string |
货币。 |
CNY |
| OptionalPromotions |
array<object> |
优惠券信息。 |
|
|
object |
优惠券信息。 |
||
| PromotionOptionNo |
string |
优惠券 ID。 |
youhuiquan_12378dfj6 |
| PromotionName |
string |
优惠券名称。 |
youhuiquan_promotion_option_id_for_blank |
| PromotionDesc |
string |
优惠券描述。 |
youhuiquan_desc |
| StandPrice |
number |
官网折扣价 |
10923 |
| StandDiscountPrice |
number |
基于官网折扣的优惠价格 |
10923 |
| DepreciateInfo |
object |
降价比例 |
|
| CheapRate |
number |
降价比例 |
0 |
| CheapStandAmount |
number |
降价后官网价总价 |
10923 |
| OriginalStandAmount |
number |
原始官网总价。 |
10923 |
| IsShow |
boolean |
是否展示降价幅度 |
true |
| Rules |
array<object> |
返回数据结构。 |
|
|
object |
返回数据结构。 |
||
| Name |
string |
规则名称。 |
rule-928shy23sa |
| RuleDescId |
string |
规则 ID。 |
7dsu230ks23 |
| Amount |
number |
购买数量。 |
10 |
| AccessDeniedDetail |
string |
AccessDeniedDetail |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE74XXX",
"Success": true,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]]",
"Data": {
"OriginalAmount": 10923,
"DiscountAmount": 0,
"TradeAmount": 10923,
"ComponentPrices": [
{
"ComponentName": "disk_type",
"OriginalAmount": 10923,
"DiscountAmount": 0,
"TradeAmount": 10923
}
],
"Currency": "CNY",
"OptionalPromotions": [
{
"PromotionOptionNo": "youhuiquan_12378dfj6",
"PromotionName": "youhuiquan_promotion_option_id_for_blank",
"PromotionDesc": "youhuiquan_desc"
}
],
"StandPrice": 10923,
"StandDiscountPrice": 10923,
"DepreciateInfo": {
"CheapRate": 0,
"CheapStandAmount": 10923,
"OriginalStandAmount": 10923,
"IsShow": true
},
"Rules": [
{
"Name": "rule-928shy23sa",
"RuleDescId": "7dsu230ks23",
"Amount": 10
}
]
},
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。