Queries information about bandwidth package instances by calling the DescribeCenBandwidthPackages operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeCenBandwidthPackages |
get |
*CenBandwidthPackage
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IncludeReservationData |
boolean |
No |
Specifies whether to include renewal data. Valid values:
|
true |
| PageNumber |
integer |
No |
The page number of the list. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
2 |
| IsOrKey |
boolean |
No |
The logical relationship between filter conditions. Valid values:
|
false |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfnwjeo4tv**** |
| Filter |
array<object> |
No |
The filter information. |
|
|
object |
No |
The filter information. |
||
| Key |
string |
No |
The filter condition. You can use filter conditions to filter the bandwidth package instances to query. The following filter conditions are supported:
|
CenId |
| Value |
array |
No |
The filter values based on the specified Key. You can specify multiple filter values for a single Key. The filter values have an OR relationship, which means that a bandwidth package matching any of the filter values is considered a match for the filter condition. |
Idle |
|
string |
No |
The filter values based on the specified Key. You can specify multiple filter values for a single Key. The filter values have an OR relationship, which means that a bandwidth package matching any of the filter values is considered a match for the filter condition. |
cen-xxjsjfkffkfkfjkf**** |
|
| Tag |
array<object> |
No |
The tag information list. You can specify up to 20 tags at a time. |
|
|
object |
No |
The tag information. You can specify up to 20 tags at a time. |
||
| Key |
string |
No |
The tag key of the resource. Once specified, the tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with You can specify up to 20 tag keys at a time. |
TagKey |
| Value |
string |
No |
The tag value of the resource. The tag value can be empty or a string of up to 128 characters. It cannot start with Each tag key corresponds to one tag value. You can specify up to 20 tag values at a time. |
TagValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
2 |
| RequestId |
string |
The request ID. |
9D7E2400-2755-4AF5-9B73-12565E4F73A0 |
| PageNumber |
integer |
The current page number. |
1 |
| TotalCount |
integer |
The total number of entries. |
2 |
| CenBandwidthPackages |
object |
||
| CenBandwidthPackage |
array<object> |
The details of the bandwidth package. |
|
|
array<object> |
|||
| ReservationActiveTime |
string |
The expiration time of the temporary upgrade, in ISO 8601 format (YYYY-MM-DDThh:mmZ). |
2021-08-30T16:00Z |
| Status |
string |
Indicates whether the bandwidth package is associated with a CEN instance.
|
InUse |
| CreationTime |
string |
The time when the bandwidth package was created, in ISO 8601 format (YYYY-MM-DDThh:mmZ). |
2021-02-01T11:14Z |
| ReservationOrderType |
string |
The renewal with specification change type. Valid values:
|
UPGRADE |
| BandwidthPackageChargeType |
string |
The billing method of the bandwidth package. |
PREPAY |
| CenBandwidthPackageId |
string |
The ID of the bandwidth package. |
cenbwp-4c2zaavbvh5x**** |
| ReservationInternetChargeType |
string |
The billing method after the specification change. |
PREPAY |
| GeographicRegionAId |
string |
The ID of the connected area to query. Valid values:
|
china |
| Bandwidth |
integer |
The peak bandwidth of the bandwidth package. |
2 |
| Description |
string |
The description of the bandwidth package. |
cen |
| ExpiredTime |
string |
The expiration time of the bandwidth package, in ISO 8601 format (YYYY-MM-DDThh:mmZ). |
2021-09-08T16:00Z |
| ReservationBandwidth |
string |
The bandwidth that is restored after the temporary upgrade expires. |
10 |
| GeographicSpanId |
string |
The ID of the connected area pair. |
north-america_china |
| GeographicRegionBId |
string |
The other connected areas ID of the bandwidth package instance. Valid values:
|
north-america |
| ResourceGroupId |
string |
The resource group ID. |
rg-aekzoyr5k36**** |
| IsCrossBorder |
boolean |
Indicates whether the bandwidth package is a cross-border bandwidth package.
|
false |
| BusinessStatus |
string |
The status of the bandwidth package.
|
Normal |
| Name |
string |
The name of the bandwidth package. |
test |
| HasReservationData |
string |
Indicates whether renewal data exists.
Note
This parameter is set to true only when the IncludeReservationData parameter is set to true and there is pending order data that has not taken effect. |
false |
| OrginInterRegionBandwidthLimits |
object |
||
| OrginInterRegionBandwidthLimit |
array<object> |
The details of the connected regions. |
|
|
object |
|||
| BandwidthLimit |
string |
The peak bandwidth between the connected regions. |
1 |
| OppositeRegionId |
string |
The ID of the peer region. |
us-west-1 |
| GeographicSpanId |
string |
The connected regions. |
north-america_china |
| LocalRegionId |
string |
The ID of the local region. |
cn-hangzhou |
| Tags |
object |
||
| Tag |
array<object> |
The tag information of the bandwidth package. |
|
|
object |
The tag list. |
||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
| CenIds |
object |
||
| CenId |
array |
The list of CEN instances associated with the bandwidth package. |
|
|
string |
The instance ID of the CEN instance associated with the bandwidth package. |
cen-xxjsjfkffkfkfjkf**** |
Examples
Success response
JSON format
{
"PageSize": 2,
"RequestId": "9D7E2400-2755-4AF5-9B73-12565E4F73A0",
"PageNumber": 1,
"TotalCount": 2,
"CenBandwidthPackages": {
"CenBandwidthPackage": [
{
"ReservationActiveTime": "2021-08-30T16:00Z",
"Status": "InUse",
"CreationTime": "2021-02-01T11:14Z",
"ReservationOrderType": "UPGRADE",
"BandwidthPackageChargeType": "PREPAY",
"CenBandwidthPackageId": "cenbwp-4c2zaavbvh5x****",
"ReservationInternetChargeType": "PREPAY",
"GeographicRegionAId": "china",
"Bandwidth": 2,
"Description": "cen",
"ExpiredTime": "2021-09-08T16:00Z",
"ReservationBandwidth": "10",
"GeographicSpanId": "north-america_china",
"GeographicRegionBId": "north-america",
"ResourceGroupId": "rg-aekzoyr5k36****",
"IsCrossBorder": false,
"BusinessStatus": "Normal",
"Name": "test",
"HasReservationData": "false",
"OrginInterRegionBandwidthLimits": {
"OrginInterRegionBandwidthLimit": [
{
"BandwidthLimit": "1",
"OppositeRegionId": "us-west-1",
"GeographicSpanId": "north-america_china",
"LocalRegionId": "cn-hangzhou"
}
]
},
"Tags": {
"Tag": [
{
"Key": "TagKey",
"Value": "TagValue"
}
]
},
"CenIds": {
"CenId": [
"cen-xxjsjfkffkfkfjkf****"
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.TagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
| 400 | IllegalParam.TagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.