检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
patterns: - '!tmp/**' - '!.git/**' 产物 要完全控制打包过程,您可以指定自己的产物ZIP文件。 如果配置了此功能,Serverless将不会压缩您的服务,因此将忽略patterns,可以选择使用产物或模式进行部署。 如果您的开
命令是进行函数版本操作的命令;主要包括别名的查看、发布、删除等功能。 命令解析 version list命令 参数解析 操作案例 version publish命令 参数解析 操作案例 remove命令 命令解析 当执行命令version -h/version --help时,可以获取帮助文档。
deploy 命令是对函数资源进行部署的命令,即将本地在 Yaml文件 中声明的资源部署到线上。 命令解析 参数解析 操作案例 注意事项 deploy function命令 参数解析 操作案例 deploy trigger命令 操作案例 父主题: 部署deploy
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
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
名为“fss_examples_php7.3.zip”,如图1所示。 图1 工程打包 创建FunctionGraph函数,上传程序包 登录FunctionGraph,创建PHP函数,上传fss_examples_php7.3.zip文件。如 图2所示。 图2 上传程序包 函数执行
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
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 package com.huaweicloud.sdk.test; import com.huaweicloud
Cangjie 1.0 函数支持多种代码导入方式 支持在线编辑代码、OBS文件引入、上传ZIP包、上传JAR包等方式。不同运行时支持的代码上传方式如表2所示。 表2 代码上传方式说明 运行时 在线编辑 上传ZIP文件 上传JAR包 从OBS上传文件 Node.js 支持 支持 不支持 支持 Python
examples_python2.7.zip”,如图1所示。 图1 打包 创建FunctionGraph函数,上传程序包。 登录FunctionGraph控制台,创建Python函数,上传fss_examples_python2.7.zip文件。如图2所示。 图2 上传程序包 函
优化“与其他服务的关系”章节。 2022-05-30 VSCode插件更新。 2022-04-30 支持创建快速函数流 VPC配置情况下支持域名解析 2022-03-30 函数工作流全新改版。 2022-02-25 支持Python 3.9和Node.js 14.18。 2021-12-09
zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2", "accept-encoding": "gzip, deflate, br", "x-forwarded-port": "443", "x-forwarded-for":
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
name String 应用名称 status String 应用状态 last_modified_time Long 最后修改时间 description String 应用描述 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码
ListVersionAliasResult 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
执行shell命令 # 构建函数部署包 cd helloworld zip helloworld_deploy.zip cam.yaml # 构建函数代码压缩包 cd code zip -rp helloworld.zip * 图1 执行shell命令 上传函数压缩包到OBS 图2 上传函数压缩包到OBS
响应Body参数 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
模板id name String 模板名称 runtime String 模板执行运行时 category String 模板使用场景 description String 模板描述 image String 模板镜像文件(base64编码) 状态码: 400 表6 响应Body参数 参数
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted