函数工作流 FUNCTIONGRAPH-创建函数流:请求示例
时间:2025-05-28 09:46:57
请求示例
创建名为workflow_test,开始节点的名称为test的函数流。
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