You need to enable JavaScript to run this app.
导航

ModifyInstanceChargeType

最近更新时间2023.11.27 14:39:04

首次发布时间2023.11.17 17:40:49

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

请求类型

异步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdsStringhbase-cn02he8bhzsji****实例 ID。
ChargeTypeStringPrePaid修改后的实例计费类型,取值固定为 PrePaid:包年包月(预付费)。

PurchaseMonths

Integer

1

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

说明

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

AutoRenew

Bool

false

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

  • false:不开启自动续费(默认)。
  • true:开启自动续费。

说明

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

返回参数

名称类型示例值描述
OrderNOStringOrder730602621667020****订单 ID。

请求示例

POST https://hbase.volcengineapi.com/?Action=ModifyInstanceChargeType&Version=2018-01-01 HTTP/1.1
Host: hbase.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=****
{
    "InstanceIds":"hbase-cn02he8bhzsji****",
    "ChargeType":"Prepaid",
    "PurchaseMonths":1,
    "AutoRenew":false
}

返回示例

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