You need to enable JavaScript to run this app.
导航
ModifyInstanceChargeType
最近更新时间:2025.06.09 17:22:41首次发布时间:2023.11.17 17:40:49
我的收藏
有用
有用
无用
无用

调用 ModifyInstanceChargeType 接口将 HBase 实例的计费类型由按量计费转换为包月包月。

请求类型

异步请求。

请求参数

参数类型是否必选示例值描述
InstanceIdStringhb-cn01762cf4d6****实例 ID。

ChargeType

String

PostPaid

计费类型,取值:

  • PostPaid:按量计费(后付费)。
  • PrePaid:包年包月(预付费)。

PurchaseMonths

Integer

1

购买时长。单位:月。取值范围:1(默认),23456789122436

说明

仅当 ChargeType 取值为 PrePaid 时,该参数生效。

AutoRenew

Boolean

false

是否开启自动续费,取值范围如下:

  • false:不开启自动续费(默认)。
  • true:开启自动续费。
  • 仅当 ChargeType 取值为 PrePaid 时,该参数生效。
  • 选择 true 开启自动续费后,系统默认续费时长为 1 个月。

说明

  • 仅当 ChargeType 取值为 PrePaid 时,该参数生效。
  • 选择 true 开启自动续费后,系统默认续费时长为 1 个月。

返回参数

参数类型示例值描述
OrderNoStringOrder730602621667020****订单 ID。

示例

请求示例

POST https://hbase.cn-beijing.volcengineapi.com?Action=ModifyInstanceChargeType&Version=2018-01-01 HTTP/1.1
Host: hbase.cn-beijing.volcengineapi.com
Content-Type: application/json; charset=utf-8
X-Date: 20201103T104027Z
Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/hbase/request,SignedHeaders=content-type;host;x-date,  Signature=****
{
    "InstanceId": "hb-cncqf0aa02a0****",
    "ChargeType": "Prepaid",
    "PurchaseMonths": 1,
    "AutoRenew": false
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20231127143346F031F701FDB9A48F1F44",
        "Action": "ModifyInstanceChargeType",
        "Version": "2018-01-01",
        "Service": "hbase",
        "Region": "cn-beijing"
    },
    "Result": {
        "OrderNo": "Order730602621667020****"
    }
}