Queries one or more NAT bandwidth packages in a region.

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 DescribeBandwidthPackages

The name of this action. Value:


RegionId String Yes cn-hangzhou

The region to which the NAT Gateway belongs.

To query the region ID, call DescribeRegions.

BandwidthPackageId String No bwp-bp1xea10o8qxw8lkw2xa1

The ID of the NAT bandwidth package.

NatGatewayId String No ngw-bp1uewa15k4iy5770ya89

The ID of the NAT Gateway.

PageNumber Integer No 10

The number of pages to return. Default value: 1.

PageSize Integer No 10

The number of rows per page. Maximum value: 50. Default value: 10.

Response parameters

Parameter Type Example value Description
BandwidthPackages N/A N/A

A list of NAT bandwidth packages.

 └Bandwidth String 5

The bandwidth value in Mbps. Valid values: 5 to 5000.

 └BandwidthPackageId String bwp-xxoo123

The ID of the NAT bandwidth package.

 └BusinessStatus String Normal

The status of the bandwidth package.

Valid values: Normal | FinancialLocked | SecurityLocked.

 └CreationTime String 2017-06-08T12:20:55

The time at which the bandwidth package was created.

Standard: ISO861. Format: UTC, YYYY-MM-DDThh:mmZ

 └Description String test123

The description of the bandwidth package.

 └ISP String BGP

Valid value: BGP.

 └InstanceChargeType String PostPaid

The billing method of the instance. Currently, only the Pay-As-You-Go billing method is supported.

Valid value: PostPaid

 └InternetChargeType String PayByBandwidth

The Internet billing method. Valid values:

  • PayByTraffic: Billing based on traffic
 └IpCount String 1

The number of public IP addresses in the NAT bandwidth package.

Value range: 1 to 50.

 └Name String xxxxxxx

The name of the NAT Gateway.

 └NatGatewayId String ngw-xxoo123

The ID of the NAT Gateway.

 └PublicIpAddresses N/A N/A

The IP addresses in the bandwidth package.

 └AllocationId String eip-2zeerraiwb7uj6i0d0fo3

The allocation ID.

 └ApAccessEnabled Boolean true

Indicates whether AP access is enabled.

 └IpAddress String

The IP address.

 └UsingStatus String Available

The usage status.

 └RegionId String cn-hangzhou

The region ID.

 └Status String Available

The status of the bandwidth package.

 └ZoneId String cn-shanghai-a

The zone of the NAT bandwidth package.

TotalCount Integer 10

The number of queried entries.

PageNumber Integer 10

The current page number.

PageSize Integer 10

The number of entries per page.

RequestId String 4EC47282-1B74-4534-BD0E-403F3EE64CAF"

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.

See common error codes