查看审批列表
所有文档

          超级链BaaS平台

          查看审批列表

          查看审批列表

          接口描述:查询某个人及其所有组织的审批记录,包括联盟创建方邀请用户加入联盟,channel创建方申请创建channel,channel创建方邀请加入channel,同联盟组织申请加入channel

          权限说明:请求发起人需要具有合法的AccessKeyID和SecretAccessKey才能发起请求。

          注意事项:如果请求中没有用户验证信息(即匿名访问),返回403 Forbidden,错误信息:AccessDenied

          请求(Request)

          • 请求语法

            GET /v1/fabric/consortiums/approvals/list?tag={tag}&state={state} HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: <x-bce-date>
            x-bce-request-id: <x-bce-request-id>
            Authorization: <Authorization>
          • 请求头域:除公共头域外,无其它特殊头域。
          • 请求参数

            名称 类型 位置 描述 是否必须
            tag int Query参数 事件类型(1 联盟,2 channel,3 chaincode) 必须
            state bool Query参数 是否已审批(true: 已审批, false:待审批) 必须
            consortiumName String Query参数 联盟名 可选
            channelName String Query参数 通道名 可选

          响应(Response)

          • 响应头域:除公共头域外,无其它特殊头域。
          • 响应参数
          名称 类型 描述
          approvals [ ]Approval 申请结果列表,结构具体定义见附录说明

          失败响应参考错误码部分。

          示例

          • 请求示例

            GET /v1/fabric/consortiums/approvals/list?tag=1&state=true HTTP/1.1
            Host: bbe.bj.baidubce.com
            x-bce-date: 2019-10-29T08:25:20Z
            Authorization: bce-auth-v1/e38d78f7b74841ec92727531369834d8/2019-10-29T08:25:20Z/1800/host/56a2a8096f99d5b0fb38f7815b61f43f28b662f0bb49c3407386f932ab6550af
          • 响应示例

            200
            Content-Type: application/json; charset=utf-8
            {
                "data": {
                    "approvals": [
                        {
                            "uuid": "3cfceeaf-cb06-4470-9d3c-dcd924df8fbf-0",
                            "applicationUuid": "3cfceeaf-cb06-4470-9d3c-dcd924df8fbf",
                            "orgName": "fab-org1-716-auto-test",
                            "message": "fab-org1-716-auto-test邀请用户eca97e148cb74e9683d7b7240829d1ff加入联盟fab-con-539-auto-test",
                            "approverUuid": "eca97e148cb74e9683d7b7240829d1ff",
                            "approverName": "eca97e148cb74e9683d7b7240829d1ff",
                            "consortiumName": "fab-con-539-auto-test",
                            "consortiumUuid": "fd657c8f-2815-4cae-8e6c-1b611f8f0433",
                            "channelName": "",
                            "channelUuid": "",
                            "tag": 1,
                            "state": "PASS",
                            "feedback": "",
                            "createTime": "2019-10-17T19:07:52+08:00",
                            "finishTime": "2019-10-17T19:07:53+08:00",
                            "objectState": "CONFIRMED"
                        },
                        {
                            "uuid": "c31b19d4-dd7b-4d7f-a936-388ef203592f-0",
                            "applicationUuid": "c31b19d4-dd7b-4d7f-a936-388ef203592f",
                            "orgName": "fab-org1-316-auto-test",
                            "message": "fab-org1-316-auto-test邀请用户eca97e148cb74e9683d7b7240829d1ff加入联盟fab-con-573-auto-test",
                            "approverUuid": "eca97e148cb74e9683d7b7240829d1ff",
                            "approverName": "eca97e148cb74e9683d7b7240829d1ff",
                            "consortiumName": "fab-con-573-auto-test",
                            "consortiumUuid": "6167a91e-0409-4038-a74c-22d6bad61f91",
                            "channelName": "",
                            "channelUuid": "",
                            "tag": 1,
                            "state": "PASS",
                            "feedback": "",
                            "createTime": "2019-10-28T18:33:01+08:00",
                            "finishTime": "2019-10-28T18:33:08+08:00",
                            "objectState": "CONFIRMED"
                        },
                        {
                            "uuid": "578ef15b-262f-4f97-bf0e-1a23a873a292-0",
                            "applicationUuid": "578ef15b-262f-4f97-bf0e-1a23a873a292",
                            "orgName": "fab-org1-880-auto-test",
                            "message": "fab-org1-880-auto-test邀请用户eca97e148cb74e9683d7b7240829d1ff加入联盟fab-con-742-auto-test",
                            "approverUuid": "eca97e148cb74e9683d7b7240829d1ff",
                            "approverName": "eca97e148cb74e9683d7b7240829d1ff",
                            "consortiumName": "fab-con-742-auto-test",
                            "consortiumUuid": "985161d4-2842-45ae-b199-830f31f5faee",
                            "channelName": "",
                            "channelUuid": "",
                            "tag": 1,
                            "state": "PASS",
                            "feedback": "",
                            "createTime": "2019-10-28T19:56:54+08:00",
                            "finishTime": "2019-10-28T19:56:54+08:00",
                            "objectState": "CONFIRMED"
                        }
                    ]
                }
            }
          上一篇
          查看通知列表
          下一篇
          查询审批流