更新时间:2024-01-04 gmt 08:00

新建workflow-凯发k8国际娱乐官网入口

功能介绍

创建workflow。可参考,创建工作流。

接口约束

调用方法

请参见。

uri

post /v2/{project_id}/workflows

表1 路径参数

参数

是否必选

参数类型

描述

project_id

string

用户项目id。获取方法请参见。

请求参数

表2 请求body参数

参数

是否必选

参数类型

描述

name

string

名称,1到64位只包含中英文,数字,空格,下划线(_)和中划线(-),并且以中英文开头

workflow_id

string

工作流id。创建工作流时后台自动生成。

created_at

string

创建时间

description

string

描述

steps

array of workflowstep objects

workflow包含的步骤定义。直接创建workflow时必填。

user_name

string

用户名

workspace_id

string

工作空间id

data_requirements

array of datarequirement objects

workflow需要的数据

data

array of data objects

workflow包含的数据

parameters

array of workflowparameter objects

workflow包含的参数

source_workflow_id

string

从该工作流进行复制。通过复制来创建workflow时必填。

gallery_subscription

workflowgallerysubscription object

来自市场订阅的workflow。通过gallery订阅来创建workflow时必填。

latest_execution

executionbrief object

最近一次执行概要信息

run_count

integer

已运行次数

param_ready

boolean

当前工作流的必选参数是否都已填完标志符

source

string

工作流来源,可选值为ai_gallery,表示工作流是从ai gallery导入的。

storages

array of workflowstorage objects

workflow包含的统一存储定义

labels

array of strings

给工作流打的标签

assets

array of workflowasset objects

工作流绑定的资产

sub_graphs

array of workflowsubgraph objects

工作流包含的子图

extend

map

计费工作流使用的拓展字段

policy

workflowpolicy object

工作流部分运行策略

with_subscription

boolean

工作流smn消息订阅开关,默认为false,表示关闭消息订阅开关。

smn_switch

boolean

smn开关

subscription_id

string

smn消息订阅id

exeml_template_id

string

自动学习模板id

last_modified_at

string

最近一次修改的时间

package

workflowservicepackege object

计费工作流订阅包信息

表3 workflowstep

参数

是否必选

参数类型

描述

name

string

工作流节点的名称,在一个dag中唯一,1到64位只包含中英文,数字,空格,下划线(_)和中划线(-),并且以中英文开头。

type

string

节点的类型,枚举值如下:

  • job 训练

  • labeling 标注

  • release_dataset 数据集发布

  • model 模型发布

  • service 服务部署

  • mrs_job mrs作业

  • dataset_import 数据集导入

  • create_dataset 创建数据集

inputs

array of jobinput objects

节点的输入项

outputs

array of joboutput objects

节点的输出项

created_at

string

创建时间

title

string

工作流节点标题

description

string

描述信息

properties

map

节点属性

depend_steps

array of strings

依赖的节点

conditions

array of stepcondition objects

节点执行条件

if_then_steps

array of strings

条件节点分支

else_then_steps

array of strings

条件节点另一分支

policy

workflowsteppolicy object

节点执行策略

表4 jobinput

参数

是否必选

参数类型

描述

name

string

输入项名称,支持1到64位只包含英文、数字、下划线(_)和中划线(-)的字符。

type

string

输入项类型。枚举值如下:

  • dataset:数据集

  • obs:obs

  • data_selector:数据选择

data

object

输入项数据

value

object

输入项的值

表5 joboutput

参数

是否必选

参数类型

描述

name

string

输出项名称

type

string

输出项类型。枚举值如下:

  • obs:obs

  • model:ai应用元模型

config

map

输出配置

表6 stepcondition

参数

是否必选

参数类型

描述

type

string

判断类型,例如==(等于)、!=(不等于)、>(大于)、>=(大于等于)、<(小于)、<=(小于等于)、in(包含)、or(或)。

left

object

取true时的分支

right

object

取false时的分支

表7 workflowsteppolicy

参数

是否必选

参数类型

描述

poll_interval_seconds

string

执行间隔

max_execution_minutes

string

最大执行时间

表8 datarequirement

参数

是否必选

参数类型

描述

name

string

数据的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

类型。枚举值如下:

  • dataset:数据集

  • obs:obs

  • swr:swr

  • model_list:ai应用列表

  • label_task:标注任务

  • service:在线服务

conditions

array of constraint objects

数据约束条件

value

map

数据的值

used_steps

array of strings

使用了这条数据的工作流节点

delay

boolean

延时参数标记

表9 constraint

参数

是否必选

参数类型

描述

attribute

