Mengkueri informasi tentang semua paket sumber daya Anda, seperti jumlah total, jumlah sisa, waktu efektif, waktu kedaluwarsa, dan status.
Deskripsi operasi
The call frequency for a single user is limited to 30 calls per second.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnUserResourcePackage |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
string |
No |
Status paket sumber daya. Nilai default: valid. Nilai valid:
|
valid |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.