DescribeNetworkPackages

Updated at:

Queries the details of one or more premium bandwidth plans.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ecd:DescribeNetworkPackages

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

MaxResults

integer

No

The number of entries to return on each page.

  • Maximum value: 100

  • Default value: 10

10

NextToken

string

No

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

caeba0bbb2be03f84eb48b699f0a4883

NetworkPackageId

array

No

The ID of the premium bandwidth plan. You can specify 1 to 100 IDs.

np-amtp8e8q1o9e4****

string

No

The ID of the premium bandwidth plan.

np-amtp8e8q1o9e4****

InternetChargeType

string

No

The charge type of the pay-as-you-go premium bandwidth plan.

Valid values:

  • PayByTraffic: charges by data transfer.

  • PayByBandwidth: charges by fixed bandwidth.

Valid values:

  • PayByTraffic :

    PayByTraffic

  • PayByBandwidth :

    PayByBandwidth

PayByBandwidth

Response elements

Element

Type

Description

Example

object

The response parameters.

NextToken

string

The token that is used to start the next query. If the value of this parameter is empty, all results are returned.

caeba0bbb2be03f84eb48b699f0a4883

RequestId

string

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

NetworkPackages

array<object>

The premium bandwidth plans.

object

Details of the Internet access package.

NetworkPackageId

string

The ID of the premium bandwidth plan.

np-amtp8e8q1o9e4****

Bandwidth

integer

The bandwidth provided by the premium bandwidth plan. Unit: Mbit/s.

10

ExpiredTime

string

The time when the premium bandwidth plan expires.

  • If the plan is a subscription one, the time when the plan expires is returned.

  • If the plan is a pay-as-you-go one, 2099-12-31T15:59:59Z is returned.

2099-12-31T15:59:59Z

CreateTime

string

The time when the premium bandwidth plan was created.

2021-05-10T02:35:26Z

OfficeSiteId

string

The office network ID.

cn-hangzhou+dir-363353****

PayType

string

The billing method of the premium bandwidth plan.

Valid values:

  • PostPaid: pay-as-you-go

  • PrePaid: subscription

Valid values:

  • PostPaid :

    PostPaid

  • PrePaid :

    PrePaid

PostPaid

InternetChargeType

string

The charge type of the premium bandwidth plan.

  • Valid value when the PayType parameter is set to PrePaid:

    • PayByBandwidth: charges by fixed bandwidth.

  • Valid values when the PayType parameter is set to PostPaid:

    • PayByTraffic: charges by data transfer.

    • PayByBandwidth: charges by fixed bandwidth.

Valid values:

  • PayByTraffic :

    PayByTraffic

  • PayByBandwidth :

    PayByBandwidth

PayByTraffic

ReservationInternetChargeType

string

The billing method of the reserved network bandwidth.

Valid values:

  • PayByTraffic: charges by data transfer.

  • PayByBandwidth: charges by fixed bandwidth.

Valid values:

  • PayByTraffic :

    PayByTraffic

  • PayByBandwidth :

    PayByBandwidth

PayByBandwidth

ReservationBandwidth

integer

The peak bandwidth that is reserved for the premium bandwidth plan. Unit: Mbit/s.

20

ReservationActiveTime

string

The time when the reserved network bandwidth took effect.

2021-07-10T00:00:00Z

NetworkPackageStatus

string

The status of the premium bandwidth plan.

Valid values:

  • Creating

  • Released

  • InUse

  • Releasing

Valid values:

  • Creating :

    Creating

  • Released :

    Released

  • InUse :

    InUse

  • Releasing :

    Releasing

InUse

OfficeSiteName

string

The office network name.

default

OfficeSiteVpcType

string

The type of the office network.

Valid values:

  • standard: advanced office network

  • customized: custom office network

  • basic: basic office network

Valid values:

  • standard :

    standard

  • customized :

    customized

  • basic :

    basic

basic

EipAddresses

array

The public egress IP address of the premium bandwidth plan.

string

The public egress IP address of the premium bandwidth plan.

120.2.XX.XX

BusinessStatus

string

The business status.

Valid values:

  • Expired

  • Normal

Valid values:

  • Expired :
  • Normal :

Normal

Examples

Success response

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": "default",
      "OfficeSiteVpcType": "basic",
      "EipAddresses": [
        "120.2.XX.XX"
      ],
      "BusinessStatus": "Normal"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.