Queries the specifications, quantity, and other details of benefits associated with a channel to support benefit distribution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeBenefits |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ChannelId |
string |
Yes |
The ID of the channel for the benefit query. |
wuying**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
25BB1CE-6B47-12DC-9FE6-03726**** |
| Benefits |
array<object> |
The list of benefits. |
|
|
array<object> |
The list of benefit objects. |
||
| BenefitId |
string |
The benefit ID. Each benefit specification has a unique benefit ID. |
6a79**** |
| BenefitType |
string |
The type of the benefit. Valid values:
|
Desktop.TimePack |
| TotalAmount |
integer |
The total quantity of the benefit. |
100 |
| AvailableAmount |
integer |
The available quantity of the benefit. This number decreases as benefits are distributed. |
80 |
| SpecInfo |
object |
The details of the benefit specification. |
|
| CpuCore |
integer |
The number of vCPU cores. |
4 |
| AvailableHours |
integer |
The available duration, in hours. |
800 |
| MemorySize |
integer |
The memory size, in MB. |
8192 |
Examples
Success response
JSON format
{
"RequestId": "25BB1CE-6B47-12DC-9FE6-03726****",
"Benefits": [
{
"BenefitId": "6a79****",
"BenefitType": "Desktop.TimePack",
"TotalAmount": 100,
"AvailableAmount": 80,
"SpecInfo": {
"CpuCore": 4,
"AvailableHours": 800,
"MemorySize": 8192
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.