检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
提供的示例允许您使用Express框架轻松构建无服务器Web应用程序/服务和RESTful API 。 1.0.1 request 简化http调用,支持HTTPS并默认遵循重定向 2.88.0 Python Runtime集成的非标准库 表3 Python Runtime集成的非标准库 模块 功能
error_code String 错误码 error_msg String 错误信息 请求示例 更新函数最大实例数为300。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/config-max-instance
error_code String 错误码 error_msg String 错误信息 请求示例 查询指定函数的版本别名信息。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 发布函数版本。 POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/versions
码生成的自定义日志。 扩展日志:FunctionGraph扩展代码生成的自定义日志。 如何在扩展中使用OpenTelemetry API 注册OpenTelemetry API 处理遥测 父主题: 遥测API
上面的例子是APIG触发器的事件类型,如果是其他触发器类型需要修改main函数的内容,例如cts触发器修改为runtime.Register(CtsTest),目前只支持注册一个入口。 当函数的事件源是APIG时,相关约束条件请参考Base64解码和返回结构体的说明。 编译和打包 函数代码编译完成后,按照如下方式编译和打包。
href String 超链接地址 display_name String 云服务名称 表5 RepoInfo 参数 参数类型 描述 https_url String http地址 web_url String 存储库链接 repo_status String 存储库状态 error_msg
默认生成的APIG触发器的调用URL为“域名/函数名”,在本案例中即:https://your_host.com/springboot_demo,URL中包含了函数名springboot_demo作为path的第一部分。如果直接Get https://your_host.com/springboo
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 查询资源实例。 POST https://{Endpoint}/v2/{project_id}/{resource_type}/resource-instances/{action}
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
--template-url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-nodejs 使用自定义模板在新文件夹中创建服务: serverless create --template-url https://github
创建并初始化函数 函数管理 函数创建完成后,支持在线编辑函数,修改函数代码,修改函数配置等功能。 发布区域:所有部署函数工作流服务的区域均可使用。 导入导出函数 启用禁用函数 环境变量 支持设置函数的加密配置和环境变量,无需对代码进行任何更改,可以将设置动态参数传递到函数代码和库。 发布区
提供的示例允许您使用Express框架轻松构建无服务器Web应用程序/服务和RESTful API 。 1.0.1 request 简化http调用,支持HTTPS并默认遵循重定向。 2.88.0 Node.js引入依赖库示例如下: const ObsClient = require('esdk-obs-nodejs');
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
描述 error_code String 错误码 error_msg String 错误信息 请求示例 获取指定函数代码信息。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/code 响应示例
安装KooCLI命令行工具 安装KooCLI命令行工具 远程登录购买的ECS云服务器,执行如下命令安装KooCLI: curl -sSL https://hwcloudcli.obs.cn-north-1.myhuaweicloud.com/cli/latest/hcloud_install