Queries the execution result of a single command.
Operation description
After you run a command, the command is not necessarily executed successfully or produces the expected results. Call this operation to view the actual execution result based on the actual output.
You can query execution information from the last two weeks. A maximum of 100,000 entries of execution information can be retained.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribeInvocationResult |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the simple application server instance. |
ace0706b2ac4454d984295a94213**** |
| InvokeId |
string |
Yes |
The command execution ID. You can call the DescribeInvocations operation to query the InvokeId. |
t-bj02prjhw1n**** |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F**** |
| InvocationResult |
object |
The command execution result. |
|
| StartTime |
string |
The time when the command started to be executed on the instance. The time is displayed in UTC (Z) in the YYYY-MM-DDThh:mm:ssZ format. |
2022-07-11T06:37:16Z |
| FinishedTime |
string |
The time when the command finished being executed on the instance. The time is displayed in UTC (Z) in the YYYY-MM-DDThh:mm:ssZ format. |
2022-07-11T06:37:17Z |
| InvocationStatus |
string |
The execution status of the command on the instance. Valid values:
|
Success |
| ExitCode |
integer |
The exit code of the command.
|
0 |
| ErrorInfo |
string |
The details of the command delivery failure or execution failure. Valid values:
|
the specified instance does not exists |
| ErrorCode |
string |
The error code for the command delivery failure or execution failure. Valid values:
|
InstanceNotExists |
| InvokeId |
string |
The command execution ID. |
t-bj02prjje65**** |
| InvokeRecordStatus |
string |
The command execution status. Valid values:
|
Finished |
| InvokeUser |
string |
The username used to execute the command on the simple application server. |
root |
| Output |
string |
The output of the command execution. |
YWRtaW4K |
| InstanceId |
string |
The instance ID of the simple application server instance. |
ace0706b2ac4454d984295a94213**** |
Examples
Success response
JSON format
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****",
"InvocationResult": {
"StartTime": "2022-07-11T06:37:16Z",
"FinishedTime": "2022-07-11T06:37:17Z",
"InvocationStatus": "Success",
"ExitCode": 0,
"ErrorInfo": "the specified instance does not exists",
"ErrorCode": "InstanceNotExists",
"InvokeId": "t-bj02prjje65****",
"InvokeRecordStatus": "Finished",
"InvokeUser": "root",
"Output": "YWRtaW4K",
"InstanceId": "ace0706b2ac4454d984295a94213****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.