Adds public IP addresses to a NAT bandwidth package.

Note This API can be called only if you purchased a NAT bandwidth package before January 26, 2018. If your account does not have a NAT bandwidth package purchased before January 26, 2018, you need to associate an EIP.

For more information, see AssociateEipAddress .


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes AddBandwidthPackageIps

The name of this action. Value:


BandwidthPackageId String Yes bwp-s6lmotmkk

The ID of the NAT bandwidth package.

IpCount String Yes 2

The number of public IP addresses in the NAT bandwidth package. Value range: 1 to 50.

RegionId String Yes cn-hangzhou

The region to which the NAT bandwidth package belongs.

To query the region ID, call DescribeRegions.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Response parameters

Parameter Type Example value Description
RequestId String EC0B5C51-7F40-44D6-A642-1DE764B547EC The ID of the request.


Request example
Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.
400 InvalidIpCount.ValueNotSupported The specified value of IpCount not supported. The IpCount value is invalid.
400 QuotaExceeded.BandwidthPackageIps The specified ipCount exceeded quota. The quota of IP addresses has been reached. To increase the quota, open a ticket.
404 BandwidthPackage.FinancialLocked The specified BandwidthPackage has been Financail Lock. The bandwidth package is locked due to insufficient account balance.

See common error codes