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

FGS

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

基于函数工作流FGD v2 Go SDK的SDK接口如下,调用方式请参考示例代码。

Resource

Method

API

Functions

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2/{project_id}/fgs/functions

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

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

GetMetadata(c *gophercloud.ServiceClient, functionUrn string)

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

GetCode(c *gophercloud.ServiceClient, functionUrn string)

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

Delete(c *gophercloud.ServiceClient, functionUrn string)

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

UpdateCode(c *gophercloud.ServiceClient, functionUrn string, opts UpdateOptsBuilder)

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

UpdateMetadata(c *gophercloud.ServiceClient, functionUrn string, opts UpdateOptsBuilder)

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

CreateVersion(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string)

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

ListVersion(c *gophercloud.ServiceClient, opts ListOptsBuilder, functionUrn string)

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

CreateAlias(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string)

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

UpdateAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string, opts UpdateOptsBuilder)

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

DeleteAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string)

DELETE /v1.0/{project_id}/fss/functions/{function_urn}/aliases/{alias_name}

GetAlias(c *gophercloud.ServiceClient, functionUrn, aliasName string)

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

ListAlias(c *gophercloud.ServiceClient, functionUrn string)

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

Invoke(c *gophercloud.ServiceClient, m map[string]interface{}, functionUrn string)

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

AsyncInvoke(c *gophercloud.ServiceClient, m map[string]interface{}, functionUrn string)

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

Triggers

List(c *gophercloud.ServiceClient, functionUrn string)

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

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string)

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

Delete(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string)

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

Get(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string)

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

DeleteAll(c *gophercloud.ServiceClient, functionUrn string)

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

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区