医疗智能体 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}/apps/{app_id}

{
  "name" : "demo-app",
  "version" : "1.0.0",
  "summary" : "summary",
  "description" : "description",
  "labels" : [ "labelA", "labelB" ],
  "image" : "gwj-test-01/busybox:latest",
  "commands" : [ "echo eihealth;" ],
  "resources" : {
    "cpu_type" : "X86",
    "cpu" : "1C",
    "memory" : "1G",
    "gpu_type" : "GPU",
    "gpu" : 0
  },
  "inputs" : [ {
    "name" : "dir-parameter",
    "description" : "parameter description",
    "required" : true,
    "concurrent" : "vars_iter",
    "type" : "DIRECTORY",
    "pattern" : "*.fastq",
    "values" : [ "/test" ]
  } ],
  "outputs" : [ {
    "name" : "dir-parameter",
    "description" : "parameter description",
    "required" : true,
    "type" : "DIRECTORY",
    "pattern" : "*.fastq",
    "values" : [ "/test" ]
  } ],
  "node_labels" : [ "health.node" ],
  "icon" : "data:image/png;base64,xxxxx"
}
support.huaweicloud.com/api-eihealth/UpdateApp.html