应用运维管理 AOM-获取任务执行历史:响应示例

时间:2023-11-24 09:53:30

响应示例

状态码: 200

请求响应成功,返回指定任务的执行历史。

[ {
  "approve_user_name_list" : [ ],
  "begin_time" : 1600000000,
  "create_by" : "xxx",
  "end_time" : 1600000000,
  "execution_id" : "xxxx",
  "execution_result_list" : [ {
    "begin_time" : 16000000,
    "end_time" : 160000000,
    "function_execution_id" : "xxxxx",
    "node_id" : "delete-workload-pod",
    "output" : {
      "fail" : [ ],
      "in_execution" : [ ],
      "success" : [ {
        "app" : "xxxxxx",
        "code" : "0",
        "matchLabels" : "{\"app\":\"xxxxx\",\"version\":\"xxxx\"}",
        "current_project" : true,
        "log" : "Restart Success.",
        "replicas" : 1,
        "cmdb_work_load_id" : "xxxxxxx",
        "type" : "manual",
        "availableReplicas" : 0,
        "execute_time" : "35505",
        "creationTimestamp" : " ",
        "name" : "xxxxxx",
        "namespace" : "default",
        "cceWorkloadCluster" : "xxxxxx",
        "id" : "xxxxx",
        "cceWorkloadType" : "deployments"
      } ],
      "not_performed" : [ ]
    },
    "status" : "success"
  } ],
  "project_id" : "xxxxxxx",
  "status" : "success",
  "workflowEditTime" : 0,
  "workflow_id" : "xxxxxxx"
} ]

状态码: 401

Unauthorized。在客户端提供认证信息后,返回该状态码,表明服务端指出客户端所提供的认证信息不正确或非法。

{
  "error_code" : " AOM .31009004",
  "error_message" : "auth failed.",
  "http_code" : "401"
}

状态码: 500

InternalServerError 表明服务端能被请求访问到,但是不能理解用户的请求。

{
  "error_code" : "AOM.31001405",
  "error_msg" : "execution internal server error.",
  "http_code" : 500
}
support.huaweicloud.com/api-aom/ListWorkflowExecutions.html