检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:403 表7 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:500
constants label 否 String label enterprise_project_id 否 String enterprise_project_id merge_params 否 Boolean merge_params mode 否 String mode enable_stream_response
response, err := client.ShowLtsLogDetails(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err)
log.error("info log"); } } 其中初始化入口添加了如下代码: Configurator.reconfigure(Objects.requireNonNull(LoaderUtil.getThreadContextClassLoader().get
鉴权失败。 403 Forbidden 没有操作权限。 404 Not Found 找不到资源。 500 Internal Server Error 服务内部错误。 503 Service Unavailable 服务不可用 错误码 请参见错误码。 父主题: 函数依赖包
js(initializer入口介绍) exports.initializer = function(context, callback) { callback(null, ''); }; Python(initializer入口介绍) def my_initializer(context):
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 request_id String 请求ID 状态码:500 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:403 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:500
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 403 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:
登录函数工作流控制台,在左侧导航栏选择“函数 > 函数列表”。 单击“导入函数”,在导入函数弹窗中单击“添加文件”,选择本地已导出的zip格式函数文件。 图3 导入函数 系统将自动读取和配置函数的运行时,自定义编辑函数名称后单击“确定”,完成函数导入。 相关文档 除使用控制台外,函数工作流支持通过API的方式管
参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 函数异步执行并返回预留实例ID。 POST /v2/{project_id}/fgs/functions/{function_urn}/reserved-invocations
ploy-build/${releaseVersion}/deploy.py 下载到主机的部署目录为:/home/function/deploy 选择“参数设置”页签,在“自定义参数”中新增“codeBranch”和“releaseVersion”参数,开启“运行时设置”。 图4
步骤显示名称:上传部署包到软件发布库 构建包路径:helloworld/helloworld_deploy.zip 发布版本号:${releaseVersion} 在“参数设置”中配置releaseVersion,开启“运行时设置”。 图4 参数设置 在“基础信息”页签下,更新任务名称为pipeline-updat
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 401 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码:
键 值 说明 EXTRA_ARGS --api --api-auth username1:password1,username2:password2 --nowebui “username1”和“username2”处填写用户名,“password1”和“password2”处填写需要设置的密码,通过英文逗号(
调试。 Serverless Devs:基于开源CLI工具使用Yaml配置文件便捷管理多个函数,适用于拥有较多函数的复杂项目或自动化部署等场景。具体操作步骤请参见Serverless Devs使用。 Serverless Framework:基于V3版本的Serverless F
ndler,则执行入口为Handler。 将工程打成ZIP包,上传到OBS存储桶。 C# 不支持该方式 必须在编译之后打ZIP包,必须包含“工程名.deps.json”,“工程名.dll”,“工程名.runtimeconfig.json”,“工程名.pdb”和“HC.Serverless
参数类型:默认为“Header”,即HTTP请求中的Header参数。 参数:HTTP请求中Header参数的名称,不区分大小写。 条件:Header参数要满足的条件类型,有“=”和“in”两种条件类型。 值:Header参数的值,字符串类型。 条件为“=”时,表示请求中Header参数的值等于设定值时才满足条件。
retry_on_error=[BusyLoadingError, ConnectionError,
print(e.error_code) print(e.error_msg) AK/SK、region(EndPoint)、project_id(项目ID)的获取请参见AK/SK签名认证操作指导。 func_name、version在函数界面上获取。