Queries bandwidth plans.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ga:ListBandwidthPackages | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou. | cn-hangzhou |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Maximum value: 100. Default value: 10. | 10 |
State | string | No | The status of the bandwidth plan. Valid values:
| active |
Type | string | No | The type of the bandwidth plan. Valid values:
If you call this operation on the China site (aliyun.com), you can set Type only to Basic. | Basic |
BandwidthPackageId | string | No | The ID of the bandwidth plan. | gbwp-bp1sgzldyj6b4q7cx**** |
ResourceGroupId | string | No | The ID of the resource group. | rg-aek2ry6mp2c**** |
Tag | array<object> | No | The tag of the bandwidth plan. | |
object | No | The tag of the bandwidth plan. | ||
Key | string | No | The tag key of the bandwidth plan. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain You can specify up to 20 tag keys. | tag-key |
Value | string | No | The tag value of the bandwidth plan. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain You can specify up to 20 tag values. | tag-value |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"PageSize": 10,
"RequestId": "4B6DBBB0-2D01-4C6A-A384-4129266E6B78",
"PageNumber": 1,
"BandwidthPackages": [
{
"Type": "Basic",
"BandwidthType": "Basic",
"State": "active",
"CreateTime": "1578966918000",
"ChargeType": "PREPAY",
"RegionId": "cn-hangzhou",
"CbnGeographicRegionIdA": "China-mainland",
"BandwidthPackageId": "gbwp-bp1sgzldyj6b4q7cx****",
"Bandwidth": 2,
"Description": "testDescription",
"ExpiredTime": "1578966918000",
"Accelerators": [
"ga-bp1qe94o52ot4pkfn****"
],
"CbnGeographicRegionIdB": "Global",
"Name": "testName",
"BillingType": "PayByTraffic",
"Ratio": 30,
"ResourceGroupId": "rg-aek2ry6mp2c****",
"Tags": [
{
"Key": "tag-key",
"Value": "tag-value"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-07-20 | The internal configuration of the API is changed, but the call is not affected | View Change Details |