检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
地打包代码文件并上传至OBS桶。如需修改函数执行入口,请参见修改函数执行入口。 约束与限制 请确保函数与OBS桶所在区域一致。 支持上传ZIP格式和JAR格式(仅限Java运行时)的代码文件。 代码文件解压后的源代码大小不能超过1.5G,如需部署超大代码请提交工单处理。 当代码编
模板id name String 模板名称 runtime String 模板执行运行时 category String 模板使用场景 description String 模板描述 image String 模板镜像文件(base64编码) 状态码: 400 表6 响应Body参数 参数
inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。 枚举值: inline zip obs jar Custom-Image-Swr
参数 是否必选 参数类型 描述 name 是 String 别名名称。 version 是 String 别名对应的版本名称。 description 否 String 别名描述信息。 additional_version_weights 否 Map<String,Integer>
Cangjie 1.0 函数支持多种代码导入方式 支持在线编辑代码、OBS文件引入、上传ZIP包、上传JAR包等方式。不同运行时支持的代码上传方式如表2所示。 表2 代码上传方式说明 运行时 在线编辑 上传ZIP文件 上传JAR包 从OBS上传文件 Node.js 支持 支持 不支持 支持 Python
其他参数保持默认,单击“创建函数”。 上传函数代码。 函数创建完成后,进入详情页面,在“代码”页签下选择“上传代码 > Zip > 文件”,添加步骤一:下载程序包中下载的Zip代码包进行部署。 开启类隔离。 成功部署代码包后,如图1所示,选择“设置 > 高级设置”,开启“类隔离”,单击“保存”。
inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。 枚举值: inline zip obs jar Custom-Image-Swr
Manager在线安装自定义模型和节点的相关使用方法。 方案优势 轻松部署 部署流程简便,结合弹性的Serverless解决方案,无需服务器管理和运维,即刻体验AI绘画功能。 开源和定制化 提供多种自定义和进阶使用场景,轻松实现高阶个性化的AI绘画。 约束与限制 当前使用Fun
运行时语言:选择“Go1.x”。 进入test-rotate函数详情页,配置如下信息。 在“代码”页签,代码选择“上传自ZIP文件”,上传样例代码“go-test.zip”编译后的二进制文件。 在“设置 > 常规设置”页签,设置如下信息,完成后单击“保存”。 内存:选择“256” 执行超时时间:输入“40”
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
依赖包唯一标志(MD5校验值) size Long 依赖包大小 name String 依赖包名 file_name String 依赖包文件名 description String 依赖包描述。 version Long 依赖包版本号 last_modified Long 依赖包更新时间 dep_id
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
并随时根据业务改变对函数处理过程做调整,实现业务灵活变更。 简化运维,用户只需开通相关云服务并在函数服务中编写业务逻辑,无需配置或管理服务器,专注于业务创新。业务爆发时可以自动调度资源运行更多函数实例以满足处理需求。 按需计费,只有对函数执行的时间及各智能服务处理进行计费,无需购买冗余的资源用于非峰值处理。
s实例的redis_ip_address(Redis IP地址)和redis_password(Redis连接密码)环境变量,同时开启“redis_password”的“加密参数”功能,最后单击“保存”。 表1 环境变量说明 环境变量 说明 redis_ip_address Redis的IP地址。
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
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted