检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"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 响应示例 状态码:
设置网络代理命令如下: export HTTP_PROXY="http://user:password@proxyIp:proxyPort" 详情请参考:https://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-
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());
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());
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}
描述 error_code String 错误码 error_msg String 错误信息 请求示例 获取函数预留实例配置列表 GET https://{Endpoint}/v2/{project_id}/fgs/functions/reservedinstanceconfigs 响应示例
"execution succeed: Return to access service information through http/https,", "warning" : "1. configure the serveraddress environment variables
"6578de50-9a18-48fa-b84e-b2d36636e433", "owner" : "public", "link" : "https://{obs_endpoint}/functionstage-examples/fg_test_pandas_1.1.3.zip",
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());