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

时间:2023-11-08 17:29:36

请求示例

创建名为xxx的python2.7函数,内存大小为128MB,超时时间3s。

POST https://{Endpoint}/v2/{project_id}/fgs/functions

{
  "func_name" : "xxx",
  "package" : "xxx",
  "runtime" : "Python2.7",
  "handler" : "index.py",
  "memory_size" : 128,
  "code_type" : "inline",
  "timeout" : 3,
  "func_code" : {
    "file" : "xxxxx",
    "link" : ""
  }
}
support.huaweicloud.com/api-functiongraph/functiongraph_06_0108.html