函数工作流 FunctionGraph-创建依赖包版本:请求示例

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

请求示例

  • 创建依赖包版本使用zip方式。

    POST https://{Endpoint}/v2/{project_id}/fgs/dependencies/version{  "depend_file" : "xxx",  "depend_type" : "zip",  "runtime" : "Node.js8.10",  "name" : "xxx"}
  • 创建依赖包使用obs方式。

    POST https://{Endpoint}/v2/{project_id}/fgs/dependencies/version{  "depend_link" : "https://{bucket}.{obs_endpoint}/depends/****/4f4ae4eb-dcdc-4dd3-bffd-79600bd972b3.zip",  "depend_type" : "obs",  "runtime" : "Node.js8.10",  "name" : "xxx"}
support.huaweicloud.com/api-functiongraph/functiongraph_06_0152.html