函数工作流 FUNCTIONGRAPH-创建依赖包(待废弃):请求示例

时间:2025-05-28 09:46:57

请求示例

  • 创建依赖包使用zip方式。
    POST https://{Endpoint}/v2/{project_id}/fgs/dependencies
    
    {
      "depend_file" : "xxx",
      "depend_type" : "zip",
      "runtime" : "Node.js8.10",
      "name" : "xxx"
    }
  • 创建依赖包使用obs方式。
    POST https://{Endpoint}/v2/{project_id}/fgs/dependencies
    
    {
      "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_0128.html