AI开发平台MODELARTS-新建Workflow Execution:响应示例

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

响应示例

状态码: 201

OK

{
  "created_at" : "2022-11-01T21:36:04.264564372+08:00",
  "name" : "execution-065",
  "execution_id" : "46c682b6-0310-4774-9c8e-62d7fb7e0b55",
  "description" : "",
  "workspace_id" : "0",
  "workflow_id" : "f1642618-43eb-4ab1-a0b1-9cc584182c60",
  "workflow_name" : "workflow_model_service_no_modify_xiahou_copy",
  "steps_execution" : null,
  "duration" : 0,
  "data_requirements" : [ {
    "name" : "model_input",
    "type" : "obs",
    "conditions" : [ {
      "attribute" : "object_type",
      "operator" : "equal",
      "value" : "directory"
    } ],
    "value" : {
      "object_type" : [ "DIRECTORY" ],
      "obs_url" : "/test-crq/train_output/"
    },
    "used_steps" : [ "model_step" ]
  }, {
    "name" : "service_model",
    "type" : "model_list",
    "delay" : true,
    "conditions" : [ {
      "attribute" : "model_name",
      "operator" : "equal",
      "value" : "lh-xh"
    } ],
    "used_steps" : [ "service_step" ]
  } ],
  "parameters" : [ {
    "name" : "schedule_d5sm",
    "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" ]
  } ],
  "policies" : { }
}
support.huaweicloud.com/api-modelarts/CreateWorkflowExecution.html