j9九游会登录/ 函数工作流 functiongraph/ api参考/ / / 修改指定函数流实例的元数据 - updategraphinstance
更新时间:2025-10-31 gmt 08:00

修改指定函数流实例的元数据 -j9九游会登录

功能介绍

修改指定函数流实例的元数据

调用方法

请参见。

授权信息

账号具备所有api的调用权限,如果使用账号下的iam用户调用当前api,该iam用户需具备调用api所需的权限,具体权限要求请参见权限和授权项。

uri

put /v1/{project_id}/ffs/graphs/{workflow_id}

表1 路径参数

参数

是否必选

参数类型

描述

project_id

是

string

参数解释:

租户项目 id,获取方式请参见获取项目id。

约束限制:

不涉及。

取值范围:

只能由英文字母、数字组成,且长度为32个字符

默认取值:

不涉及。

workflow_id

是

string

参数解释:

函数工作流id。

约束限制:

不涉及。

取值范围:

[1, 512]

默认取值:

不涉及。

请求参数

表2 请求body参数

参数

是否必选

参数类型

描述

id

否

string

流程定义id

name

否

string

名字

description

否

string

描述

nodes

否

array of graphnode objects

nodes

edges

否

array of graphedge objects

edges

constants

否

string

constants

label

否

string

label

enterprise_project_id

否

string

enterprise_project_id

merge_params

否

boolean

merge_params

mode

否

string

mode

enable_stream_response

否

boolean

是否返回流数据

express_config

否

expressconfig object

参数解释:

functiongraph工作流快速工作流配置项。

约束限制:

快速函数流模式配置,当mode为express时需要设置。

取值范围:

不涉及。

默认取值:

不涉及。

表3 graphnode

参数

是否必选

参数类型

描述

id

否

string

id

name

否

string

名称

category

否

string

种类

description

否

string

描述

parent_node

否

string

parent_node

shape

否

shape object

shape

position_x

否

integer

position_x

position_y

否

integer

position_y

execution_id

否

string

流程节点执行id

incoming_edges

否

array of strings

incoming_edges

outgoing_edges

否

array of strings

outgoing_edges

表4 graphedge

参数

是否必选

参数类型

描述

id

否

string

id

from

否

string

from

to

否

string

to

label

否

string

label

shape

否

shape object

shape

表5 shape

参数

是否必选

参数类型

描述

geometry

否

string

geometry

style

否

string

style

表6 expressconfig

参数

是否必选

参数类型

描述

log_level

否

string

参数解释:

日志级别

取值范围:

  • all:全部日志

  • error:错误日志

  • none:不记录日志

响应参数

状态码:200

表7 响应body参数

参数

参数类型

描述

id

string

参数解释:

工作流id

取值范围:

不涉及。

workflow_urn

string

参数解释:

函数工作流urn,格式为:

urn:fss:::workflow:::

注意:

package当前只支持default

version当前只支持latest

取值范围:

不涉及。

name

string

参数解释:

工作流名称

取值范围:

不涉及。

description

string

参数解释:

工作流描述

取值范围:

不涉及。

created_time

string

参数解释:

工作流创建时间

取值范围:

格式:yyyy-mm-ddthh:mm:ssz,utc时间

updated_time

string

参数解释:

工作流修改时间

取值范围:

格式:yyyy-mm-ddthh:mm:ssz,utc时间

created_by

string

参数解释:

工作流创建者

取值范围:

不涉及。

enable_stream_response

boolean

参数解释:

工作流是否支持stream返回

取值范围:

不涉及。

状态码:400

表8 响应body参数

参数

参数类型

描述

error_code

string

错误码

error_msg

string

错误描述

request_id

string

请求id

状态码:500

表9 响应body参数

参数

参数类型

描述

error_code

string

错误码

error_msg

string

错误描述

request_id

string

请求id

请求示例

无

响应示例

无

状态码

状态码

描述

200

success

400

bad request

500

internal server error

错误码

请参见错误码。

相关文档

网站地图