函数工作流 FunctionGraph-创建函数流:请求示例

时间:2023-11-01 16:25:44

请求示例

创建函数流。

POST /v2/{project_id}/fgs/workflows{  "name" : "workflow_test",  "start" : "test",  "functions" : [ {    "name" : "test",    "operation" : "urn:fss:{regin}:c53626012ba84727b938ca8bf03108ef:test:latest"  } ],  "constants" : { },  "states" : [ {    "id" : "test",    "name" : "test",    "type" : "Operation",    "end" : false,    "transition" : "end",    "actions" : [ {      "function_ref" : {        "ref_name" : "test",        "arguments" : {          "execution_name" : "$.test"        }      }    } ]  }, {    "id" : "end",    "name" : "end",    "type" : "End",    "end" : true,    "transition" : "",    "state_data_filter" : {      "input" : "",      "output" : ""    },    "actions" : [ ],    "action_mode" : ""  } ],  "retries" : [ {    "name" : "test"  } ]}
support.huaweicloud.com/api-functiongraph/functiongraph_06_1004.html