Queries the information about the resource plans in your Alibaba Cloud account, including the total quota, remaining quota, effective time, expiration time, and status of each resource plan.

Note The maximum number of times that each user can call this operation per second is 30.

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 DescribeDcdnUserResourcePackage

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

Response parameters

Parameter Type Example Description
RequestId String 96ED3127-EC7A-57C5-AFA6-A689B24B2530

The ID of the request.

ResourcePackageInfos Array of ResourcePackageInfo

The array consists of multiple ResourcePackageInfo parameters. The details about each resource plan are included in a separate ResourcePackageInfo parameter.

ResourcePackageInfo
CommodityCode String dcdnpaybag

The commodity code of the resource plan.

CurrCapacity String 10000000

The remaining quota of the resource plan.

  • A data transfer plan. Unit: byte.
  • A resource plan that is used to offset the number of requests.
DisplayName String Resource plan for static HTTPS requests

The name of the resource plan.

EndTime String 2022-08-24T16:00:00Z

The time when the resource plan expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

InitCapacity String 10000000

The total quota of the resource plan.

  • A data transfer plan. Unit: byte.
  • A resource plan that is used to offset the number of requests.
InstanceId String CDNFLOWBAG-cn-7pp2bihrb01ii0

The ID of the resource plan.

StartTime String 2021-08-24T04:09:22Z

The time when the resource plan took effect. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

Status String valid

The status of the resource plan. Valid values:

  • valid: The resource plan is valid.
  • closed: The resource package has expired.
TemplateName String FPT_dcdnpaybag_deadlineAcc_1541151058

The name of the template.

Examples

Sample requests

http://dcdn.aliyuncs.com/?Action=DescribeDcdnUserResourcePackage
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnUserResourcePackageResponse>
  <RequestId>96ED3127-EC7A-57C5-AFA6-A689B24B2530</RequestId>
  <ResourcePackageInfos>
        <ResourcePackageInfo>
              <Status>valid</Status>
              <InitCapacity>10000000</InitCapacity>
              <EndTime>2022-08-24T16:00:00Z</EndTime>
              <InstanceId>CDNFLOWBAG-cn-7pp2bihrb01ii0</InstanceId>
              <CommodityCode>dcdnpaybag</CommodityCode>
              <DisplayName>Resource plan for static HTTPS requests</DisplayName>
              <StartTime>2021-08-24T04:09:22Z</StartTime>
              <TemplateName>FPT_dcdnpaybag_deadlineAcc_1541151058</TemplateName>
              <CurrCapacity>10000000</CurrCapacity>
        </ResourcePackageInfo>
        <ResourcePackageInfo>
              <Status>valid</Status>
              <InitCapacity>1000000</InitCapacity>
              <EndTime>2021-08-31T16:00:00Z</EndTime>
              <InstanceId>CDNFLOWBAG-cn-z2q1t3xre0001x</InstanceId>
              <CommodityCode>dcdnpaybag</CommodityCode>
              <DisplayName>Resource plan for dynamic requests</DisplayName>
              <StartTime>2020-08-31T09:26:20Z</StartTime>
              <TemplateName>FPT_dcdnpaybag_deadlineAcc_1541404502</TemplateName>
              <CurrCapacity>1000000</CurrCapacity>
        </ResourcePackageInfo>
        <ResourcePackageInfo>
              <Status>valid</Status>
              <InitCapacity>1000000</InitCapacity>
              <EndTime>2022-08-24T16:00:00Z</EndTime>
              <InstanceId>CDNFLOWBAG-cn-7pp2bihrb01ijf</InstanceId>
              <CommodityCode>dcdnpaybag</CommodityCode>
              <DisplayName>Resource plan for dynamic requests</DisplayName>
              <StartTime>2021-08-24T04:09:22Z</StartTime>
              <TemplateName>FPT_dcdnpaybag_deadlineAcc_1541404502</TemplateName>
              <CurrCapacity>1000000</CurrCapacity>
        </ResourcePackageInfo>
        <ResourcePackageInfo>
              <Status>closed</Status>
              <InitCapacity>107374182400</InitCapacity>
              <EndTime>2021-02-12T16:00:00Z</EndTime>
              <InstanceId>CDNFLOWBAG-cn-mp91irkf600q2d</InstanceId>
              <CommodityCode>dcdnpaybag</CommodityCode>
              <DisplayName>Outbound data transfer plan for mainland China</DisplayName>
              <StartTime>2020-02-12T07:31:08Z</StartTime>
              <TemplateName>FPT_dcdnpaybag_deadlineAcc_1541405199</TemplateName>
              <CurrCapacity>0</CurrCapacity>
        </ResourcePackageInfo>
        <ResourcePackageInfo>
              <Status>valid</Status>
              <InitCapacity>1000000</InitCapacity>
              <EndTime>2022-08-24T16:00:00Z</EndTime>
              <InstanceId>CDNFLOWBAG-cn-7pp2bihrb01ik9</InstanceId>
              <CommodityCode>dcdn_waf_bag</CommodityCode>
              <DisplayName>Resource plan for WAF requests</DisplayName>
              <StartTime>2021-08-24T04:09:22Z</StartTime>
              <TemplateName>FPT_dcdn_waf_bag_deadlineAcc_1612705404</TemplateName>
              <CurrCapacity>1000000</CurrCapacity>
        </ResourcePackageInfo>
  </ResourcePackageInfos>
