检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
最后修改时间 stack_resources StackResource object 资源栈 status String 应用状态 stack_name String 资源栈名称 stack_id String 资源栈id repo_name String 存储库名称 description
Long 应用程序总数 表5 ListFunctionApplicationResult 参数 参数类型 描述 id String 应用id name String 应用名称 status String 应用状态 last_modified_time Long 最后修改时间 description
图2 打包文件 创建函数并上传上一步的zip包。 执行函数,函数执行结果分为三部分,分别为函数返回(由callback返回)、执行摘要、日志输出(由Console.WriteLine()方法输出)。 执行结果 执行结果由3部分组成:函数返回、执行摘要和日志。
zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。
Content-Type 是 String 消息体的类型(格式) 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 name String 模板名称 description String 模板描述 runtime String 模板执行运行时 category
description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
函数执行过程为:用户上传fss_examples_php7.3.zip保存在OBS中,触发函数后,解压缩zip文件,通过index匹配到FunctionGraph函数所在文件,通过handler匹配到index.php文件中定义的FunctionGraph函数,找到程序执行入口,执行函数
9iQ2dYUxYuRbGJ2Ab0D7GFzRarQXFZt7tJCCeKPm8XZInGi3QgBpRhEOBcVoptUdCsS6KNQ+Mfbqko4xIhVyoGCaHh4eD/WT0GUzg2UCa7Z3pj4RLngX28Ik3jnYzyHJqmkx3cH7pjL253B54UjjfzDcYWhoCsMOVI6YP55+89exuG5vnbv+Sd3HIp539G15gIP1
然后,将go-http-demo和bootstrap打包为xxx.zip。
zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。
description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
遥测扩展示例:Telemetry.zip 父主题: 概述
description 否 String 别名描述信息。
直接上传函数代码:直接上传本地开发完成的ZIP文件或JAR文件,适用于代码包不超过40MB的场景使用。 从OBS上传函数代码:通过输入OBS桶地址,上传OBS桶中的ZIP文件或JAR文件,适用于代码包不超过300MB的场景使用。
count Long 应用程序模板总数 表5 ListAppTemplatesResult 参数 参数类型 描述 id String 模板id name String 模板名称 runtime String 模板执行运行时 category String 模板使用场景 description
是 String 消息体的类型(格式) 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 id String 模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description
函数执行过程为:用户上传fss_examples_python2.7.zip保存在OBS中,触发函数后,解压缩zip文件,通过index匹配到FunctionGraph函数所在文件,通过handler匹配到index.py文件中定义的FunctionGraph函数,找到程序执行入口
zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。
) redis_client = None def create_redis_client(context): logger = context.getLogger() redis_address = context.getUserData("redis_ip_address
It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure