Creates an Internet Shared Bandwidth instance.
debugging
Authorization information
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 the region ID. | cn-hangzhou |
Zone | string | No | The zone of the Internet Shared Bandwidth instance. This parameter must be specified when you create an Internet Shared Bandwidth instance for a cloud box. | cn-hangzhou-a |
ISP | string | No | The line type. Valid values:
If you are allowed to use single-ISP bandwidth, you can also choose one of the following values:
If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to BGP_FinanceCloud. | BGP |
Name | string | No | The name of the Internet Shared Bandwidth instance. The name must be 2 to 128 characters in length and start with a letter, and can contain letters, digits, underscores (_), and hyphens (-). | test123 |
Description | string | No | The description of the Internet Shared Bandwidth instance. The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with | abc |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate a token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the value of RequestId as the client token. The value of RequestId is different for each API request.
| 02fb3da4-130e-11e9-8e44-001**** |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxazdjdhd**** |
Bandwidth | integer | Yes | The maximum bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s. Valid values: 1 to 1000. Default value: 1. | 1000 |
Ratio | integer | No | The percentage of the minimum bandwidth commitment. Set the parameter to 20. Note
This parameter is supported only on the Alibaba Cloud China site.
| 20 |
InternetChargeType | string | No | The billing method of the Internet Shared Bandwidth instance. Valid values: PayByTraffic: pay-by-data-transfer | |
SecurityProtectionTypes | array | No | The editions of Anti-DDoS.
You can specify up to 10 editions of Anti-DDoS. | |
string | No | The edition of Anti-DDoS.
A variable of N is used to limit the number of Anti-DDoS editions that you can specify. Valid values of N: 1 to 10. Currently, you can specify only one Anti-DDoS edition. If you specify more than one edition, you may fail to call the operation. | AntiDDoS_Enhanced |
Response parameters
Examples
Sample success responses
JSON
format
{
"BandwidthPackageId": "cbwp-bp1vevu8h3ieh****",
"RequestId": "FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3",
"ResourceGroupId": "rg-acfmxazdjdhd****"
}
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 | MissingParameter | Miss mandatory parameter. | Some required parameters are not specified. Specify all required parameters and try again. |
400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | The specified name format is invalid. Enter the name in the valid format. |
400 | InvalidParameter.Description.Malformed | The specified Description is not valid. | The specified description is invalid. |
400 | BandwidthPackageOperation.conflict | BandwidthPackage operation conflict, please wait a moment and try again. | - |
400 | InvalidParameter.Bandwidth | The specified bandwidth is not valid. | - |
400 | BandwidthPackage.QuotaExceeded | Create BandwidthPackage has exceeded quota. | - |
400 | IllegalParam.Zone | Zone is illegal. | - |
400 | InvalidParameter.InvalidChargeType | The specified chargeType is not valid. | - |
400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | The specified resource group ID does not exist. |
400 | OperationFailed.SaleValidate | Validate sale condition with subArticle failed. | Failed to validate the sales condition with a subproject. |
400 | OperationFailed.SyncOrderToSub | SyncOrderToSub error. | The operation failed. |
400 | IllegalParam.Ratio | The specified ratio is not valid. | - |
400 | OperationUnsupported.InvalidZone | It is not allowed to create CBWP in the specified zone. | - |
400 | IllegalParam.AvailableZone | %s | - |
400 | MissingParam.NameOrDescription | %s | - |
400 | OperationFailed.SystemBusy | Operation failed because system is busy. | The error message returned because the system is busy. Try again later. |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified region ID does not exist. |
404 | InvalidVpcId.NotFound | Specified value of VpcId is not found in our record. | The VPC does not exist. Check whether the specified VPC is valid. |
404 | InvalidZoneId.NotFound | Specified value of ZoneId is not exists. | The specified zone does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-11-06 | API Description Update,The error codes of the API operation change. | see changesets | ||||||||
| ||||||||||
2023-06-26 | The error codes of the API operation change. | see changesets | ||||||||
|