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

消息队列 Kafka版

复制全文
下载 pdf
OpenAPIV2
ModifyInstanceReadWriteRatio - 修改实例流量读写比
复制全文
下载 pdf
ModifyInstanceReadWriteRatio - 修改实例流量读写比
调用 ModifyInstanceReadWriteRatio 接口,修改实例流量读写比。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifyInstanceReadWriteRatio​
要执行的操作,取值:ModifyInstanceReadWriteRatio。​
​
Version string 必选 示例值:2022-05-01​
API 的版本,取值:2022-05-01。​
​
InstanceId string 必选 示例值:kafka-fjdkak*****​
Kafka 实例 ID。​
​
ReadWriteRatio string 必选 示例值:3​
读写比。​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
POST /?Action=DescribeInstancePriceInfo&Version=2022-05-01 HTTP/1.1​
Host: kafka.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20251011T084642Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251011/cn-beijing/Kafka/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"ZoneId": "cn-beijing-a",​
"ComputeSpec": "kafka.20xrate.hw",​
"StorageSpace": 100,​
"PartitionNumber": 100,​
"ChargeType": "PostPaid",​
"PeriodUnit": "Month",​
"Period": 1,​
"InstanceId": "kafka-xxx",​
"StorageType": "KnpdGKUrT6",​
"Downgrade": true​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202510111646541311152***A08",​
"Action": "DescribeInstancePriceInfo",​
"Version": "2022-05-01",​
"Service": "Kafka",​
"Region": "cn-beijing"​
},​
"Result": {​
"Currency": "CNY",​
"OriginalPrice": "100",​
"DiscountPrice": "100",​
"PayablePrice": "100",​
"ChargeType": "PostPaid",​
"RefundAmount": "100",​
"CouponAmount": "100",​
"ChargeItemPrices": [​
{​
"ChargeItemCode": "p",​
"OriginalPrice": "d3S1Hw",​
"DiscountPrice": "9zS5lnpMdj",​
"PayablePrice": "gXmqLd",​
"UnitPrice": "AwId7",​
"Quantity": 806.2886927996282​
}​
]​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter​
The specified parameter is not valid.​
参数值无效。​
400​
InvalidParameter.InstanceId​
The specified parameter InstanceId is not valid.​
参数值 InstanceId 无效,请检查后重试。​
400​
InvalidParameter.ReadWriteRatio​
The specified parameter ReadWriteRatio is not valid.​
参数值 ReadWriteRatio 无效,请检查后重试。​
500​
InternalError​
The request failed due to some unknown error, exception or failure.​
内部错误,请稍后重试。​
​
​
最近更新时间:2026.10.29 10:50:03
这个页面对您有帮助吗?
有用
有用
无用
无用