检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
com/zy-linn/examples/tree/v3/legacy/huawei-nodejs 本示例将从GitHub下载huawei-nodejs服务的.zip文件,在当前工作目录下创建一个名为huawei-nodejs的新目录,并将文件解压到该目录下。 使用新服务名称从GitHub URL安装服务
Framework的开源CLI。 如果已经具备了这些前提条件,则可以跳过部署示例服务。 安装Node.js和NPM 安装Node.js和NPM,下载地址请参考下载说明。 最后,您应该能够从命令行中运行node -v,并获得以下结果: $ node -v vx.x.x 同时,您还能够从命令行中运行npm
最多只能创建一个遥测扩展,遥测的端口限制和扩展的端口限制一致,127.0.0.1:8081 ~ 127.0.0.1:8090 。 遥测扩展示例:Telemetry.zip 父主题: 概述
patterns: - '!tmp/**' - '!.git/**' 产物 要完全控制打包过程,您可以指定自己的产物ZIP文件。 如果配置了此功能,Serverless将不会压缩您的服务,因此将忽略patterns,可以选择使用产物或模式进行部署。 如果您的开
--region cn-north-4 --function-name fgs-deploy-test --target ./s.yml Tips for next step ====================== * Deploy Function: s deploy -t
名为“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
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
Cangjie 1.0 函数支持多种代码导入方式 支持在线编辑代码、OBS文件引入、上传ZIP包、上传JAR包等方式。不同运行时支持的代码上传方式如表2所示。 表2 代码上传方式说明 运行时 在线编辑 上传ZIP文件 上传JAR包 从OBS上传文件 Node.js 支持 支持 不支持 支持 Python
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":
examples_python2.7.zip”,如图1所示。 图1 打包 创建FunctionGraph函数,上传程序包。 登录FunctionGraph控制台,创建Python函数,上传fss_examples_python2.7.zip文件。如图2所示。 图2 上传程序包 函
执行shell命令 # 构建函数部署包 cd helloworld zip helloworld_deploy.zip cam.yaml # 构建函数代码压缩包 cd code zip -rp helloworld.zip * 图1 执行shell命令 上传函数压缩包到OBS 图2 上传函数压缩包到OBS
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
ListVersionAliasResult 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
name String 应用名称 status String 应用状态 last_modified_time Long 最后修改时间 description String 应用描述 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码
响应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
参数 是否必选 参数类型 描述 name 是 String 别名名称。 version 是 String 别名对应的版本名称。 description 否 String 别名描述信息。 additional_version_weights 否 Map<String,Integer>