You can call the DescribeDcdnUserResourcePackage operation to query information about all your resource plans, such as the total amount, remaining amount, effective time, expiration time, and status.
Operation description
The call frequency for a single user is limited to 30 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnUserResourcePackage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
string |
No |
The status of the resource plan. The default value is valid. Valid values:
Valid values:
|
valid |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
96ED3127-EC7A-57C5-AFA6-A689B24B2530 |
| ResourcePackageInfos |
object |
||
| ResourcePackageInfo |
array<object> |
The list of resource plans. |
|
|
object |
An array of ResourcePackageInfo objects. |
||
| EndTime |
string |
The expiration time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard. |
2022-08-24T16:00:00Z |
| Status |
string |
The status of the resource plan. Valid values:
|
valid |
| DisplayName |
string |
The name of the resource plan. |
Downstream Data Package (Australia Sydney) |
| StartTime |
string |
The effective time. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC and complies with the ISO 8601 standard. |
2021-08-24T04:09:22Z |
| CommodityCode |
string |
The commodity code of the resource plan. |
dcdnpaybag |
| InstanceId |
string |
The ID of the resource plan. |
CDNFLOWBAG-cn-7pp2bihrb01ii0 |
| TemplateName |
string |
The name of the template. |
FPT_dcdnpaybag_deadlineAcc_1541151058 |
| CurrCapacity |
string |
The remaining amount of the resource plan.
|
10000000 |
| InitCapacity |
string |
The total amount of the resource plan.
|
10000000 |
| Region |
string |
The region. |
CN |
| CurrCapacityShowValue |
string |
The display value of the remaining capacity of the instance. |
49.975789 |
| CurrCapacityShowUnit |
string |
The display unit of the remaining capacity of the instance. |
GB |
| CurrCapacityBaseUnit |
string |
The base unit of the remaining capacity of the instance. |
Byte |
| InitCapacityShowValue |
string |
The display value of the total capacity of the resource plan. |
100.000000 |
| InitCapacityShowUnit |
string |
The display unit of the total capacity of the resource plan. |
GB |
| InitCapacityBaseUnit |
string |
The base unit of the total capacity of the resource plan. |
Byte |
Examples
Success response
JSON format
{
"RequestId": "96ED3127-EC7A-57C5-AFA6-A689B24B2530",
"ResourcePackageInfos": {
"ResourcePackageInfo": [
{
"EndTime": "2022-08-24T16:00:00Z",
"Status": "valid",
"DisplayName": "Downstream Data Package (Australia Sydney)",
"StartTime": "2021-08-24T04:09:22Z",
"CommodityCode": "dcdnpaybag",
"InstanceId": "CDNFLOWBAG-cn-7pp2bihrb01ii0",
"TemplateName": "FPT_dcdnpaybag_deadlineAcc_1541151058",
"CurrCapacity": "10000000",
"InitCapacity": "10000000",
"Region": "CN",
"CurrCapacityShowValue": "49.975789\n",
"CurrCapacityShowUnit": "GB\n",
"CurrCapacityBaseUnit": "Byte",
"InitCapacityShowValue": "100.000000\n",
"InitCapacityShowUnit": "GB\n",
"InitCapacityBaseUnit": "Byte"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | DcdnServiceNotFound | The DCDN service is not activated. | DCDN is not activated. Activate DCDN and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.