文档首页 > > 开发指南> API & SDK 对应关系> Python> FGS

FGS

分享
更新时间: 2019/11/15 GMT+08:00

基于函数工作流FGS v2.0 Python API的SDK接口如下,调用方式举例:conn.fgs.get_function_list()。

Interface

method

API

Functions

functions(**function)

GET /v2/{project_id}/fgs/functions?marker={marker}&maxitems={maxitems}

get_function_metadata(function_urn)

GET /v2/{project_id}/fgs/functions/{function_urn}/config

get_function_code(function_urn)

GET

/v2/{project_id}/fgs/functions/{function_urn}/code

create_function(**attrs)

POST

/v2/{project_id}/fgs/functions

delete_function(function_urn)

DELETE /v2/{project_id}/fgs/functions/{function_urn}

update_function_code(function_urn, **attrs)

PUT /v2/{project_id}/fgs/functions/{function_urn}/code

update_function_metadata(function_urn, **attrs)

PUT

/v2/{project_id}/fgs/functions/{function_urn}/config

publish_function_version(function_urn,**attrs)

POST /v2/{project_id}/fgs/functions/{function_urn}/versions

get_function_version(function_urn,**attrs)

GET /v2/{project_id}/fgs/functions/{function_urn}/versions?marker={marker}&maxitems={maxitems}

create_function_aliase(function_urn,**attrs)

POST /v2/{project_id}/fgs/functions/{function_urn}/aliases

update_function_aliase(function_urn,alias_name, **attrs)

PUT /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}

delete_function_aliase(function_urn,alias_name)

DELETE /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}

get_function_aliase(function_urn,alias_name)

GET /v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}

function_aliases(function_urn,**function)

GET /v2/{project_id}/fgs/functions/{function_urn}/aliases

execute_function_synchronously(function_urn,**attrs)

POST /v2/{project_id}/fgs/functions/{function_urn}/invocations

execute_function_asynchronously(function_urn,**attrs)

POST /v2/{project_id}/fgs/functions/{function_urn}/invocations-async

triggers

triggers(function_urn,**attrs)

GET

/v2/{project_id}/fgs/triggers/{function_urn}

get_trigger(function_urn,trigger_type_code,trigger_id)

GET /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id}

delete_all_triggers(function_urn)

DELETE

/v2/{project_id}/fgs/triggers/{function_urn}

create_trigger(function_urn,**attrs)

POST

/v2/{project_id}/fgs/triggers/{function_urn}

delete_trigger(function_urn,trigger_type_code,trigger_id)

DELETE /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id}

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区