string

属性,参数的某个字段值。

operator

string

操作,当前只支持equal操作。

value

object

取值。

表10 data

参数

是否必选

参数类型

描述

name

string

数据的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

数据的类型,可选值为dataset、obs、swr、model、label_task、service、image。

value

map

数据的值

used_steps

array of strings

使用数据的节点

表11 workflowparameter

参数

是否必选

参数类型

描述

name

string

配置参数的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

参数的类型,枚举值如下:

  • str 字符串

  • int 整形

  • bool 布尔类型

  • float 浮点型

description

string

描述

example

object

样例

delay

boolean

是否为延迟输入的参数

default

object

默认值

value

object

parameter的值

enum

array of objects

枚举项

used_steps

array of strings

使用这个参数的工作流节点

format

string

数据格式

constraint

map

限制条件

表12 workflowgallerysubscription

参数

是否必选

参数类型

描述

content_id

string

资产id

version_id

string

版本id

expired_at

string

超期时间

表13 executionbrief

参数

是否必选

参数类型

描述

execution_id

string

工作流执行id

created_at

string

创建时间

status

string

工作流状态

running_steps

array of strings

运行的节点

current_steps

array of strings

当前节点

duration

long

运行时长

表14 workflowstorage

参数

是否必选

参数类型

描述

name

string

名称。填写1-64位,只包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

类型,当前只支持obs。

path

string

统一存储的根路径,当前只支持obs路径。

表15 workflowasset

参数

是否必选

参数类型

描述

name

string

资产名称

type

string

资产类型,枚举如下:

  • algorithm 算法

  • algorithm2 新算法

  • model 模型算法

content_id

string

资产id,可在ai gallery中获取。

subscription_id

string

订阅id,可在ai gallery中获取。

expired_at

string

超期时间

表16 workflowsubgraph

参数

是否必选

参数类型

描述

name

string

子图名称

steps

array of strings

子图step成员

表17 workflowpolicy

参数

是否必选

参数类型

描述

use_scene

string

使用场景

scene_id

string

场景id

scenes

array of scene objects

场景

表18 scene

参数

是否必选

参数类型

描述

id

string

场景id

name

string

场景名称

steps

array of strings

节点列表

表19 workflowservicepackege

参数

是否必选

参数类型

描述

package_id

string

package的uuid

status

string

资源包状态

pool_id

string

资源池id

service_id

string

服务id

workflow_id

string

工作流id

order

workflowpoolorder object

订阅信息

consume_limit

long

订阅限制

current_consume

long

当前订阅

current_date

string

当前时间

limit_enable

boolean

限制标记

created_at

string

创建时间

表20 workflowpoolorder

参数

是否必选

参数类型

描述

id

string

订阅id

sku

skuinfo object

订阅计费信息

sku_count

string

订阅计数

表21 skuinfo

参数

是否必选

参数类型

描述

code

string

计费码

period

string

计费时期

queries_limit

long

查询次数

price

float

价格

响应参数

状态码: 201

表22 响应body参数

参数

参数类型

描述

name

string

名称,1到64位只包含中英文,数字,空格,下划线(_)和中划线(-),并且以中英文开头

workflow_id

string

工作流id。创建工作流时后台自动生成。

created_at

string

创建时间

description

string

描述

steps

array of workflowstep objects

workflow包含的步骤定义。直接创建workflow时必填。

user_name

string

用户名

workspace_id

string

工作空间id

data_requirements

array of datarequirement objects

workflow需要的数据

data

array of data objects

workflow包含的数据

parameters

array of workflowparameter objects

workflow包含的参数

source_workflow_id

string

从该工作流进行复制。通过复制来创建workflow时必填。

gallery_subscription

workflowgallerysubscription object

来自市场订阅的workflow。通过gallery订阅来创建workflow时必填。

latest_execution

executionbrief object

最近一次执行概要信息

run_count

integer

已运行次数

param_ready

boolean

当前工作流的必选参数是否都已填完标志符

source

string

工作流来源,可选值为ai_gallery,表示工作流是从ai gallery导入的。

storages

array of workflowstorage objects

workflow包含的统一存储定义

labels

array of strings

给工作流打的标签

assets

array of workflowasset objects

工作流绑定的资产

sub_graphs

array of workflowsubgraph objects

工作流包含的子图

extend

map

计费工作流使用的拓展字段

policy

workflowpolicy object

工作流部分运行策略

with_subscription

boolean

工作流smn消息订阅开关,默认为false,表示关闭消息订阅开关。

smn_switch

boolean

smn开关

subscription_id

string

smn消息订阅id

