查询运维助手命令的执行列表和状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
        
            调试
        
    
授权信息
| 
                                 操作  | 
                            
                                 访问级别  | 
                            
                                 资源类型  | 
                            
                                 条件关键字  | 
                            
                                 关联操作  | 
                        
| 
                                 eflo:DescribeInvocations  | 
                            
                                 get  | 
                            
                                     *Node 
  | 
                            无 | 无 | 
请求参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             必填  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| InvokeId | 
                             string  | 
                        
                             是  | 
                        
                             命令执行 ID。  | 
                        
                             t-cd03crwys0lrls0  | 
                    
| NodeId | 
                             string  | 
                        
                             否  | 
                        
                             实例 ID。  | 
                        
                             e01-cn-zvp2tgykr08  | 
                    
| IncludeOutput | 
                             boolean  | 
                        
                             否  | 
                        
                             是否在结果中返回命令运行的输出信息。 
  | 
                        
                             true  | 
                    
| ContentEncoding | 
                             string  | 
                        
                             否  | 
                        
                             设置返回数据中 
  | 
                        
                             PlainText  | 
                    
返回参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| 
                             object  | 
                        |||
| RequestId | 
                             string  | 
                        
                             请求 ID。  | 
                        
                             4FD06DF0-9167-5C6F-A145-F30CA4A15D54  | 
                    
| Invocations | 
                             object  | 
                        
                             脚本执行记录对象。  | 
                        |
| Invocation | 
                             array<object>  | 
                        
                             文件下发记录。  | 
                        |
| 
                             object  | 
                        |||
| CreationTime | 
                             string  | 
                        
                             任务的创建时间。  | 
                        
                             2020-01-19T09:15:46Z  | 
                    
| Frequency | 
                             string  | 
                        
                             定时执行命令的执行时间。  | 
                        
                             0 */20 * * * *  | 
                    
| InvocationStatus | 
                             string  | 
                        
                             命令执行的总执行状态,总执行状态取决于本次调用的全部实例的共同执行状态,取值: 
 说明 
 返回参数中的  | 
                        
                             Success  | 
                    
| RepeatMode | 
                             string  | 
                        
                             命令执行的方式。取值: 
  | 
                        
                             Once  | 
                    
| InvokeStatus | 
                             string  | 
                        
                             命令执行的总执行状态。总执行状态取决于创建执行中的一台或多台实例的共同执行状态。取值: 
  | 
                        
                             Running  | 
                    
| Parameters | 
                             string  | 
                        
                             命令中的自定义参数。  | 
                        
                             {}  | 
                    
| CommandContent | 
                             string  | 
                        
                             命令内容。 
  | 
                        
                             cnBtIC1xYSB8IGdyZXAgdnNm****  | 
                    
| CommandName | 
                             string  | 
                        
                             命令名称。  | 
                        
                             CommandTestName  | 
                    
| CommandDescription | 
                             string  | 
                        
                             命令描述。  | 
                        
                             testDescription  | 
                    
| InvokeId | 
                             string  | 
                        
                             命令执行 ID。  | 
                        
                             t-ind3k9ytvvduoe8  | 
                    
| Username | 
                             string  | 
                        
                             执行命令的用户名称。  | 
                        
                             root  | 
                    
| WorkingDir | 
                             string  | 
                        
                             命令在实例中的运行目录。  | 
                        
                             /home  | 
                    
| Timeout | 
                             integer  | 
                        
                             执行命令的超时时间,单位:秒。  | 
                        
                             60  | 
                    
| InvokeNodes | 
                             object  | 
                        
                             命令执行记录。  | 
                        |
| InvokeNode | 
                             array<object>  | 
                        
                             节点命令执行记录。  | 
                        |
| 
                             object  | 
                        |||
| CreationTime | 
                             string  | 
                        
                             命令执行的开始时间。  | 
                        
                             2023-02-06T07:12:50Z  | 
                    
| UpdateTime | 
                             string  | 
                        
                             更新时间。  | 
                        
                             2023-02-06T07:12:50Z  | 
                    
| FinishTime | 
                             string  | 
                        
                             结束完成时间。  | 
                        
                             2023-02-06T07:12:50Z  | 
                    
| InvocationStatus | 
                             string  | 
                        
                             单台实例的命令进度状态,取值: 
  | 
                        
                             Pending  | 
                    
| Repeats | 
                             integer  | 
                        
                             命令在该实例上执行的次数。 
  | 
                        
                             0  | 
                    
| NodeId | 
                             string  | 
                        
                             节点 ID。  | 
                        
                             e01-cn-lbj36wkp70b  | 
                    
| Output | 
                             string  | 
                        
                             命令的输出信息。 
  | 
                        
                             OutPutTestmsg  | 
                    
| Dropped | 
                             integer  | 
                        
                             Output 字段中文字长度超出 24 KB 后,截断丢弃的文字长度。  | 
                        
                             0  | 
                    
| StopTime | 
                             string  | 
                        
                             若调用了 StopInvocation 以停止命令执行,表示调用的时间。  | 
                        
                             2019-12-20T06:15:55Z  | 
                    
| ExitCode | 
                             integer  | 
                        
                             命令进程的退出代码。取值: 
  | 
                        
                             0  | 
                    
| StartTime | 
                             string  | 
                        
                             开始时间。  | 
                        
                             2019-12-20T06:15:55Z  | 
                    
| ErrorInfo | 
                             string  | 
                        
                             命令的下发失败或执行失败原因的详情,取值: 
  | 
                        
                             the specified node does not exists  | 
                    
| Timed | 
                             string  | 
                        
                             查询的命令是否在将来会自动执行。取值: 
  | 
                        
                             false  | 
                    
| ErrorCode | 
                             string  | 
                        
                             文件下发的失败原因代码。取值: 
  | 
                        
                             NodeNotExists  | 
                    
| NodeInvokeStatus | 
                             string  | 
                        
                             单台实例的命令进度状态。  | 
                        
                             Finished  | 
                    
示例
正常返回示例
JSON格式
{
  "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"
            }
          ]
        }
      }
    ]
  }
}
            错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。