AI开发平台MODELARTS-修改Workflow工作流:响应示例

时间:2024-10-24 09:20:55

响应示例

状态码: 200

OK

{
  "created_at" : "2021-12-14T11:34:24.541809+08:00",
  "workflow_id" : "a8f31367-3534-4644-a2fe-75d187341ae7",
  "name" : "demo_workflow",
  "description" : "this is a demo workflow",
  "user_name" : "ei_modelarts_z00424192_01",
  "workspace_id" : "0",
  "steps" : [ {
    "created_at" : "2021-12-14T11:34:24.545451+08:00",
    "name" : "model_step",
    "title" : "model release",
    "description" : "",
    "type" : "model",
    "inputs" : [ {
      "name" : "model_input",
      "type" : "obs",
      "data" : "$ref/data_requirements/model_input"
    } ],
    "outputs" : [ {
      "name" : "model_output",
      "type" : "model"
    } ],
    "properties" : {
      "model_name" : "model-name-xh",
      "model_type" : "TensorFlow"
    },
    "policy" : { }
  }, {
    "created_at" : "2021-12-14T11:34:24.549514+08:00",
    "name" : "service_step",
    "title" : "service install",
    "description" : "",
    "type" : "service",
    "inputs" : [ {
      "name" : "service_input",
      "type" : "model_list",
      "data" : "$ref/data_requirements/service_model"
    } ],
    "outputs" : [ {
      "name" : "service_output",
      "type" : "service"
    } ],
    "properties" : {
      "infer_type" : "real-time",
      "schedule" : "$ref/parameters/schedule_d0MY"
    },
    "depend_steps" : [ "model_step" ],
    "policy" : { }
  } ],
  "data_requirements" : [ {
    "name" : "model_input",
    "type" : "obs",
    "conditions" : [ {
      "attribute" : "object_type",
      "operator" : "equal",
      "value" : "directory"
    } ],
    "value" : {
      "object_type" : [ "DIRECTORY" ],
      "obs_url" : "/cwf-test/csv/"
    },
    "used_steps" : [ "model_step" ]
  }, {
    "name" : "service_model",
    "type" : "model_list",
    "delay" : true,
    "conditions" : [ {
      "attribute" : "model_name",
      "operator" : "equal",
      "value" : "model-name-xh"
    } ],
    "used_steps" : [ "service_step" ]
  } ],
  "parameters" : [ {
    "name" : "schedule_1zHw",
    "type" : "int",
    "format" : "schedule",
    "description" : "Set how long the deployed service will stop in hours, where -1 means the service will always run",
    "delay" : true,
    "used_steps" : [ "service_step" ]
  } ],
  "policy" : { },
  "last_modified_at" : "2022-05-20T14:16:40.373445+08:00"
}
support.huaweicloud.com/api-modelarts/UpdateWorkflow.html