You can call the DescribeCdnUserResourcePackage operation to query the resource plans under your account.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to DescribeCdnUserResourcePackage.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
ResourcePackageInfos [ResourcePackageInfo] The details about each resource plan, which is indicated by the ResourcePackageInfo parameter.

Parameters in ResourcePackageInfo

Parameter Type Description
CurrCapacity String The remaining capacity of the instance.
InitCapacity String The total resource capacity.
CommodityCode String  The code of the resource plan.
DisplayName String The display name of the resource plan. For example, CDN Data Transfer Plan (Mainland China Edition) .
InstanceId String The ID of the instance.
Status String The status of the resource plan.
  • valid: active
  • closed: expired
StartTime String The time when the resource plan takes effect.
EndTime String The time when the resource plan expires.

Examples

Sample request

https://cdn.aliyuncs.com?&Action=DescribeCdnUserResourcePackage&<Common request parameters>

Sample success response

JSON format

{
    "ResourcePackageInfos": {
        "ResourcePackageInfo": [
            {
                "Status": "closed",
                "InstanceId": "FP-mkqgwsyui",
                "CommodityCode": "cdnflowbag",
                "InitCapacity": "10995116277760",
                "EndTime": "2017-01-30T08:00:00Z",
                "StartTime": "2016-01-30T03:40:06Z",
                "DisplayName": "CDN Data Transfer Plan (Mainland China Edition) ",
                "CurrCapacity": "10995089554629"
            },
            {
                "Status": "valid",
                "InstanceId": "FP-ilttxc23a",
                "CommodityCode": "cdnflowbag",
                "InitCapacity": "536870912000",
                "EndTime": "2018-07-01T08:00:00Z",
                "StartTime": "2017-07-01T01:26:41Z",
                "DisplayName": "CDN Data Transfer Plan (Mainland China Edition)",
                "CurrCapacity": "0"
            },
            {
                "Status": "valid",
                "InstanceId": "CDNHTTPSBAG-cn-v0h0dnlq4000m9",
                "CommodityCode": "cdnhttpsbag",
                "InitCapacity": "10000000",
                "EndTime": "2018-12-06T08:00:00Z",
                "StartTime": "2017-12-05T19:10:58Z",
                "DisplayName": "CDN HTTPS Requests Plan",
                "CurrCapacity": "9999645"
            }
        ]
    },
    "RequestId": "84839536-2B7E-457D-9D8C-82E6C7D4E1A3"
}