检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
开发事件函数 Java函数开发指南(使用Eclipse工具) Java函数开发指南(使用IDEA工具普通Java项目) Java函数开发指南(使用IDEA工具maven项目) 父主题: Java
实例:选择已经创建好的IoTDA实例。 数据来源、触发事件、资源空间:详情请参见表1。 表1 配置说明 数据来源 触发事件 资源空间 设备 设备添加、设备删除、设备更新 选择资源空间。IoTDA实例支持创建多个资源空间,并指定其中一个作为“默认资源空间”。“默认资源空间”每个租户有且仅有一个,不允许删除。
请求参数 表2 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 函数流名称 最小长度:1 最大长度:64 description 否 String 函数流描述 最小长度:1 最大长度:512 start 是 String 流程开始节点ID 最小长度:1 最大长度:256
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
及合并段 Put:使用Put方法上传对象 Post:使用Post方法上传对象 Copy:使用copy方法复制对象 CompleteMultipartUpload:表示合并分段任务 ObjectRemoved:表示删除对象 Delete:指定对象版本号删除对象 DeleteMark
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index.zip", "code_type": "inline", "func_code": { "file": "UEsDBAoAAAAIABY
patterns: - '!tmp/**' - '!.git/**' 产物 要完全控制打包过程,您可以指定自己的产物ZIP文件。 如果配置了此功能,Serverless将不会压缩您的服务,因此将忽略patterns,可以选择使用产物或模式进行部署。 如果您的开
getLogger() redis_cluster_nodes = context.getUserData( "redis_ip_address") redis_password = context.getUserData( "redis_password")
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
新创建函数时,可在“高级设置”中单击“添加新标签”增加日志标签;如已创建函数,请从步骤2开始配置。 在函数详情页中,选择“设置 > 日志配置”,开启“日志记录”,选择日志组和日志流。 单击“添加新标签”,输入标签键和标签值,最多支持添加10个标签,配置完成后单击“保存”。 表2
功能应用类实践 使用FunctionGraph函数和CTS识别非法IP的登录登出操作 使用FunctionGraph函数定时开关华为云ECS 使用FunctionGraph函数作为后端实现APIG的自定义认证能力 使用FunctionGraph部署AI绘画Stable Diffusion应用
及合并段 Put:使用Put方法上传对象 Post:使用Post方法上传对象 Copy:使用copy方法复制对象 CompleteMultipartUpload:表示合并分段任务 ObjectRemoved:表示删除对象 Delete:指定对象版本号删除对象 DeleteMark
及合并段 Put:使用Put方法上传对象 Post:使用Post方法上传对象 Copy:使用copy方法复制对象 CompleteMultipartUpload:表示合并分段任务 ObjectRemoved:表示删除对象 Delete:指定对象版本号删除对象 DeleteMark
打包函数代码。 将目录中的“.next”、“public”、“package.json”和“bootstrap”打包成zip压缩包,本案例命名为“nextjs-func-code.zip”作为函数代码备用。 父主题: 使用Next.js项目构建HTTP函数
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
进入应用与数据集成平台 ROMA Connect,找到所选实例(例如:Ac6-instance-NoDelete),查看公网IP。 图2 公网IP地址 在浏览器地址栏输入公网IP地址调用。 图3 APIC触发器调用地址 函数执行完毕,得到返回结果。 图4 返回结果 查看函数运行结果 返回函数工作流控制台,在左侧的导航栏选择“函数