Queries the details of one or more Internet access packages.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. | cn-hangzhou |
MaxResults | integer | No | The number of entries to return on each page.
| 10 |
NextToken | string | No | The token that determines the start point of the next query. | caeba0bbb2be03f84eb48b699f0a4883 |
NetworkPackageId | array | No | The IDs of the Internet access packages. You can specify 1 to 100 IDs of Internet access packages. | |
string | No | The ID of the Internet access package. | np-amtp8e8q1o9e4**** | |
InternetChargeType | string | No | The billing method of the Internet access package. Valid values:
| PayByBandwidth |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"NetworkPackages": [
{
"NetworkPackageId": "np-amtp8e8q1o9e4****",
"Bandwidth": 10,
"ExpiredTime": "2099-12-31T15:59:59Z",
"CreateTime": "2021-05-10T02:35:26Z",
"OfficeSiteId": "cn-hangzhou+dir-363353****",
"PayType": "PostPaid",
"InternetChargeType": "PayByTraffic",
"ReservationInternetChargeType": "PayByBandwidth",
"ReservationBandwidth": 20,
"ReservationActiveTime": "2021-07-10T00:00:00Z",
"NetworkPackageStatus": "InUse",
"OfficeSiteName": "test",
"OfficeSiteVpcType": "basic",
"EipAddresses": [
"120.2.XX.XX"
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-10-26 | The response structure of the API has changed | see changesets | ||||
| ||||||
2021-08-19 | The request parameters of the API has changed | see changesets | ||||
|