ModifyCommonBandwidthPackageSpec
Modifies the peak bandwidth of an Internet Shared Bandwidth instance.
Operation description
When you call this operation, take note of the following items:
- The ModifyCommonBandwidthPackageSpec operation is asynchronous. The system returns a request ID, but the peak bandwidth of the Internet Shared Bandwidth instance is not immediately modified. The modification task is still running in the background. You can call the DescribeCommonBandwidthPackages operation to query the status of the Internet Shared Bandwidth instance.
If the Internet Shared Bandwidth instance is in the Modifying state, the peak bandwidth is being modified. In this state, you can only perform query operations.
If the Internet Shared Bandwidth instance is in the Available state, the peak bandwidth is modified.
The ModifyCommonBandwidthPackageSpec operation does not support concurrent modifications to the peak bandwidth of the same Internet Shared Bandwidth instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyCommonBandwidthPackageSpec |
update |
*BandwidthPackage
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Internet Shared Bandwidth instance. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| BandwidthPackageId |
string |
Yes |
The ID of the Internet Shared Bandwidth instance. |
cbwp-2ze2ic1xd2qeqk145**** |
| Bandwidth |
string |
Yes |
The peak bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.
|
1000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned information. |
||
| RequestId |
string |
The request ID. |
7F129000-F929-4AF5-BE8D-BAE434C795306 |
Examples
Success response
JSON format
{
"RequestId": "7F129000-F929-4AF5-BE8D-BAE434C795306"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotEnough.Bandwidth | The specified resource of Bandwidth is not enough. | The specified resource of Bandwidth is insufficient. |
| 400 | InvalidParameter.Bandwidth | The specified bandwidth is not valid. | The request processing failed. Error message: The specified bandwidth is not valid. |
| 400 | InvalidBandwidthPackageId.NotFound | The specified BandwidthPackageId not exist. | |
| 400 | InvalidCommonBandwidthPackageId.NotFound | The specified BandwidthPackageId is not found. | The request processing failed. Error message: The specified BandwidthPackageId is not found. |
| 400 | IncorrectStatus.ResourceStatus | Resource status is abnormal for renew. | |
| 400 | SYSTEM.SALE_VALIDATE_UNEXPECTED_ERROR | You have arrears and do not meet the purchase conditions. | |
| 400 | OperationFailed.SyncOrderToSub | SyncOrderToSub error. | The operation failed. |
| 400 | OperationFailed.SaleValidate | Validate sale condition with subArticle failed. | Failed to validate the sales condition with a subproject. |
| 400 | OperationFailed.QueryCommodityInfo | Operation failed because quey commodity info error. | |
| 400 | OperationFailed.QueryPrice | Query price failed when create order. | Failed to query the price when creating the order. |
| 400 | Forbidden.ChargeTypeIsPrepaid | It's forbidden to change prepaid CBWP's bandwidth by API. It can be changed on Aliyun web console. | |
| 400 | IncorrectStatus.CbwpModifying | Cbwp Modifying status is invalid. | |
| 400 | OperationDenied.BandwidthLessThanMemberMax | The new bandwidth value is less than the maximum QoS bandwidth of member IPs in the common bandwidth package. | The modified bandwidth value is less than the maximum secondary bandwidth limit configured for the member IP addresses in the Internet Shared Bandwidth instance. The new bandwidth value must be greater than or equal to the maximum bandwidth limit of all member IP addresses. |
| 500 | OrderError.BandwidthPackage | The Account failed to create order. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidBandwidthPackageId.NotFound | The specified BandwidthPackageId does not exist in our records. | |
| 404 | InvalidBandwidth.ValueNotSupported | The specified value of Bandwidth not supported. | |
| 404 | BandwidthPackage.FinancialLocked | The specified BandwidthPackage has been Financial Lock. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.