Creates an Internet Shared Bandwidth instance by calling the CreateCommonBandwidthPackage operation.
Operation description
.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateCommonBandwidthPackage |
create |
*CommonBandwidthPackage
|
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 the most recent region list. |
cn-hangzhou |
| Zone |
string |
No |
The zone of the Internet Shared Bandwidth instance. This parameter is required when you create an Internet Shared Bandwidth instance for a CloudBox. |
ap-southeast-1-lzdvn-cb |
| ISP |
string |
No |
The line type. Valid values:
If you are a single-ISP bandwidth whitelist user, you can also select the following types:
If you are a Finance Cloud user in the China (Hangzhou) region, this parameter is required. Set the value to BGP_FinanceCloud. |
BGP |
| Name |
string |
No |
The name of the Internet Shared Bandwidth instance. The name must be 0 to 128 characters in length and cannot start with |
test123 |
| Description |
string |
No |
The description of the Internet Shared Bandwidth instance. The description must be 0 to 256 characters in length and 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 the token, but you must make sure that the token is unique among different requests. The ClientToken value can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId may be different for each API request. |
02fb3da4-130e-11e9-8e44-001**** |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxazdjdhd**** |
| Bandwidth |
integer |
Yes |
The peak bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s. Default value range: 1 to 1000. Default value: 1. |
1000 |
| Ratio |
integer |
No |
The minimum bandwidth commitment percentage of the Internet Shared Bandwidth instance. Set the value to 20. Note
This parameter is supported only on the China site. |
20 |
| InternetChargeType |
string |
No |
The billable method of the Internet Shared Bandwidth instance. Valid values: PayByTraffic (pay-by-data-transfer). |
中国站示例值:PayByBandwidth,国际站示例值:PayByTraffic |
| SecurityProtectionTypes |
array |
No |
The security protection level.
You can specify up to 10 security protection levels. Note
This parameter is deprecated. |
AntiDDoS_Enhanced |
|
string |
No |
The security protection level.
Valid values of N: 1 to 10. Currently, only one security protection level can be specified. If you specify multiple levels, you may fail to invoke the operation. Note
This parameter is deprecated. |
AntiDDoS_Enhanced |
|
| Tag |
array<object> |
No |
The list of tags for the Internet Shared Bandwidth instance. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with |
FinanceJoshua |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| BandwidthPackageId |
string |
The ID of the Internet Shared Bandwidth instance. |
cbwp-bp1vevu8h3ieh**** |
| RequestId |
string |
The request ID. |
FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3 |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxazdjdhd**** |
Examples
Success response
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. | |
| 400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | |
| 400 | InvalidParameter.Description.Malformed | The specified Description is not valid. | |
| 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 | UnsupportedRegion.CloudBoxInternet | The region does not support cloud box public network. | The region does not support cloud box public network. |
| 400 | ResourceNotEnough.CommonBandWidthPackage | The specified resource commonBandWidthPackage is not enough. | The specified resource commonBandWidthPackage is not enough. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.