AI开发平台MODELARTS-获取Workflow列表:响应示例

时间:2024-05-31 10:18:56

响应示例

状态码: 200

OK

{
  "total" : 1,
  "count" : 1,
  "items" : [ {
    "created_at" : "2022-09-09T11:28:29.639658+08:00",
    "workflow_id" : "6b596c75-fe1f-440b-be83-fe5e240133c4",
    "name" : "graph-test-has-condition-step",
    "description" : "",
    "user_name" : "zuoping",
    "workspace_id" : "0",
    "labels" : [ "subgraph" ],
    "data" : [ {
      "name" : "a2ff296da618452daa8243399f06db8e",
      "type" : "obs",
      "value" : {
        "obs_url" : "/test-lh/test-metrics/"
      },
      "used_steps" : [ "training_job1" ]
    }, {
      "name" : "f78e46676a454ccdacb9907f589f8d67",
      "type" : "obs",
      "value" : {
        "obs_url" : "/test-lh/test-metrics/"
      },
      "used_steps" : [ "training_job2" ]
    }, {
      "name" : "dee65054c96b4bf3b7ac98c0709f9ae0",
      "type" : "obs",
      "value" : {
        "obs_url" : "/test-lh/test-metrics/"
      },
      "used_steps" : [ "training_job3" ]
    } ],
    "parameters" : [ {
      "name" : "is_true",
      "type" : "bool",
      "delay" : true,
      "value" : true,
      "used_steps" : [ "condition_step_test" ]
    }, {
      "name" : "train_spec",
      "type" : "str",
      "format" : "flavor",
      "description" : "training specification",
      "default" : "modelarts.vm.cpu.8u",
      "used_steps" : [ "training_job1", "training_job2", "training_job3" ]
    }, {
      "name" : "service_config1",
      "type" : "str",
      "default" : "/test-lh/test-metrics/metrics.json",
      "used_steps" : [ "training_job1" ]
    }, {
      "name" : "service_config2",
      "type" : "str",
      "default" : "/test-lh/test-metrics/metrics.json",
      "used_steps" : [ "training_job2" ]
    }, {
      "name" : "service_config3",
      "type" : "str",
      "default" : "/test-lh/test-metrics/metrics.json",
      "used_steps" : [ "training_job3" ]
    } ],
    "sub_graphs" : [ {
      "name" : "stage_A",
      "steps" : [ "training_job1", "training_job2" ]
    } ],
    "policy" : { },
    "last_modified_at" : "2022-10-28T16:49:13.056726+08:00",
    "source_workflow_id" : "05427e9d-42ac-4816-bd45-360c1bfd780b",
    "latest_execution" : {
      "execution_id" : "43e317e2-34b0-4348-9c1b-08d3083512e1",
      "created_at" : "2022-10-28T16:49:03.894771+08:00",
      "status" : "completed",
      "duration" : 209
    },
    "run_count" : 2,
    "param_ready" : true
  } ]
}
support.huaweicloud.com/api-modelarts/ListWorkflows.html