检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
error_msg String 错误信息 请求示例 利用xxx委托,为vpc:a938xxxx,子网:a4a1xxxx创建大规格下沉入口。 POST https://{Endpoint}/v2/{project_id}/fgs/vpc-endpoint { "vpc_id" : "a938
tion:xxx:subfunction:latest' #子函数的urn,在子函数详情页拓扑图的右侧可查询 url = 'https://functiongraph.{region_id}.{external_global_domain_name}/v2/%s/fgs
URI:POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除指定版本别名。 DELETE https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}
error_code String 错误码 error_msg String 错误信息 请求示例 删除指定函数所有触发器。 DELETE https://{Endpoint}/v2/{project_id}/fgs/triggers/{function_urn} 响应示例 无 SDK代码示例
参数类型 描述 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/ListDependencies?marker=0&maxitems=400
描述 error_code String 错误码 error_msg String 错误信息 请求示例 当前租户函数别名列表。 GET https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases 响应示例
href String 超链接地址 display_name String 云服务名称 表5 RepoInfo 参数 参数类型 描述 https_url String http地址 web_url String 存储库链接 repo_status String 存储库状态 error_msg
error_code String 错误码 error_msg String 错误信息 请求示例 将函数预留实例数量更新为3。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/reservedinstances
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 查询资源实例。 POST https://{Endpoint}/v2/{project_id}/{resource_type}/resource-instances/{action}
"execution succeed: Return to access service information through http/https,", "warning" : "1. configure the serveraddress environment variables
上面的例子是APIG触发器的事件类型,如果是其他触发器类型需要修改main函数的内容,例如cts触发器修改为runtime.Register(CtsTest),目前只支持注册一个入口。 当函数的事件源是APIG时,相关约束条件请参考Base64解码和返回结构体的说明。 编译和打包 函数代码编译完成后,按照如下方式编译和打包。
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 响应示例
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());