Queries the execution list and status of Cloud Assistant scripts.
Operation description
After you run a command, the command is not guaranteed to succeed or produce the expected results. Check the actual execution results based on the response of 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. 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 is determined by the combined execution status of one or more cloud desktops in the invocation. Valid values:
|
Finished |
| DesktopId |
string |
No |
The cloud desktop ID. If you specify a cloud desktop, all script execution records for that cloud desktop are queried. |
ecd-7w78ozhjcwa3u**** |
| IncludeOutput |
boolean |
No |
Specifies whether to return the output 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 DesktopId parameter will be deprecated. Use this parameter to pass the list of cloud desktop IDs. |
|
|
string |
No |
The cloud desktop ID. |
ecd-84mztzatmipf2**** |
|
| IncludeInvokeDesktops |
boolean |
No |
Specifies whether to return the execution results of all cloud desktops when a 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 is determined by the combined execution status of all cloud desktops in this invocation. Valid values:
|
Pending |
| CreationTime |
string |
The time when the task was created. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
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 time when the script process was created. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
2020-12-20T06:15:54Z |
| UpdateTime |
string |
The time when the task status was last updated. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
2020-12-25T06:15:56Z |
| Repeats |
integer |
The number of times the command was executed 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. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
2020-12-20T06:15:55Z |
| StopTime |
string |
The time when the execution was stopped, if StopInvocation was called. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
2020-12-25T09:15:47Z |
| FinishTime |
string |
The time when the script process ended. The time follows the ISO 8601 standard in UTC: yyyy-MM-ddTHH:mm:ssZ. |
2020-12-20T06:15:56Z |
| ExitCode |
integer |
The exit code of the script process. |
0 |
| ErrorCode |
string |
The error code that indicates the reason for a command delivery failure or execution failure. Valid values:
|
InstanceNotExists |
| ErrorInfo |
string |
The detailed information about the reason for a command delivery failure or execution failure. Valid values:
|
The specified instance does not exist. |
| DesktopName |
string |
The cloud desktop name. |
demo1234 |
| JvsAgentId |
string |
jvs agent id。 |
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.