You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
共享带宽包
ModifyBandwidthPackageSpec - 修改共享带宽包带宽上限
复制全文
下载 pdf
ModifyBandwidthPackageSpec - 修改共享带宽包带宽上限
调用 ModifyBandwidthPackageSpec 接口,修改共享带宽包的带宽上限。​
使用说明​
  • 按量计费共享带宽包支持提升和降低带宽上限,包年包月共享带宽包仅支持提升带宽上限。​
  • 降低带宽上限,可能会影响业务流量造成丢包,请充分评估可能对业务产生的影响,并谨慎操作。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ModifyBandwidthPackageSpec​
要执行的操作,取值:ModifyBandwidthPackageSpec。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
BandwidthPackageId String 必选 示例值:bwp-2zeo05qre24nhrqpy****​
共享带宽包的ID。​
您可调用 DescribeBandwidthPackages 接口,查询共享带宽包的ID。​
​
Bandwidth Integer 必选 示例值:100​
共享带宽包的带宽上限,单位:Mbps。​
  • 包年包月:取值范围5 ~ 5000。​
  • 按带宽上限计费:取值范围2 ~ 5000。​
  • 按主流量计费:取值范围2 ~ 2000。​
  • 按传统95计费:取值范围2 ~ 5000。​
​
​
​
返回参数​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyBandwidthPackageSpec&Version=2020-04-01&BandwidthPackageId=bwp-2zeo05qre24nhrqpy****&Bandwidth=100 HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
Service: vpc​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "ModifyBandwidthPackageSpec",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
公共错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
InvalidBandwidth.Malformed​
The specified bandwidth is malformed. Ensure that bandwidth is not smaller than the limit.​
指定的带宽不合法。请确保带宽不小于限制。​
400​
InvalidBandwidth.Malformed​
The specified bandwidth is malformed. Ensure that common bandwidth is not smaller than independent bandwidth.​
指定的带宽不合法。请确保共享带宽不小于独立带宽。​
400​
InvalidBandwidthPackage.InProcess​
Operation failed. The specified instance is already being processed and cannot be modified or deleted.​
操作失败。该实例已在流程中,不能进行变配或删除操作。​
400​
InvalidBandwidthPackage.InvalidStatus​
The specified bandwidth package is not in the correct status for the request. The specified bandwidth package is in freeze.​
指定的共享带宽包所处的状态无法响应该请求。当前共享带宽包被冻结。​
400​
InvalidBillingType.Malformed​
The specified billing type is malformed.​
指定的计费类型不合法。​
400​
InvalidEip.InUse​
The specified EIP is being operated by another request.​
指定的EIP正被另一个请求操作,请稍后再试。​
400​
LimitExceeded.Bandwidth​
You've reached the limit on the bandwidth that you can create.​
已达到带宽上限。​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
OrderError​
Failed to create an order in one step.​
创建订单并支付失败。​
400​
PreOrderError​
Failed to create pre order.​
创建配置单失败。​
400​
UnsupportedOperation​
The request on the specified instance is denied due to the account in arrears status.​
因账户处于欠费状态,对于该实例的操作请求被拒绝。​
400​
UnsupportedOperation​
The request on the specified instance is denied due to the account balance and available vouchers are less than 100 yuan in total.​
因账户余额及可用代金券共不足100元,对于该实例的操作请求被拒绝。​
404​
InvalidBandwidthPackage.NotFound​
The specified bandwidth package does not exist.​
指定的共享带宽包不存在。​
404​
InvalidBandwidthPackageBandwidth.Malformed​
The prepaid bandwidth package does not support reducing bandwidth.​
包年包月计费类型的共享带宽包不支持降配。​
404​
InvalidEip.GetInstanceDetail​
Get instance detail failed.​
获取实例信息失败。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.01.23 15:55:24
这个页面对您有帮助吗?
有用
有用
无用
无用