Queries the execution list and status of Cloud Assistant scripts.
Operation description
After you run a command, it does not necessarily succeed or produce the expected results. Check the actual execution results based on the response values returned by this operation.
You can query execution information from the last two weeks. A maximum of 100,000 execution records are retained.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeInvocations |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the regions supported by Elastic Desktop Service. |
cn-hangzhou |
| InvokeId |
string |
No |
The execution ID of the script process. Obtained from the response of RunCommand. |
t-hz0jdfwd9f**** |
| CommandType |
string |
No |
The command type of the O&M script. Valid values:
|
RunPowerShellScript |
| InvokeStatus |
string |
No |
The overall execution status of the script. The overall execution status depends on the combined execution status of one or more cloud desktops in the execution. Valid values:
|
Finished |
| DesktopId |
string |
No |
The cloud desktop ID. If you specify a cloud desktop, all script execution records of the cloud desktop are queried. |
ecd-7w78ozhjcwa3u**** |
| IncludeOutput |
boolean |
No |
Specifies whether to return the output information of the script execution in the results. Valid values:
|
false |
| ContentEncoding |
string |
No |
The encoding method of the returned data. Valid values:
|
PlainText |
| MaxResults |
integer |
No |
The number of entries per page for a paged query.
|
10 |
| NextToken |
string |
No |
The pagination token. Set this parameter to the NextToken value returned in the previous API call. |
AAAAAV3MpHK1AP0pfERHZN5pu6nmB7qrRFJ8vmttjxPL**** |
| EndUserId |
string |
No |
The user ID. |
alice |
| DesktopIds |
array |
No |
The list of cloud desktop IDs. Note
The |
|
|
string |
No |
The cloud desktop ID. |
ecd-84mztzatmipf2**** |
|
| IncludeInvokeDesktops |
boolean |
No |
Specifies whether to return the execution results of all cloud desktops when the remote command is executed on multiple cloud desktops. Valid values:
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| NextToken |
string |
The pagination token returned in this call. |
AAAAAV3MpHK1AP0pfERHZN5pu6nmB7qrRFJ8vmttjxPL**** |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Invocations |
array<object> |
The array of script execution records. |
|
|
array<object> |
The script execution record object. |
||
| InvokeId |
string |
The execution ID. |
t-hz0jdfwd9f**** |
| CommandContent |
string |
The script content, transmitted in Base64 encoding. |
cnBtIC1xYSB8IGdyZXAgdnNm**** |
| CommandType |
string |
The script type. |
RunPowerShellScript |
| InvocationStatus |
string |
The overall execution status of the script. The overall execution status depends on the combined execution status of all cloud desktops in this call. Valid values:
|
Pending |
| CreationTime |
string |
The creation time of the task. |
2020-12-19T09:15:46Z |
| EndUserId |
string |
The end user ID. |
User1 |
| InvokeDesktops |
array<object> |
The list of target cloud desktops for execution. |
|
|
object |
The target cloud desktop for execution. |
||
| InvocationStatus |
string |
The script execution status on a single cloud desktop. |
Success |
| Output |
string |
The output of the script process.
|
OutPutTestmsg |
| CreationTime |
string |
The creation time of the script process. |
2020-12-20T06:15:54Z |
| UpdateTime |
string |
The update time of the task status. |
2020-12-25T06:15:56Z |
| Repeats |
integer |
The number of times the command was run on the cloud desktop. |
0 |
| DesktopId |
string |
The cloud desktop ID. |
ecd-7w78ozhjcwa3u**** |
| Dropped |
integer |
The length of the truncated and discarded text after the text length in the Output field exceeds 24 KB. |
0 |
| StartTime |
string |
The time when the script process started running on the cloud desktop. |
2020-12-20T06:15:55Z |
| StopTime |
string |
The time when execution was stopped, if StopInvocation was called. |
2020-12-25T09:15:47Z |
| FinishTime |
string |
The end time of the script process. |
2020-12-20T06:15:56Z |
| ExitCode |
integer |
The exit code of the script process. |
0 |
| ErrorCode |
string |
The error code for the command delivery failure or execution failure. Valid values:
|
InstanceNotExists |
| ErrorInfo |
string |
The detailed information about the command delivery failure or execution failure. Valid values:
|
The specified instance does not exist. |
| DesktopName |
string |
The cloud desktop name. |
demo1234 |
| JvsAgentId |
string |
jvs-7xjos2l**** |
|
| InvokeDesktopCount |
integer |
The total number of cloud desktops on which the script was executed. |
1 |
| InvokeDesktopSucceedCount |
integer |
The total number of cloud desktops on which the script was executed successfully. |
1 |
| DesktopScenario |
string |
The cloud desktop scenario. Valid values:
|
Classic |
Examples
Success response
JSON format
{
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6nmB7qrRFJ8vmttjxPL****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Invocations": [
{
"InvokeId": "t-hz0jdfwd9f****",
"CommandContent": "cnBtIC1xYSB8IGdyZXAgdnNm****",
"CommandType": "RunPowerShellScript",
"InvocationStatus": "Pending",
"CreationTime": "2020-12-19T09:15:46Z",
"EndUserId": "User1",
"InvokeDesktops": [
{
"InvocationStatus": "Success",
"Output": "OutPutTestmsg",
"CreationTime": "2020-12-20T06:15:54Z",
"UpdateTime": "2020-12-25T06:15:56Z",
"Repeats": 0,
"DesktopId": "ecd-7w78ozhjcwa3u****",
"Dropped": 0,
"StartTime": "2020-12-20T06:15:55Z",
"StopTime": "2020-12-25T09:15:47Z",
"FinishTime": "2020-12-20T06:15:56Z",
"ExitCode": 0,
"ErrorCode": "InstanceNotExists",
"ErrorInfo": "The specified instance does not exist.",
"DesktopName": "demo1234",
"JvsAgentId": "jvs-7xjos2l****"
}
],
"InvokeDesktopCount": 1,
"InvokeDesktopSucceedCount": 1,
"DesktopScenario": "Classic"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.