exeml_template_id

string

自动学习模板id

last_modified_at

string

最近一次修改的时间

package

workflowservicepackege object

计费工作流订阅包信息

表23 workflowstep

参数

参数类型

描述

name

string

工作流节点的名称,在一个dag中唯一,1到64位只包含中英文,数字,空格,下划线(_)和中划线(-),并且以中英文开头。

type

string

节点的类型,枚举值如下:

  • job 训练

  • labeling 标注

  • release_dataset 数据集发布

  • model 模型发布

  • service 服务部署

  • mrs_job mrs作业

  • dataset_import 数据集导入

  • create_dataset 创建数据集

inputs

array of jobinput objects

节点的输入项

outputs

array of joboutput objects

节点的输出项

created_at

string

创建时间

title

string

工作流节点标题

description

string

描述信息

properties

map

节点属性

depend_steps

array of strings

依赖的节点

conditions

array of stepcondition objects

节点执行条件

if_then_steps

array of strings

条件节点分支

else_then_steps

array of strings

条件节点另一分支

policy

workflowsteppolicy object

节点执行策略

表24 jobinput

参数

参数类型

描述

name

string

输入项名称,支持1到64位只包含英文、数字、下划线(_)和中划线(-)的字符。

type

string

输入项类型。枚举值如下:

  • dataset:数据集

  • obs:obs

  • data_selector:数据选择

data

object

输入项数据

value

object

输入项的值

表25 joboutput

参数

参数类型

描述

name

string

输出项名称

type

string

输出项类型。枚举值如下:

  • obs:obs

  • model:ai应用元模型

config

map

输出配置

表26 stepcondition

参数

参数类型

描述

type

string

判断类型,例如==(等于)、!=(不等于)、>(大于)、>=(大于等于)、<(小于)、<=(小于等于)、in(包含)、or(或)。

left

object

取true时的分支

right

object

取false时的分支

表27 workflowsteppolicy

参数

参数类型

描述

poll_interval_seconds

string

执行间隔

max_execution_minutes

string

最大执行时间

表28 datarequirement

参数

参数类型

描述

name

string

数据的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

类型。枚举值如下:

  • dataset:数据集

  • obs:obs

  • swr:swr

  • model_list:ai应用列表

  • label_task:标注任务

  • service:在线服务

conditions

array of constraint objects

数据约束条件

value

map

数据的值

used_steps

array of strings

使用了这条数据的工作流节点

delay

boolean

延时参数标记

表29 constraint

参数

参数类型

描述

attribute

string

属性,参数的某个字段值。

operator

string

操作,当前只支持equal操作。

value

object

取值。

表30 data

参数

参数类型

描述

name

string

数据的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

数据的类型,可选值为dataset、obs、swr、model、label_task、service、image。

value

map

数据的值

used_steps

array of strings

使用数据的节点

表31 workflowparameter

参数

参数类型

描述

name

string

配置参数的名称。填写1-64位,仅包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

参数的类型,枚举值如下:

  • str 字符串

  • int 整形

  • bool 布尔类型

  • float 浮点型

description

string

描述

example

object

样例

delay

boolean

是否为延迟输入的参数

default

object

默认值

value

object

parameter的值

enum

array of objects

枚举项

used_steps

array of strings

使用这个参数的工作流节点

format

string

数据格式

constraint

map

限制条件

表32 workflowgallerysubscription

参数

参数类型

描述

content_id

string

资产id

version_id

string

版本id

expired_at

string

超期时间

表33 executionbrief

参数

参数类型

描述

execution_id

string

工作流执行id

created_at

string

创建时间

status

string

工作流状态

running_steps

array of strings

运行的节点

current_steps

array of strings

当前节点

duration

long

运行时长

表34 workflowstorage

参数

参数类型

描述

name

string

名称。填写1-64位,只包含英文、数字、下划线(_)和中划线(-),并且以英文开头的名称。

type

string

类型,当前只支持obs。

path

string

统一存储的根路径,当前只支持obs路径。

表35 workflowasset

参数

参数类型

描述

name

string

资产名称

type

string

资产类型,枚举如下:

  • algorithm 算法

  • algorithm2 新算法

  • model 模型算法

content_id

string

资产id,可在ai gallery中获取。

subscription_id

string

订阅id,可在ai gallery中获取。

expired_at

string

超期时间

表36 workflowsubgraph

参数

参数类型

描述

name

string

子图名称

steps

array of strings

子图step成员

表37 workflowpolicy

参数

参数类型

描述

use_scene

string

使用场景

scene_id

string

场景id

scenes

array of scene objects

场景

