检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
别名以及触发器。 当执行命令remove function -h/remove function --help时,可以获取帮助文档。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
--help时,可以获取帮助文档。 当前命令还支持部分全局参数(例如-a/--access, --debug等),详情可参考Serverless Devs 全局参数。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
get命令,是获取服务指定别名详情的命令。 当执行命令alias get -h/alias get --help时,可以获取帮助文档。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
obs jar Custom-Image-Swr code_url String 当code_type为obs时,该值为函数代码包在OBS上的地址,code_type为其他值时,该字段为空。 code_filename String 函数的文件名,当code_type为jar/zip
当前命令还支持部分全局参数(例如-a/--access, --debug等),详情可参考 Serverless Devs 全局参数。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
trigger命令,是删除指定触发器的命令。 当执行命令remove trigger -h/remove trigger --help时,可以获取帮助文档。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
list命令,是进列举别名列表的命令。 当执行命令alias list -h/alias list --help时,可以获取帮助文档。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
响应Body参数 参数 参数类型 描述 endpoints Array of strings Ip列表 address String 域名地址 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String
上传的文件大小限制为40M,如超过40M,请通过OBS上传。 depend_link 否 String depend_type为obs类型时,依赖包在obs的存储地址。 depend_type 是 String 导入类型,目前支持obs和zip。 runtime 是 String FunctionGraph函数的执行环境
函数代码来源于SWR自定义镜像。 枚举值: inline zip obs jar Custom-Image-Swr code_url String 函数代码包在OBS上的地址。 code_filename String 函数的文件名。 code_size Long 函数大小,单位:字节。 user_data String
参数类型 描述 id String 依赖包版本ID。 owner String 依赖包拥有者。 link String 依赖包在obs的存储地址。 runtime String FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3
obs jar Custom-Image-Swr code_url String 当code_type为obs时,该值为函数代码包在OBS上的地址,code_type为其他值时,该字段为空。 code_filename String 函数的文件名,当code_type为jar/zip
publish命令,是对别名进行发布和更新的命令。 当执行命令alias publish -h/alias publish --help时,可以获取帮助文档。 参数解析 表1 参数说明 参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义 region - 选填 必填 地区 function-name
String 依赖包版本ID owner String 依赖包拥有者,public标识为公共依赖包 link String 依赖包在obs的存储地址 runtime String FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3
String 依赖包ID owner String 依赖包拥有者,public标识为公共依赖包 link String 依赖包在obs的存储地址 runtime String FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3
枚举值: inline zip obs jar code_url 否 String 当code_type为obs时,该值为函数代码包在OBS上的地址,code_type为其他值时,该字段为空。 code_filename 否 String 函数的文件名,当code_type为jar/z
obs jar Custom-Image-Swr code_url String 当code_type为obs时,该值为函数代码包在OBS上的地址,code_type为其他值时,该字段为空。 code_filename String 函数的文件名,当code_type为jar/zip
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 package com.huaweicloud.sdk.test; import
bodyStream.end(body); bodyStream.pipe(busboy); } 配置函数依赖 制作依赖包。代码中选择busboy库解析上传的文件,需要生成Node.js14.18版本对应的依赖包busboy.zip。如果您使用Node.js语言其他版本,请制作对应版本的依赖包,具体请参考制作依赖包。
obs jar Custom-Image-Swr code_url String 当code_type为obs时,该值为函数代码包在OBS上的地址,code_type为其他值时,该字段为空。 code_filename String 函数的文件名,当code_type为jar/zip