函数计算CFC

    函数列表ListFunctions

    接口描述

    • 本接口用于查询用户函数列表。

    请求结构

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

    请求头域

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

    请求参数

    参数名称 类型 是否必需 参数位置 描述
    FunctionVersion String Query参数 指定函数版本,如果没有指定返回所有函数$LATEST版本,可选有效值 ALL将返回所有版本,包括$LATEST
    Marker int Query参数 标记
    MaxItems int Query参数 1-10000

    响应头域

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

    响应参数

    参数名称 类型 描述
    Functions FunctionConfiguration数组 FunctionConfiguration数组

    请求示例

    GET /v1/functions?Marker=1&MaxItems=2 HTTP/1.1
    Authorization: Authorization string
    Host: cfc.bj.baidubce.com

    响应示例

    HTTP/1.1 200
    Content-type: application/json
    	
    {
      "Functions": [
        {
          "Uid": "df391b08c64c426a81645468c75163a5",
          "Description": "",
          "FunctionBrn": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:httptrigger-helloworld:$LATEST",
          "Region": "bj",
          "Timeout": 3,
          "VersionDesc": "",
          "UpdatedAt": "2019-03-14T15:58:23+08:00",
          "LastModified": "2019-03-14T15:58:23+08:00",
          "CodeSha256": "vIqmTrOvKwuL94XG2HIdGBjqN0LRtZRAird21tOY2u0=",
          "CodeSize": 322291,
          "FunctionArn": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:httptrigger-helloworld:$LATEST",
          "FunctionName": "httptrigger-helloworld",
          "Handler": "index.handler",
          "Version": "$LATEST",
          "Runtime": "nodejs6.11",
          "MemorySize": 128,
          "Environment": {
            "Variables": {
              "hellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssds": "hellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssdshellodsdddddddddddddddsdsdsdsdsdsdsdsdsdsdsdsdssds"
            }
          },
          "CommitId": "dcfbd208-796e-4a22-83e7-0c1c0698338d",
          "Role": "",
          "LogType": "bos",
          "LogBosDir": "bos://test-cfc/"
        },
        {
          "Uid": "df391b08c64c426a81645468c75163a5",
          "Description": "test api",
          "FunctionBrn": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:test:$LATEST",
          "Region": "bj",
          "Timeout": 5,
          "VersionDesc": "",
          "UpdatedAt": "2019-01-21T17:10:22+08:00",
          "LastModified": "2019-01-21T17:10:22+08:00",
          "CodeSha256": "JTp+7f2JCxK41CGvec30Ctr1zc2kHNvWcgf0gF6VQSM=",
          "CodeSize": 931858,
          "FunctionArn": "brn:bce:cfc:bj:cd64f99c69d7c404b61de0a4f1865834:function:test:$LATEST",
          "FunctionName": "test",
          "Handler": "index.handler",
          "Version": "$LATEST",
          "Runtime": "python2",
          "MemorySize": 256,
          "Environment": {
            "Variables": {}
          },
          "CommitId": "6a648ed6-8f54-437f-af6b-6bfcf7d1e18f",
          "Role": "",
          "LogType": "none"
        }
      ],
      "NextMarker": "3"
    }
    上一篇
    创建函数CreateFunction
    下一篇
    函数信息GetFunction