ModifyChargeType - 修改实例的付费类型

更新时间:
复制 MD 格式

修改实例的付费类型

接口说明

请确保在使用该接口前,已充分了解 Serverless StarRocks 产品的收费方式和计费项

调用该接口时,您需要注意:

  • 只有标准版实例支持修改计算组 CU 数量,入门版实例不支持。

  • 只有计算组规格类型为标准版 (standard) 的实例支持增加磁盘数量。

  • 实例必须处于运行中(Running)状态。

修改 CU 数量后,计费变化情况如下:

  • 按量付费:按照新的 CU 数量计费。

  • 包年包月:在计费周期内,会根据新旧配置的价格差和剩余天数(从次日 0 点到有效期结束)来计算应补缴的费用。

调试

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

调试

授权信息

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

请求语法

POST /webapi/cluster/modifyChargeType HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

集群 id

c-b25e21e24388****

AutoRenew

boolean

是否开启自动续费,仅在 payType 为 PrePaid 时有意义。默认不开启。

True

Duration

string

购买时长。仅在 payType 为 PrePaid 时有意义。

2

PricingCycle

string

购买时长单位:

  • 月(Month)

  • 年(Year)

仅在 payType 为 PrePaid 时有意义。

Month

BillingInstanceIds

string

需要续费的计费实例 ID 列表,多个计费实例 ID 用逗号隔开。

c-3d6dc31ba67b1839

PromotionOptionNo

string

优惠券 ID。

2345

返回参数

名称

类型

描述

示例值

object

HttpStatusCode

integer

HTTP 请求状态码。

200

RequestId

string

请求 ID。

32A44F0D-BFF6-5664-999A-218BBDE7****

Success

boolean

请求是否成功。

true

ErrCode

string

错误码。

InvalidParams

ErrMessage

string

错误信息。

Invalid params: [instance not exists].

Data

integer

返回数据。

24151320976****

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-218BBDE7****",
  "Success": true,
  "ErrCode": "InvalidParams",
  "ErrMessage": "Invalid params: [instance not exists].",
  "Data": 0,
  "AccessDeniedDetail": "{     \"PolicyType\": \"AccountLevelIdentityBasedPolicy\",     \"AuthPrincipalOwnerId\": \"xxx\",     \"EncodedDiagnosticMessage\": \"xxx\",     \"AuthPrincipalType\": \"xxx\",     \"AuthPrincipalDisplayName\": \"xxx\",     \"NoPermissionType\": \"ImplicitDeny\",     \"AuthAction\": \"sr:xxx\"   }"
}

错误码

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

变更历史

更多信息,参考变更详情