Queries bandwidth packages.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeBandwidthPackages |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the bandwidth package. |
cn-hangzhou |
| BandwidthPackageId |
string |
No |
The ID of the bandwidth package. |
bwp-bp1xea10o8qxwaswq**** |
| NatGatewayId |
string |
No |
The ID of the NAT gateway. If you specify this parameter, only bandwidth packages associated with the NAT gateway are returned. |
ngw-bp1uewa15k4iyaszaasza**** |
| PageNumber |
integer |
No |
The page number. Starting value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The request ID. |
8909013D-4A64-41A6-93E6-E3FD08A3EAFE |
| PageNumber |
integer |
The current page number. |
1 |
| TotalCount |
integer |
The total number of entries that meet the query conditions. |
1 |
| BandwidthPackages |
object |
||
| BandwidthPackage |
array<object> |
The list of bandwidth packages. |
|
|
array<object> |
|||
| Status |
string |
The status of the bandwidth package. Valid values: Available, Pending, Modifying, Deleting, and Deleted. |
Available |
| CreationTime |
string |
The time when the bandwidth package was created. The time is displayed in UTC in the YYYY-MM-DDThh:mm:ssZ format. |
2018-03-06T07:33:51Z |
| IpCount |
string |
The number of public IP addresses in the bandwidth package. |
2 |
| RegionId |
string |
The region ID of the bandwidth package. |
cn-hangzhou |
| InstanceChargeType |
string |
The billable methods of the bandwidth package. Valid values: PostPaid and PrePaid. |
PostPaid |
| BandwidthPackageId |
string |
The ID of the bandwidth package. |
bwp-bp1xea10o8qxwaswq**** |
| Description |
string |
The description of the bandwidth package. |
Sample bandwidth package |
| Bandwidth |
string |
The bandwidth of the bandwidth package. Unit: Mbit/s. |
5 |
| NatGatewayId |
string |
The ID of the NAT gateway that uses the bandwidth package. |
ngw-bp1uewa15k4iyaszaasza**** |
| ZoneId |
string |
The zone ID of the bandwidth package. |
cn-hangzhou-b |
| InternetChargeType |
string |
The billable methods for network usage. Valid values: PayByTraffic and PayByBandwidth. |
PayByTraffic |
| BusinessStatus |
string |
The service status of the bandwidth package. A value of Normal indicates that the bandwidth package is running normally. A value of FinancialLocked indicates that the bandwidth package is under financial lock. |
Normal |
| Name |
string |
The name of the bandwidth package. |
Sample bandwidth package |
| ISP |
string |
The line type. Valid values: BGP and BGP_PRO. |
BGP |
| PublicIpAddresses |
object |
||
| PublicIpAddresse |
array<object> |
The list of public IP addresses in the bandwidth package. |
|
|
object |
|||
| IpAddress |
string |
The public IP address. |
118.31.xx.xx |
| AllocationId |
string |
The ID of the EIP associated with the public IP address. |
nateip-bp1jb1uijvm9oaqaqaqaq**** |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "8909013D-4A64-41A6-93E6-E3FD08A3EAFE",
"PageNumber": 1,
"TotalCount": 1,
"BandwidthPackages": {
"BandwidthPackage": [
{
"Status": "Available",
"CreationTime": "2018-03-06T07:33:51Z",
"IpCount": "2",
"RegionId": "cn-hangzhou",
"InstanceChargeType": "PostPaid",
"BandwidthPackageId": "bwp-bp1xea10o8qxwaswq****",
"Description": "Sample bandwidth package",
"Bandwidth": "5",
"NatGatewayId": "ngw-bp1uewa15k4iyaszaasza****",
"ZoneId": "cn-hangzhou-b",
"InternetChargeType": "PayByTraffic",
"BusinessStatus": "Normal",
"Name": "Sample bandwidth package",
"ISP": "BGP",
"PublicIpAddresses": {
"PublicIpAddresse": [
{
"IpAddress": "118.31.xx.xx",
"AllocationId": "nateip-bp1jb1uijvm9oaqaqaqaq****"
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAliuid | User Id is not valid. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.