Creates an elastic IP address (EIP) bandwidth plan.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameter

Parameter Type Required Example Description
Action String Yes CreateCommonBandwidthPackage

The operation that you want to perform. Set the value to: CreateCommonBandwidthPackage.

Bandwidth Integer Yes 5

The maximum bandwidth of the EIP bandwidth plan. Valid values:

1 to 1000.

Unit: Mbit/s.

RegionId String Yes cn-hangzhou

The region ID of the EIP bandwidth plan. You can call the DescribeRegions operation to query the most recent region list.

Zone String No cn-hangzhou-a

The zone where you want to create the EIP bandwidth plan.

You can leave this parameter empty.

ISP String No BGP

The line type. Valid values:

  • BGP: BGP (Multi-ISP) lines
  • BGP_PRO: BGP (Multi-ISP) Pro lines
Note
  • BGP (Multi-ISP) lines are supported in all regions. BGP (Multi-ISP) Pro lines are supported only in China (Hong Kong).
  • If your account is included in the BGP (single line) whitelist, you can set this parameter to ChinaTelecom, ChinaUnicom, or ChinaMobile. If your workloads are deployed in China East 1 Finance,you must set this parameter to BGP_FinanceCloud.
Name String No test123

The name of the EIP bandwidth plan.

The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://.

Description String No abc

The description of the EIP bandwidth plan.

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

ClientToken String No 02fb3da4-130e-11e9-8e44-001****

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

ResourceGroupId String No rg-acfmxazdjdhd****

The ID of the resource group to which the EIP bandwidth plan belongs.

Ratio Integer No 20

The minimum bandwidth guaranteed in percentage. If this value is set to 20, 20% of the total bandwidth is guaranteed.

Note This parameter is only available for EIP bandwidth plans that are purchased on the Alibaba Cloud China site.
InternetChargeType String No Alibaba Cloud China site: PayByBandwidth. Alibaba Cloud International site: PayByTraffic

The billing method of the EIP bandwidth plan. Set the value to PayByTraffic.

Response parameters

Parameter Type Example Description
BandwidthPackageId String cbwp-bp1vevu8h3ieh****

The ID of the EIP bandwidth plan.

RequestId String FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3

The ID of the request.

ResourceGroupId String rg-acfmxazdjdhd****

The ID of the resource group to which the EIP bandwidth plan belongs.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateCommonBandwidthPackage
&Bandwidth=5
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<CreateCommonBandwidthPackageResponse>
      <BandwidthPackageId>cbwp-bp1vevu8h3iehdfradfra****</BandwidthPackageId>
      <ResourceGroupId>rg-acfmxazdjdhd****</ResourceGroupId>
      <RequestId>FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3</RequestId>
</CreateCommonBandwidthPackageResponse>

JSON format

{"ResourceGroupId":"rg-acfmxazdjdhd****","RequestId":"FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3","BandwidthPackageId":"cbwp-bp1vevu8h3ieh****"}

Error codes

HttpCode Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID does not exist.
404 InvalidVpcId.NotFound Specified value of VpcId is not found in our record. The error message returned because the specified virtual private cloud (VPC) does not exist. Check whether the specified VPC is valid.
400 MissingParameter Miss mandatory parameter. The error message returned because one or more required parameters are not set. Check whether you have set all the required parameters before you call this operation.
404 InvalidZoneId.NotFound Specified value of ZoneId is not exists. The error message returned because the specified zone ID does not exist.
400 InvalidParameter.Name.Malformed The specified Name is not valid. The error message returned because the specified name is invalid. Enter the name in the correct format.
400 InvalidParameter.Description.Malformed The specified Description is not valid. The error message returned because the specified description is invalid.
400 InvalidResourceGroupId The specified ResourceGroupId does not exist. The error message returned because the specified resource group ID does not exist.

For a list of error codes, visit the API Error Center.