检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
577118, "name" : "python-kafka", "description" : "python支持kafka操作的库", "file_name" : "python-kafka.zip", "version" : 0, "last_modified" :
)。 connect_address String 实例连接IP地址(RABBITMQ触发器参数)。 exchange_name String 交换机名称(RABBITMQ触发器参数)。 vhost String 虚拟机名称(RABBITMQ触发器参数)。 ssl_enable Boolean
)。 connect_address String 实例连接IP地址(RABBITMQ触发器参数)。 exchange_name String 交换机名称(RABBITMQ触发器参数)。 vhost String 虚拟机名称(RABBITMQ触发器参数)。 ssl_enable Boolean
inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。 枚举值: inline zip obs jar Custom-Image-Swr
已创建日志组,此处以LogGroup1为例,创建过程请参见创建日志组。 已创建日志流,此处以LogTopic1为例,创建过程请参见创建日志流。 已配置Agent,快速将ECS等服务器上日志采集到指定的日志组,详情请参见安装ICAgent。 创建LTS触发器 登录函数工作流控制台,在左侧的导航栏选择“函数 > 函数列表”。
名为“fss_examples_php7.3.zip”,如图1所示。 图1 工程打包 创建FunctionGraph函数,上传程序包 登录FunctionGraph,创建PHP函数,上传fss_examples_php7.3.zip文件。如 图2所示。 图2 上传程序包 函数执行
stack_id String 资源栈id repo_name String 存储库名称 description String 应用描述 repo RepoInfo object 存储库信息 pipeline_id String 管道id project_id String 项目id apig_url
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
concurrentNum: 10 # 单实例最大并发数 codeType: zip # 函数代码类型 dependVersionList: # 依赖包,取依赖包的ID
zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2", "accept-encoding": "gzip, deflate, br", "x-forwarded-port": "443", "x-forwarded-for":
examples_python2.7.zip”,如图1所示。 图1 打包 创建FunctionGraph函数,上传程序包。 登录FunctionGraph控制台,创建Python函数,上传fss_examples_python2.7.zip文件。如图2所示。 图2 上传程序包 函
ListVersionAliasResult 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。
allowed limit (2 KB). 环境变量总大小超过限制(2K) 检查环境变量的总大小 400 FSS.1019 The description exceeds the maximum allowed limit (512 characters). 描述信息长度超过限制(512
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。 枚举值: inline zip obs jar Custom-Image-Swr
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
执行shell命令 # 构建函数部署包 cd helloworld zip helloworld_deploy.zip cam.yaml # 构建函数代码压缩包 cd code zip -rp helloworld.zip * 图1 执行shell命令 上传函数压缩包到OBS 图2 上传函数压缩包到OBS
模板id type Integer 模板类型 title String 模板标题 template_name String 模板名称 description String 模板描述 runtime String 模板执行运行时 handler String 模板函数执行入口 code_type
name String 应用名称 status String 应用状态 last_modified_time Long 最后修改时间 description String 应用描述 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码
响应Body参数 参数 参数类型 描述 name String 要获取的别名名称。 version String 别名对应的版本名称。 description String 别名描述信息。 last_modified String 别名最后修改时间。 alias_urn String 版本别名唯一标识。