检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 获取指定测试事件。 GET 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 响应示例
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/ListDependencies?marker=0&maxitems=400
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());
error_code String 错误码 error_msg String 错误信息 请求示例 将函数预留实例数量更新为3。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/reservedinstances
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
时error不为空,则函数将返回HandledInitializationError,由于屏蔽了初始化函数的返回值,所以data中的数据是无效的,可以参考上文的示例设置为空。 SDK接口 Context类中提供了许多上下文方法供用户使用,其声明和功能如表1所示。 getToken
扩展API使用。 在拓展启动一个httpClient,向FunctionGraph发送注册Telemetry API的请求。 创建一个httpServer遥测侦听器,接收FunctionGraph发送的遥测数据。用户可以对此数据进行任何自定义处理。 最多只能创建一个遥测扩展,遥测的端口限制和扩展的端口限制一致,127
用API,该API获取用户的Token,Token可以用于调用其他API时鉴权。 您还可以通过这个视频教程了解如何构造请求调用API:https://bbs.huaweicloud.com/videos/102987 。 请求URI 请求URI由如下部分组成。 {URI-scheme}
"execution succeed: Return to access service information through http/https,", "warning" : "1. configure the serveraddress environment variables
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
test。 所属分组:请选择上述操作中创建的API分组“APIGroup_test”。 URL:请求方法选择“ANY”,请求协议选择“HTTPS”,请求路径填写“/testAPI”。 网关响应:选择“default”。 安全认证:选择“自定义认证”。 自定义认证:选择上述操作中创
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());
URI:POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index