Queries the execution history and status of Cloud 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 ID of the command execution. |
t-cd03crwys0lrls0 |
| NodeId |
string |
No |
The ID of the instance. |
e01-cn-zvp2tgykr08 |
| IncludeOutput |
boolean |
No |
Specifies whether to include the command output in the response.
|
true |
| ContentEncoding |
string |
No |
The encoding mode of the
|
PlainText |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
4FD06DF0-9167-5C6F-A145-F30CA4A15D54 |
| Invocations |
object |
The object that contains the script execution records. |
|
| Invocation |
array<object> |
The command execution records. |
|
|
object |
|||
| CreationTime |
string |
The time when the task was created. |
2020-01-19T09:15:46Z |
| Frequency |
string |
The cron expression for the scheduled command. |
0 */20 * * * * |
| InvocationStatus |
string |
The overall execution status of the command. This status is determined by the execution status on all involved instances. Valid values:
Note
The |
Success |
| RepeatMode |
string |
The execution mode of the command. Valid values:
|
Once |
| InvokeStatus |
string |
The overall execution status of the command. This status is determined by the execution status on one or more instances. Valid values:
|
Running |
| Parameters |
string |
The custom parameters in the command. |
{} |
| CommandContent |
string |
The content of the command.
|
cnBtIC1xYSB8IGdyZXAgdnNm**** |
| CommandName |
string |
The name of the command. |
CommandTestName |
| CommandDescription |
string |
The description of the command. |
testDescription |
| InvokeId |
string |
The ID of the command execution. |
t-ind3k9ytvvduoe8 |
| Username |
string |
The name of the user who runs the command. |
root |
| WorkingDir |
string |
The directory where the command is run 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 records on the nodes. |
|
|
object |
|||
| CreationTime |
string |
The start time of the command execution. |
2023-02-06T07:12:50Z |
| UpdateTime |
string |
The time when the record was updated. |
2023-02-06T07:12:50Z |
| FinishTime |
string |
The time when the execution was complete. |
2023-02-06T07:12:50Z |
| InvocationStatus |
string |
The execution status of the command on a single instance. Valid values:
|
Pending |
| Repeats |
integer |
The number of times the command has been executed on the instance.
|
0 |
| NodeId |
string |
The ID of the node. |
e01-cn-lbj36wkp70b |
| Output |
string |
The output of the command.
|
OutPutTestmsg |
| Dropped |
integer |
The number of characters that are truncated and discarded because the `Output` value exceeds 24 KB in size. |
0 |
| StopTime |
string |
The time when `StopInvocation` was called to stop the command execution. |
2019-12-20T06:15:55Z |
| ExitCode |
integer |
The exit code of the command process. Valid values:
|
0 |
| StartTime |
string |
The start time. |
2019-12-20T06:15:55Z |
| ErrorInfo |
string |
The details about the cause of a command sending or execution failure. Valid values:
|
the specified node does not exists |
| Timed |
string |
Indicates whether the command will be automatically run in the future. Valid values:
|
false |
| ErrorCode |
string |
The error code for a file sending failure. Valid values:
|
NodeNotExists |
| NodeInvokeStatus |
string |
The execution status of the command 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.