函数计算CFC

    获取触发器列表ListTriggers

    接口描述

    • 本接口用于获取触发器列表。

    请求结构

    GET /v1/relation   HTTP/1.1
    Host: cfc.bj.baidubce.com
    Authorization: authorization string

    请求头域

    除公共头域外,无其它特殊头域。

    请求参数

    参数名称 类型 是否必需 参数位置 描述
    FunctionBrn String Query参数 函数BRN

    响应头域

    除公共头域,无其它特殊头域。

    响应参数

    参数名称 类型 描述
    Relation Relation数组 Relation数组

    请求示例

    GET /v1/relation?FunctionBrn=brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:helloCFCDocs:$LATEST   HTTP/1.1
    Host: cfc.bj.baidubce.com
    Authorization: authorization string

    响应示例

    HTTP/1.1 200 OK
    Content-type: application/json
    	
    {
      "Relation": [
        {
          "RelationId": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/GET/cfc/docs",
          "Sid": "cfc-dfbd5359-1afb-49e7-81d7-16554056c79d",
          "Source": "cfc-http-trigger/v1/CFCAPI",
          "Target": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:helloCFCDocs:$LATEST",
          "Data": {
            "AuthType": "anonymous",
            "Brn": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/GET/cfc/docs",
            "EndpointPrefix": "https://6ewfn1337kndc.cfc-execute.bj.baidubce.com",
            "Method": "GET",
            "ResourcePath": "/cfc/docs"
          }
        },
        {
          "RelationId": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/POST,PUT/cfc/docs/edit",
          "Sid": "cfc-dfbd5359-1afb-49e7-81d7-16554056c79d",
          "Source": "cfc-http-trigger/v1/CFCAPI",
          "Target": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:helloCFCDocs:$LATEST",
          "Data": {
            "AuthType": "anonymous",
            "Brn": "brn:bce:cfc-http-trigger:bj:cd64f99c69d7c404b61de0a4f1865834:b8542048977633ad0a867aefc33fd32a/cfc/POST,PUT/cfc/docs/edit",
            "EndpointPrefix": "https://6ewfn1337kndc.cfc-execute.bj.baidubce.com",
            "Method": "POST,PUT",
            "ResourcePath": "/cfc/docs/edit"
          }
        }
      ]
    }
    上一篇
    别名操作
    下一篇
    创建触发器CreateTrigger