Operation description
- After you run a command, it may not succeed. You can call this operation to query the execution result.
- You can query the information about execution in the last two weeks. A maximum of 100,000 lines of execution information can be retained.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. | cn-hangzhou |
InvokeId | string | No | The ID of the execution. | t-hz0jdfwd9f**** |
CommandType | string | No | The type of the command. Valid values:
| RunPowerShellScript |
InvokeStatus | string | No | The overall execution status of a command. The overall execution status is determined by the execution status of the command on one or more cloud desktops. Valid values:
Default value: Running. | Finished |
DesktopId | string | No | The ID of the cloud desktop. If you specify a cloud desktop, all the execution records of Cloud Assistant commands on the cloud desktop are queried. | ecd-7w78ozhjcwa3u**** |
IncludeOutput | boolean | No | Specifies whether to return command outputs in the response. Valid values:
Default value: false. | false |
ContentEncoding | string | No | The encoding method of the command content and output. Valid values:
Default value: Base64. | PlainText |
MaxResults | integer | No | The number of entries per page.
| 10 |
NextToken | string | No | The query token. Set the value to the NextToken value that is returned from the last call to the previous DescribeInvocations operation. | AAAAAV3MpHK1AP0pfERHZN5pu6nmB7qrRFJ8vmttjxPL**** |
EndUserId | string | No | The ID of the end user. | test1 |
DesktopIds | array | No | The IDs of the cloud desktops. | |
string | No | The ID of the cloud desktop. | ecd-84mztzatmipf2**** |
Response parameters
Examples
Sample success responses
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"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-05-18 | The response structure of the API has changed | see changesets | ||||
| ||||||
2022-10-18 | The request parameters of the API has changed | see changesets | ||||
| ||||||
2022-09-29 | The request parameters of the API has changed | see changesets | ||||
|