</DescribeDcdnUserResourcePackageResponse>

JSON format

{
    "RequestId": "96ED3127-EC7A-57C5-AFA6-A689B24B2530",
    "ResourcePackageInfos": {
        "ResourcePackageInfo": [
            {
                "Status": "valid",
                "InitCapacity": "10000000",
                "EndTime": "2022-08-24T16:00:00Z",
                "InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ii0",
                "CommodityCode": "dcdnpaybag",
                "DisplayName": "Resource plan for static HTTPS requests",
                "StartTime": "2021-08-24T04:09:22Z",
                "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541151058",
                "CurrCapacity": "10000000"
            },
            {
                "Status": "valid",
                "InitCapacity": "1000000",
                "EndTime": "2021-08-31T16:00:00Z",
                "InstanceId": "CDNFLOWBAG-cn-z2q1t3xre0001x",
                "CommodityCode": "dcdnpaybag",
                "DisplayName": "Resource plan for dynamic requests",
                "StartTime": "2020-08-31T09:26:20Z",
                "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541404502",
                "CurrCapacity": "1000000"
            },
            {
                "Status": "valid",
                "InitCapacity": "1000000",
                "EndTime": "2022-08-24T16:00:00Z",
                "InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ijf",
                "CommodityCode": "dcdnpaybag",
                "DisplayName": "Resource plan for dynamic requests",
                "StartTime": "2021-08-24T04:09:22Z",
                "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541404502",
                "CurrCapacity": "1000000"
            },
            {
                "Status": "closed",
                "InitCapacity": "107374182400",
                "EndTime": "2021-02-12T16:00:00Z",
                "InstanceId": "CDNFLOWBAG-cn-mp91irkf600q2d",
                "CommodityCode": "dcdnpaybag",
                "DisplayName": "Outbound data transfer plan for mainland China",
                "StartTime": "2020-02-12T07:31:08Z",
                "TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541405199",
                "CurrCapacity": "0"
            },
            {
                "Status": "valid",
                "InitCapacity": "1000000",
                "EndTime": "2022-08-24T16:00:00Z",
                "InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ik9",
                "CommodityCode": "dcdn_waf_bag",
                "DisplayName": "Resource plan for WAF requests",
                "StartTime": "2021-08-24T04:09:22Z",
                "TemplateName": "FPT_dcdn_waf_bag_deadlineAcc_1612705404",
                "CurrCapacity": "1000000"
            }
        ]
    }
}

Error codes

For a list of error codes, visit the API Error Center.