All Products
Search
Document Center

CDN:DescribeCdnUserResourcePackage

Last Updated:Oct 10, 2026

Queries the current resource plan information for CDN users.

Operation description

Note

Rate limit per user: 30 calls per second.

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

cdn:DescribeCdnUserResourcePackage

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Status

string

No

The status of the resource plan. Default value: valid. Valid values:

  • valid: Valid.

  • closed: Invalid.

  • exhaust: Exhausted.

valid

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

84839536-2B7E-457D-9D8C-82E6C7D4E1A3

ResourcePackageInfos

object

ResourcePackageInfo

array<object>

The array of ResourcePackageInfo.

object

EndTime

string

The expiration time. The time follows the ISO 8601 standard and is displayed in UTC.

2018-07-01T08:00:00Z

Status

string

The status of the resource plan. Valid values:

  • valid: Valid.

  • closed: Invalid.

  • exhaust: Exhausted.

valid

DisplayName

string

The name of the resource plan.

Data Transfer Plan in Asia Pacific 1

StartTime

string

The effective period. The time format follows the ISO 8601 standard and is displayed in UTC.

2017-12-05T19:10:58Z

CommodityCode

string

The commodity code of the resource plan.

cdnflowbag

InstanceId

string

The instance ID.

FP-ilttxc23a

TemplateName

string

The template name.

FPT_cdn_bag_intl_deadlineAcc_1569491944

CurrCapacity

string

The current remaining capacity of the instance.

  • Unit for data transfer plans: bytes.

  • Unit for request plans: requests.

53661095687

InitCapacity

string

The total capacity of the resource plan.

  • Unit for data transfer plans: bytes.

  • Unit for request plans: requests.

107374182400

Region

string

The region.

CN

CurrCapacityShowValue

string

The displayed current remaining capacity of the instance.

49.975789

CurrCapacityShowUnit

string

The unit of the displayed current remaining capacity of the instance.

GB

CurrCapacityBaseUnit

string

The unit of the current remaining capacity of the instance.

Byte

InitCapacityShowValue

string

The displayed total capacity of the resource plan.

100.000000

InitCapacityShowUnit

string

The unit of the displayed total capacity of the resource plan.

GB

InitCapacityBaseUnit

string

The unit of the total capacity of the resource plan.

Byte

Examples

Success response

JSON format

{
  "RequestId": "84839536-2B7E-457D-9D8C-82E6C7D4E1A3",
  "ResourcePackageInfos": {
    "ResourcePackageInfo": [
      {
        "EndTime": "2018-07-01T08:00:00Z",
        "Status": "valid",
        "DisplayName": "Data Transfer Plan in Asia Pacific 1",
        "StartTime": "2017-12-05T19:10:58Z",
        "CommodityCode": "cdnflowbag",
        "InstanceId": "FP-ilttxc23a",
        "TemplateName": "FPT_cdn_bag_intl_deadlineAcc_1569491944",
        "CurrCapacity": "53661095687",
        "InitCapacity": "107374182400",
        "Region": "CN",
        "CurrCapacityShowValue": "49.975789",
        "CurrCapacityShowUnit": "GB",
        "CurrCapacityBaseUnit": "Byte",
        "InitCapacityShowValue": "100.000000",
        "InitCapacityShowUnit": "GB",
        "InitCapacityBaseUnit": "Byte"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 CdnServiceNotFound Your account does not open CDN service yet.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.