表38 scene

参数

参数类型

描述

id

string

场景id

name

string

场景名称

steps

array of strings

节点列表

表39 workflowservicepackege

参数

参数类型

描述

package_id

string

package的uuid

status

string

资源包状态

pool_id

string

资源池id

service_id

string

服务id

workflow_id

string

工作流id

order

workflowpoolorder object

订阅信息

consume_limit

long

订阅限制

current_consume

long

当前订阅

current_date

string

当前时间

limit_enable

boolean

限制标记

created_at

string

创建时间

表40 workflowpoolorder

参数

参数类型

描述

id

string

订阅id

sku

skuinfo object

订阅计费信息

sku_count

string

订阅计数

表41 skuinfo

参数

参数类型

描述

code

string

计费码

period

string

计费时期

queries_limit

long

查询次数

price

float

价格

请求示例

创建workflow工作流。设置工作流名称为“graph-test-has-condition-step”。

post https://{endpoint}/v2/{project_id}/workflows
{
  "name" : "graph-test-has-condition-step",
  "description" : "",
  "workspace_id" : "0",
  "steps" : [ {
    "name" : "condition_step_test",
    "title" : "condition_step_test",
    "description" : "",
    "type" : "condition",
    "conditions" : [ {
      "type" : "==",
      "left" : "$ref/parameters/is_true",
      "right" : true
    } ],
    "if_then_steps" : [ "training_job1" ],
    "else_then_steps" : [ "training_job2" ],
    "policy" : { }
  }, {
    "name" : "training_job1",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/a2ff296da618452daa8243399f06db8e"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config1"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-b0b9fa4c06254b2ebb0e48ba1f7a916c"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "condition_step_test" ],
    "policy" : { }
  }, {
    "name" : "training_job2",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/f78e46676a454ccdacb9907f589f8d67"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config2"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-4a4317eb49ad4370bd087e6b726d84cf"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "condition_step_test" ],
    "policy" : { }
  }, {
    "name" : "training_job3",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/dee65054c96b4bf3b7ac98c0709f9ae0"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config3"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-3039303b3ae14f3e9eed416ba6361b1f"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "training_job1", "training_job2" ],
    "policy" : { }
  } ],
  "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" ]
  } ]
}

响应示例

状态码: 201

ok

{
  "name" : "graph-test-has-condition-step",
  "description" : "",
  "workspace_id" : "0",
  "steps" : [ {
    "name" : "condition_step_test",
    "title" : "condition_step_test",
    "description" : "",
    "type" : "condition",
    "conditions" : [ {
      "type" : "==",
      "left" : "$ref/parameters/is_true",
      "right" : true
    } ],
    "if_then_steps" : [ "training_job1" ],
    "else_then_steps" : [ "training_job2" ],
    "policy" : { }
  }, {
    "name" : "training_job1",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/a2ff296da618452daa8243399f06db8e"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config1"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-b0b9fa4c06254b2ebb0e48ba1f7a916c"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "condition_step_test" ],
    "policy" : { }
  }, {
    "name" : "training_job2",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/f78e46676a454ccdacb9907f589f8d67"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config2"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-4a4317eb49ad4370bd087e6b726d84cf"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "condition_step_test" ],
    "policy" : { }
  }, {
    "name" : "training_job3",
    "title" : "labeling",
    "description" : "",
    "type" : "job",
    "inputs" : [ {
      "name" : "data_url",
      "type" : "obs",
      "data" : "$ref/data/dee65054c96b4bf3b7ac98c0709f9ae0"
    } ],
    "outputs" : [ {
      "name" : "train_url",
      "type" : "obs",
      "config" : {
        "obs_url" : "/test-lh/test-metrics/"
      }
    }, {
      "name" : "service-link",
      "type" : "service_content",
      "config" : {
        "config_file" : "$ref/parameters/service_config3"
      }
    } ],
    "properties" : {
      "algorithm" : {
        "id" : "21ef85a8-5e40-4618-95ee-aa48ec224b43",
        "parameters" : [ ]
      },
      "kind" : "job",
      "metadata" : {
        "name" : "workflow-3039303b3ae14f3e9eed416ba6361b1f"
      },
      "spec" : {
        "resource" : {
          "flavor_id" : "$ref/parameters/train_spec",
          "node_count" : 1,
          "policy" : "regular"
        }
      }
    },
    "depend_steps" : [ "training_job1", "training_job2" ],
    "policy" : { }
  } ],
  "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 specificaiton",
    "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" ]
  } ]
}

状态码

状态码

描述

201

ok

错误码

请参见。

分享:
网站地图