检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
String 依赖包版本ID owner String 依赖包拥有者,public标识为公共依赖包 link String 依赖包在obs的存储地址 runtime String FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3
EnterpriseProjectId: &enterpriseProjectIdCreateFunctionAppRequestBody, Description: &descriptionCreateFunctionAppRequestBody, TemplateId: &templateIdCre
请求什么类型的操作。 GET:请求服务器返回指定资源。 PUT:请求服务器更新指定资源。 POST:请求服务器新增资源或执行特殊操作。 DELETE:请求服务器删除指定资源,如删除对象等。 HEAD:请求服务器资源头部。 PATCH:请求服务器更新资源的部分内容。当资源不存在的时
s实例的redis_ip_address(Redis IP地址)和redis_password(Redis连接密码)环境变量,同时开启“redis_password”的“加密参数”功能,最后单击“保存”。 表1 环境变量说明 环境变量 说明 redis_ip_address Redis的IP地址。
部署Java代码包可以是zip文件或独立的jar文件。 上传jar文件 如果函数代码没有引入依赖包,可以直接上传函数代码jar文件。 如果函数代码引入了依赖包,可以先将依赖包上传至OBS桶,在创建函数时设置依赖包,再上传函数代码jar文件。 上传zip文件 如果函数代码引入了依赖
– 该扩展用于接收调用事件的服务端地址。必需:是。类型:字符串。例如:127.0.0.1:8081。 FunctionGraph需要使用扩展的完整文件名来验证扩展是否已完成引导启动,且扩展注册的请求头必须包含本扩展启动的httpServer的地址和端口。例如,请求头的格式为: headers
e Tester.jar替换DIS Test.jar,替换文件目录后如图9所示。打ZIP包,如图10所示,得到disdemo.zip文件。 图8 文件目录 图9 替换后文件目录 图10 打ZIP包 创建函数 创建函数的时候,必须选择能够访问到DIS和CloudTable资源的委托。
Request 请求错误。 401 Unauthorized 鉴权失败。 403 Forbidden 没有操作权限。 404 Not Found 找不到资源。 500 Internal Server Error 服务内部错误。 错误码 请参见错误码。 父主题: 函数依赖包
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
约束与限制 请确保创建函数选择的“区域”与创建OBS桶选择的“区域”一致。 函数工作流控制台支持上传zip格式的代码包文件和jar格式(仅限Java)的代码文件。 制作zip代码包文件时,单函数执行入口文件必须在根目录,确保解压后直接出现函数的执行入口文件。 程序文件解压后的源代码大小不能超过1
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
name String 应用名称 status String 应用状态 last_modified_time Long 最后修改时间 description String 应用描述 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码
FunctionGraph为函数分配的磁盘空间有多少? 是否支持在函数中启动TCP的监听端口,通过EIP接收外部发送过来的TCP请求? 函数发起HTTP请求的源地址如何获取? FunctionGraph是否支持对上传的zip文件进行反编译? FunctionGraph的函数是否支持功能扩展? Func
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
ListVersionAliasResult 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
vpc-fg IPv4网段 必选参数。 设置VPC的IPv4网段范围,可以根据页面建议选择,VPC网段的选择需要考虑以下两点: IP地址数量:要为业务预留足够的IP地址,防止业务扩展给网络带来冲击。 IP地址网段:当前VPC与其他VPC、云下数据中心连通时,要避免网络两端的IP地址冲突,否则无法正常通信。