DescribeInvocations
Queries the execution list and status of O&M Assistant commands.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:DescribeInvocations |
get |
*Node
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InvokeId |
string |
Yes |
The command execution ID. |
t-cd03crwys0lrls0 |
| NodeId |
string |
No |
The instance ID. |
e01-cn-zvp2tgykr08 |
| IncludeOutput |
boolean |
No |
Specifies whether to return the command output in the results.
|
true |
| ContentEncoding |
string |
No |
The encoding method for the CommandContent and Output fields in the response. Valid values:
|
PlainText |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4FD06DF0-9167-5C6F-A145-F30CA4A15D54 |
| Invocations |
object |
The script execution records. |
|
| Invocation |
array<object> |
The file delivery record. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the task was created. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2020-01-19T09:15:46Z |
| Frequency |
string |
The execution time of the scheduled command. |
0 */20 * * * * |
| InvocationStatus |
string |
The overall execution status of the command. The overall execution status depends on the common execution status across all instances in this invocation. Valid values:
Note
The InvokeStatus parameter in the response has a similar meaning, but we recommend that you check this parameter instead. |
Success |
| RepeatMode |
string |
The execution mode of the command. Valid values:
|
Once |
| InvokeStatus |
string |
The overall execution status of the command. The overall execution status depends on the common execution status of one or more instances in the invocation. Valid values:
|
Running |
| Parameters |
string |
The custom parameters in the command. |
{} |
| CommandContent |
string |
The command content.
|
cnBtIC1xYSB8IGdyZXAgdnNm**** |
| CommandName |
string |
The command name. |
CommandTestName |
| CommandDescription |
string |
The command description. |
testDescription |
| InvokeId |
string |
The command execution ID. |
t-ind3k9ytvvduoe8 |
| Username |
string |
The username used to execute the command. |
root |
| WorkingDir |
string |
The working directory of the command on the instance. |
/home |
| Timeout |
integer |
The timeout period for the command execution. Unit: seconds. |
60 |
| InvokeNodes |
object |
The command execution records. |
|
| InvokeNode |
array<object> |
The command execution record on a node. |
|
|
object |
|||
| CreationTime |
string |
The start time of the command execution. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2023-02-06T07:12:50Z |
| UpdateTime |
string |
The update time. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2023-02-06T07:12:50Z |
| FinishTime |
string |
The completion time. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2023-02-06T07:12:50Z |
| InvocationStatus |
string |
The command execution status on a single instance. Valid values:
|
Pending |
| Repeats |
integer |
The number of times the command was executed on the instance.
|
0 |
| NodeId |
string |
The node ID. |
e01-cn-lbj36wkp70b |
| Output |
string |
The command output.
|
OutPutTestmsg |
| Dropped |
integer |
The length of the truncated and discarded text after the text length in the Output field exceeds 24 KB. |
0 |
| StopTime |
string |
The time when StopInvocation was called to stop the command execution. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2019-12-20T06:15:55Z |
| ExitCode |
integer |
The exit code of the command process. Valid values:
|
0 |
| StartTime |
string |
The start time. The time is displayed in ISO 8601 format. Z in the example indicates UTC. |
2019-12-20T06:15:55Z |
| ErrorInfo |
string |
The details of the command delivery failure or execution failure. Valid values:
|
the specified node does not exists |
| Timed |
string |
Indicates whether the queried command will be automatically executed in the future. Valid values:
|
false |
| ErrorCode |
string |
The error code for the file delivery failure. Valid values:
|
NodeNotExists |
| NodeInvokeStatus |
string |
The command execution status on a single instance. |
Finished |
Examples
Success response
JSON format
{
"RequestId": "4FD06DF0-9167-5C6F-A145-F30CA4A15D54",
"Invocations": {
"Invocation": [
{
"CreationTime": "2020-01-19T09:15:46Z",
"Frequency": "0 */20 * * * *",
"InvocationStatus": "Success",
"RepeatMode": "Once",
"InvokeStatus": "Running",
"Parameters": "{}",
"CommandContent": "cnBtIC1xYSB8IGdyZXAgdnNm****",
"CommandName": "CommandTestName",
"CommandDescription": "testDescription",
"InvokeId": "t-ind3k9ytvvduoe8",
"Username": "root",
"WorkingDir": "/home",
"Timeout": 60,
"InvokeNodes": {
"InvokeNode": [
{
"CreationTime": "2023-02-06T07:12:50Z",
"UpdateTime": "2023-02-06T07:12:50Z",
"FinishTime": "2023-02-06T07:12:50Z",
"InvocationStatus": "Pending",
"Repeats": 0,
"NodeId": "e01-cn-lbj36wkp70b",
"Output": "OutPutTestmsg",
"Dropped": 0,
"StopTime": "2019-12-20T06:15:55Z\t\n",
"ExitCode": 0,
"StartTime": "2019-12-20T06:15:55Z",
"ErrorInfo": "the specified node does not exists",
"Timed": "false",
"ErrorCode": " NodeNotExists",
"NodeInvokeStatus": "Finished"
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.