You need to enable JavaScript to run this app.
文档中心
消息队列 RabbitMQ版

消息队列 RabbitMQ版

复制全文
下载 pdf
实例生命周期管理
ModifyInstanceChargeType - 变更计费类型
复制全文
下载 pdf
ModifyInstanceChargeType - 变更计费类型
调用 ModifyInstanceChargeType 接口变更实例的计费类型。​
使用说明​
此接口用于变更实例的计费类型,目前仅支持按量计费实例转为包年包月实例。此操作对实例的运行不会有任何影响。​
说明​
  • RabbitMQ 实例的状态为运行中。​
  • 按量计费转包年包月时,您需要结算此按量计费实例的账单,并预付包年包月的金额。请确保账户中余额充足。​
  • 目前仅支持按量计费转包年包月,操作前请确认实例的计费方式为按量计费。​
注意事项​
请求频率:该接口请求频率限制为 100 次/秒;单用户请求频率限制为 20 次/秒。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifyInstanceChargeType​
要执行的操作,取值:ModifyInstanceChargeType。​
​
Version string 必选 示例值:2022-01-01​
API的版本,取值:2022-01-01。​
​
InstanceId string 必选 示例值:rbtmq-5b293870****​
实例 ID。​
​
ChargeInfo object 必选 示例值:/​
变更后的计费类型。​
目前仅支持按量付费实例转为包年包月实例。​
ChargeType string 必选 示例值:PostPaid​
实例的计费类型。支持的类型包括:​
  • PostPaid :按量付费​
  • PrePaid:包年包月​
说明​
指定为PrePaid时,应同时指定AutoRenew、PeriodUnit和Period参数。​
​
AutoRenew boolean 可选 示例值:false​
包年包月实例到期后是否自动续费。​
  • true:自动续费。​
  • false:不自动续费。到期后需要手动续费,否则实例将被关停。​
说明​
仅包年包月类型的实例需要指定,即ChargeType指定为PrePaid时必选。​
​
PeriodUnit string 可选 示例值:Month​
包年包月类型实例的生命周期单位,即指定以月或以年为单位购买。支持设置为:​
  • Month:包月​
  • Year:包年​
说明​
仅包年包月类型的实例需要指定,即ChargeType指定为PrePaid时必选。​
​
Period integer 可选 示例值:1​
包年包月类型实例的购买时长。​
  • PeriodUnit指定为Month时,取值范围为 1~9。​
  • PeriodUnit指定为Year时,取值范围为 1~3。​
说明​
仅包年包月类型的实例需要指定,即ChargeType指定为PrePaid时必选。​
​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
OrderId string 示例值:order-712089661643355****​
订单 ID。​
​
​
​
请求示例​
​
POST /?Action=ModifyInstanceChargeType&Version=2022-01-01 HTTP/1.1​
Host: rabbitmq.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260106T082527Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260106/cn-beijing/RabbitMQ/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"InstanceId": "rbtmq-5b293870****",​
"ChargeInfo": {​
"ChargeType": "PostPaid"​
}​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2026010616253303119001701696****",​
"Action": "ModifyInstanceChargeType",​
"Version": "2022-01-01",​
"Service": "RabbitMQ",​
"Region": "cn-beijing"​
},​
"Result": {​
"OrderId": "order-712089661643355****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
403​
OperationDenied.AccountNotAuthorized​
You are not authorized to perform this operation.​
您不具备相关权限 ,请授权或切换账号后重试。​
403​
OperationDenied.InvalidInstanceStatus​
The operation is not valid for the current status of the instance.​
当前实例状态不允许执行该操作。​
403​
OperationDenied.TaskIsRunning​
An operation is currently in progress. Try again later.​
后台任务正在运行中,请稍后再试。​
404​
InvalidInstanceId.NotFound​
The specified Instance ID does not exist.​
实例不存在。​
500​
InternalError​
The request failed due to some unknown error, exception or failure.​
内部错误,请稍后重试。​
​
​
最近更新时间:2026.02.05 18:09:46
这个页面对您有帮助吗?
有用
有用
无用
无用