Queries the resource plan information of the current user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:DescribeUserResourcePackage |
none |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID of the resource plan. |
****_ResourcePack-cn-**** |
| Status |
string |
No |
The status of the resource plan. Default value: valid. Valid values:
Valid values:
|
valid |
| SortField |
string |
No |
The sorting field. Valid values:
Valid values:
|
startTime |
| SortRule |
string |
No |
The sorting rule. Default value: desc. Valid values:
Valid values:
|
desc |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. |
20 |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| TotalCount |
integer |
The total number of records. |
68 |
| PageSize |
integer |
The number of entries per page. |
20 |
| PageNumber |
integer |
The current page number. |
1 |
| ResourcePackageInfos |
array<object> |
The array of ResourcePackageInfo objects. |
|
|
object |
The array of ResourcePackageInfo objects. |
||
| EndTime |
string |
The expiration time in UTC. Format: YYYY-MM-DDTHH:mm:ssZ. |
2024-12-02T15:59:59Z |
| Status |
string |
The status of the resource plan. |
valid |
| DisplayName |
string |
The name of the resource plan. |
Data Transfer Plan in Asia Pacific 1 |
| StartTime |
string |
The effective period in UTC. Format: YYYY-MM-DDTHH:mm:ssZ. |
2024-03-20T16:00:00Z |
| CommodityCode |
string |
The commodity code of the resource plan. |
dcdnpaybag |
| InstanceId |
string |
The instance ID of the resource plan. |
****_ResourcePack-cn-**** |
| TemplateName |
string |
The template name. |
FPT_dcdnpaybag_deadlineAcc_**** |
| CurrCapacity |
string |
The current remaining capacity of the instance.
|
53661095687 |
| InitCapacity |
string |
The total capacity of the resource plan.
|
107374182400 |
| Region |
string |
The region. |
CN |
| CurrCapacityShowValue |
string |
The display value of the current remaining capacity of the instance. |
49.975789 |
| CurrCapacityShowUnit |
string |
The display unit of the current remaining capacity of the instance. |
GB |
| CurrCapacityBaseUnit |
string |
The base unit of the current 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": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE\n",
"TotalCount": 68,
"PageSize": 20,
"PageNumber": 1,
"ResourcePackageInfos": [
{
"EndTime": "2024-12-02T15:59:59Z",
"Status": "valid",
"DisplayName": "Data Transfer Plan in Asia Pacific 1\n",
"StartTime": "2024-03-20T16:00:00Z",
"CommodityCode": "dcdnpaybag",
"InstanceId": "****_ResourcePack-cn-****",
"TemplateName": "FPT_dcdnpaybag_deadlineAcc_****",
"CurrCapacity": "53661095687",
"InitCapacity": "107374182400",
"Region": "CN",
"CurrCapacityShowValue": "49.975789",
"CurrCapacityShowUnit": "GB",
"CurrCapacityBaseUnit": "Byte",
"InitCapacityShowValue": "100.000000\n",
"InitCapacityShowUnit": "GB",
"InitCapacityBaseUnit": "Byte"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.