医疗智能体 EIHEALTH-更新流程:请求示例

时间:2024-04-03 15:30:25

请求示例

更新流程,更新流程的cpu资源为1C,内存资源为1G。

https://eihealth.cn-north-4.myhuaweicloud.com/v1/{project_id}/eihealth-projects/{eihealth_project_id}/workflows

{
  "name" : "demo-workflow",
  "version" : "1.0.0",
  "summary" : "summary",
  "description" : "description",
  "labels" : [ "labelA", "labelB" ],
  "timeout" : 1440,
  "output_dir" : "/workflow",
  "tasks" : [ {
    "task_name" : "app1-1",
    "app_id" : "baabcb56-5bb6-11eb-8a0d-fa163e3ddba1",
    "display_name" : "步骤1",
    "output_dir" : "/task",
    "resources" : {
      "cpu_type" : "X86",
      "cpu" : "1C",
      "memory" : "1G",
      "gpu_type" : "GPU",
      "gpu" : 0
    },
    "location" : {
      "x" : 100,
      "y" : 100
    },
    "inputs" : [ {
      "name" : "dir-parameter",
      "values" : [ "/test" ]
    } ]
  } ]
}
support.huaweicloud.com/api-eihealth/UpdateWorkflow.html