检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
error_code String 错误码 error_msg String 错误信息 请求示例 将函数预留实例数量更新为3。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/reservedinstances
信息在代码中 const ak = "<YOUR AK>"; const sk = "<YOUR SK>"; const endpoint = "https://functiongraph.<region>.myhuaweicloud.com"; const project_id = "<project_id>";
描述 error_code String 错误码 error_msg String 错误信息 请求示例 获取函数预留实例配置列表 GET https://{Endpoint}/v2/{project_id}/fgs/functions/reservedinstanceconfigs 响应示例
"6578de50-9a18-48fa-b84e-b2d36636e433", "owner" : "public", "link" : "https://{obs_endpoint}/functionstage-examples/fg_test_pandas_1.1.3.zip",
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 查询资源实例。 POST https://{Endpoint}/v2/{project_id}/{resource_type}/resource-instances/{action}
创建OBS应用事件源 单击“确定”,完成触发器创建。 OBS应用事件源创建以后,当有文件上传或更新至dew-bucket-input桶时,生成事件,触发函数执行。 父主题: 使用FunctionGraph函数对OBS中的文件进行加解密
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
上传自定义模型和节点(可选) FunctionGraph应用中心的AI绘画应用中内置了默认模型,如需使用更多自定义模型和自定义节点进行AI绘画并保存生成的结果,需要在创建成功的应用中初始化自定义模型,并挂载文件系统为应用提供持续使用能力。 前提条件 完成部署AI绘画ComfyUI/Comf
a等依赖库。 使用Java编译型语言开发函数时,依赖包需要在本地编译。开发Java函数中如何添加依赖包请参见Java函数开发指南(使用IDEA工具普通Java项目)。 父主题: Java
s_test为例,在函数的环境变量配置中添加:“SMN_Topic”:“fss_test”。 订阅主题可选择通过邮件、短信、HTTP/HTTPS等形式推送告警消息 本案例中推送告警消息的事件是:当日志事件通过LTS触发器触发函数执行时,函数中过滤告警日志,产生的告警消息推送至SMN主题的订阅终端。
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());
tion:xxx:subfunction:latest' #子函数的urn,在子函数详情页拓扑图的右侧可查询 url = 'https://functiongraph.{region_id}.{external_global_domain_name}/v2/%s/fgs
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
确保所有相关资源均部署于该区域。 使用Moderation审核生成结果 使用开源AIGC推理模型生成的最终结果会因提示词的不同存在较大的不确定性,容易存在违规风险,建议在使用过程中配合华为云Moderation对生成结果进行审核,以降低风险,详细使用指南请参考图像内容审核(V3)。
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 更新指定的依赖包。 PUT https://{Endpoint}/v2/{project_id}/fgs/dependencies/{depend_id} { "depend_file"
URI:POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index