调用 ModifyBandwidthPackageSpec 接口,修改共享带宽包的带宽上限。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyBandwidthPackageSpec | 要执行的操作,取值:ModifyBandwidthPackageSpec。 |
Version | String | 是 | 2020-04-01 | API的版本信息,当前版本为2020-04-01。 |
BandwidthPackageId | String | 是 | bwp-2zeo05qre24nhrqpy**** | 共享带宽包的ID。 |
Bandwidth | Integer | 是 | 100 | 共享带宽包的带宽上限,单位:Mbps。
|
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 2021062415303301022514515207C4**** | 请求ID。 |
GET /?Action=ModifyBandwidthPackageSpec&Version=2020-04-01&BandwidthPackageId=bwp-2zeo05qre24nhrqpy****&Bandwidth=100 HTTP/1.1 Host: open.volcengineapi.com Service: vpc Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "2021062415303301022514515207C4****", "Action": "ModifyBandwidthPackageSpec", "Version": "2020-04-01", "Service": "vpc", "Region": "cn-beijing" }, "Result":{ "RequestId": "2021062415303301022514515207C4****" } }
公共错误码,请参见 公共错误码 。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidBandwidth.Malformed | The specified bandwidth is malformed. Ensure that bandwidth is not smaller than the limit. | 指定的带宽不合法。请确保带宽不小于限制。 |
400 | InvalidEip.InUse | The specified EIP is being operated by another request. | 指定的EIP正被另一个请求操作,请稍后再试。 |
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 | 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 balance and available vouchers are less than 100 yuan in total. | 因账户余额及可用代金券共不足100元,对于该实例的操作请求被拒绝。 |
400 | InvalidBandwidth.Malformed | The specified bandwidth is malformed. Ensure that bandwidth is not larger than 5000. | 指定的带宽不合法。请确保不大于5000。 |
400 | UnsupportedOperation | The request on the specified instance is denied due to the account in arrears status. | 因账户处于欠费状态,对于该实例的操作请求被拒绝。 |
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. | 获取实例信息失败。 |