Queries the details about one or more Internet access packages.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeNetworkPackages

The operation that you want to perform. Set the value to DescribeNetworkPackages.

RegionId String Yes cn-hangzhou

The ID of the region.

NetworkPackageId.N RepeatList No np-amtp8e8q1o9e4****

The ID of Internet access package N. You can specify one or more Internet access package IDs.

MaxResults Integer No 10

The number of entries to return on each page.

Maximum value: 100

Default value: 10

NextToken String No caeba0bbb2be03f84eb48b699f0a4883

The token that determines the start point of the next query.

Response parameters

Parameter Type Example Description
NetworkPackages Array of NetworkPackage

Details about the Internet access packages.

Bandwidth Integer 10

The peak public bandwidth value. Unit: Mbit/s.

CreateTime String 2021-05-10T02:35:26Z

The time when the Internet access package was created.

EipAddresses List 10.10.10.0
Note This parameter is in invitational preview and unavailable for public use.
ExpiredTime String 2099-12-31T15:59:59Z

The time when the Internet access package expires.

  • If the Internet access package uses the pay-by-bandwidth billing method, the actual expiration time is returned.
  • If the Internet access package uses the pay-by-data-transfer billing method, 2099-12-31T15:59:59Z is returned.
InternetChargeType String PayByTraffic

The billing method of the Internet access package.

  • PayByTraffic: pay-by-data-transfer
  • PayByBandwidth: pay-by-bandwidth
NetworkPackageId String np-amtp8e8q1o9e4****

The ID of the Internet access package.

NetworkPackageStatus String InUse

The status of the Internet access package. The valid values include:

  • Creating: The Internet access package is being created.
  • InUse: The Internet access package is in use.
  • Releasing: The Internet access package is being released.
  • Released: The Internet access package is released.
OfficeSiteId String cn-hangzhou+dir-363353****

The ID of the workspace.

OfficeSiteName String test

The name of the workspace.

NextToken String caeba0bbb2be03f84eb48b699f0a4883

The token that determines the start point of the next query. This parameter is empty if no additional results exist.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DescribeNetworkPackages
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeNetworkPackages>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
<NextToken>caeba0bbb2be03f84eb48b699f0a4883</NextToken>
<NetworkPackages>
    <OfficeSiteId>cn-hangzhou+dir-363353****</OfficeSiteId>
    <NetworkPackageId>np-amtp8e8q1o9e4****</NetworkPackageId>
    <ExpiredTime>2099-12-31T15:59:59Z</ExpiredTime>
    <CreateTime>2021-05-10T02:35:26Z</CreateTime>
    <Bandwidth>10</Bandwidth>
    <OfficeSiteName>test</OfficeSiteName>
    <NetworkPackageStatus>InUse</NetworkPackageStatus>
    <InternetChargeType>PayByTraffic</InternetChargeType>
</NetworkPackages>
</DescribeNetworkPackagesResponse>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
    "NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
    "NetworkPackages": [
        {
            "OfficeSiteId": "cn-hangzhou+dir-363353****",
            "NetworkPackageId": "np-amtp8e8q1o9e4****",
            "ExpiredTime": "2099-12-31T15:59:59Z",
            "CreateTime": "2021-05-10T02:35:26Z",
            "Bandwidth": "10",
            "OfficeSiteName": "test",
            "NetworkPackageStatus": "InUse",
            "InternetChargeType": "PayByTraffic"
        }
    ]
}