检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
错误码 error_msg String 错误信息 请求示例 创建名为event-xx,内容为{"k":"v"}的测试事件。 POST https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/events {
error_code String 错误码 error_msg String 错误信息 请求示例 更新指定测试事件内容为{"k":"v"}。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/events/{event_id}
描述 error_code String 错误码 error_msg String 错误信息 请求示例 当前租户函数别名列表。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases 响应示例
合并多个变量引用以相互覆盖。 约束与限制 只能在serverless.yml的values属性中使用变量,而不能使用键属性。因此,您不能在自定义资源部分中使用变量生成动态逻辑ID。 从环境变量中引用变量 要引用环境变量中的变量,请在serverless.yml中使用${env:someProperty}语法,如下:
支持使用已有模板或空模板。 发布区域:所有部署函数工作流服务的区域均可使用。 创建程序包 创建并初始化函数 函数管理 函数创建完成后,支持在线编辑函数,修改函数代码,修改函数配置等功能。 发布区域:所有部署函数工作流服务的区域均可使用。 导入导出函数 启用禁用函数 环境变量 支持
请求示例 创建键值对分别为"testKey1:testValue1"、"testKey2:testValue2"的资源标签。 POST https://{Endpoint}/v2/{project_id}/{resource_type}/{resource_id}/tags/create
error_code String 错误码 error_msg String 错误信息 请求示例 查询指定函数的版本别名信息。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}
the inline code exceeds the maximum allowed limit (10 KB). 在线编辑代码大小超过限制(10K) 检查在线编辑代码大小是否超过限制(10K) 413 FSS.1201 The request body is too large
APIG接口PATH路径(APIG触发器参数)。 protocol String API的请求协议(APIG触发器参数)。 枚举值: HTTP HTTPS req_method String API的请求方式(APIG触发器参数)。 枚举值: GET POST PUT DELETE HEAD
图1 credentials.csv文件内容 如果您没有登录密码,不能登录控制台,在访问密钥异常丢失或者需要重置时,可以请账号管理员在IAM中生成您的访问密钥,并发送给您。请参见:管理IAM用户访问密钥 获取Region Name,请参见:地区和终端节点。 图2 获取区域 初始化KooCLI命令行工具
"execution succeed: Return to access service information through http/https,", "warning" : "1. configure the serveraddress environment variables
描述 error_code String 错误码 error_msg String 错误信息 请求示例 查询租户预留实例列表。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/reservedinstances 响应示例 状态码:
href String 超链接地址 display_name String 云服务名称 表5 RepoInfo 参数 参数类型 描述 https_url String http地址 web_url String 存储库链接 repo_status String 存储库状态 error_msg
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());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
处理图片 当图片上传后更新至hugb-bucket-input桶时,会生成事件,触发函数运行,将上传图片打水印,保存在hugb-bucket-output中。 上传图片生成事件 登录对象存储服务控制台,进入hugb-bucket-input桶对象界面,上传image.jpg图片,如图1所示。