View resource plans
After you purchase a DCDN resource plan, you can view its details, such as total capacity, remaining capacity, and expiration time.
Prerequisites
You have purchased a DCDN resource plan. For more information, see Resource plan overview.
Procedure
Method 1: Use the console
-
Log on to the DCDN console.
In the left-side navigation pane, choose .
On the Resource Plans page, use the Active Resource Plans, Fully Used Resource Plans, and Expired Resource Plans tabs at the top to filter resource plans by status. The table on each tab displays the following information: Instance Name/ID, Resource Plan Name, Total, Remaining, Effective At, and Expired At. You can also directly purchase resource plans.

Optional:You can click Buy Resource Package to purchase resource plans based on your business requirements.
Method 2: Use Alibaba Cloud CLI
Install and configure the Alibaba Cloud CLI. For more information, see Alibaba Cloud CLI documentation.
Run the following command to query DCDN resource plan usage:
aliyun dcdn DescribeDcdnUserResourcePackageThe response contains the
ResourcePackageInfosfield with the following information for each resource plan:InstanceId,CommodityCode,DisplayName,Status, andCurrCapacity.
RAM Permission Configuration
To call the DescribeDcdnUserResourcePackage API operation, a Resource Access Management (RAM) user must be granted the dcdn:DescribeDcdnUserResourcePackage permission. If the permission is not granted, the call returns a Forbidden.RAM error.
You can use either of the following methods to grant the required permission:
Least privilege policy: Create a custom access policy with the following content and attach it to the RAM user:
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": "dcdn:DescribeDcdnUserResourcePackage", "Resource": "*" } ] }System policy: Grant the
AliyunDCDNFullAccesssystem policy to the RAM user.
Troubleshooting
Symptom: When you run the aliyun dcdn DescribeDcdnUserResourcePackage command, the following error is returned:
ErrorCode: Forbidden.RAM
Message: You are not authorized to operate this resourceCause: The RAM user does not have the dcdn:DescribeDcdnUserResourcePackage permission.
Solution: Grant the RAM user the dcdn:DescribeDcdnUserResourcePackage permission. For more information, see the RAM Permission Configuration section above.
FAQ
Related documents
See Resource plan deduction rules to learn about deduction time, order, and other related rules.
After you configure an alert threshold for a resource plan, the system sends SMS or email notifications to the account contact when the remaining capacity falls below the specified threshold. To learn how to configure alerts, see Configure resource plan alerts.
To query information about your DCDN resource plans, use this API operation: DescribeDcdnUserResourcePackage - Query resource plan information