Modifies the bandwidth of a bandwidth package.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyBandwidthPackageSpec |
update |
*BandwidthPackage
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
DescribeRegions operation to query the most recent region list. |
|
| BandwidthPackageId |
string |
Yes |
|
|
| Bandwidth |
string |
Yes |
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| RequestId |
string |
|
Examples
Success response
JSON format
{
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.ChargeTypeIsPrepaid | It's forbidden to change prepaid CBWP's bandwidth by API. It can be changed on Aliyun web console. | |
| 400 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory. | |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
| 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 Financail Lock. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.