更新时间:2023-06-16 GMT+08:00
分享

自定义策略授权项

Hyperledger Fabric增强版支持自定义策略授权项如下所示:

表格中“√”表示支持,“×”表示暂不支持。

表1 Hyperledger Fabric增强版常用操作与系统权限关系

接口

对应的API接口

授权项

IAM项目

(Project)

企业项目

(Enterprise Project)

查询配额

GET /v2/{project_id}/quotas

bcs:fabricInstance:listQuota

查询规格

GET /v2/{project_id}/blockchains/flavors

bcs:fabricInstance:getFlavor

查询异步操作结果

GET /v2/{project_id}/operation/record

bcs:fabricInstance:listRecord

创建服务实例

POST /v2/{project_id}/blockchains

bcs:fabricInstance:createOnDemand

查询服务实例列表

GET /v2/{project_id}/blockchains

bcs:fabricInstance:list

查询创建状态

GET /v2/{project_id}/blockchains/{blockchain_id}/status

bcs:fabricInstance:getStatus

查询实例信息

GET /v2/{project_id}/blockchains/{blockchain_id}

bcs:fabricInstance:getDetail

查询节点信息

GET /v2/{project_id}/blockchains/{blockchain_id}/nodes

bcs:fabricInstance:getNodes

修改服务实例

PUT /v2/{project_id}/blockchains/{blockchain_id}

bcs:fabricInstance:update

删除服务实例

DELETE /v2/{project_id}/blockchains/{blockchain_id}

bcs:fabricInstance:delete

下载证书

GET /v2/{project_id}/blockchains/{blockchain_id}/cert

bcs:fabricInstance:downloadCert

下载SDK配置

POST /v2/{project_id}/blockchains/{blockchain_id}/sdk-cfg

bcs:fabricInstance:downloadSdkCfg

生成用户证书

POST /v2/{project_id}/blockchains/{blockchain_id}/orgs/{org_name}/usercert/{user_name}

bcs:fabricInstance:createUserCert

冻结用户证书

POST /v2/{project_id}/blockchains/{blockchain_id}/orgs/{org_name}/usercert/{user_name}/freeze

bcs:fabricInstance:freezeUserCert

解冻用户证书

POST /v2/{project_id}/blockchains/{blockchain_id}/orgs/{org_name}/usercert/{user_name}/unfreeze

bcs:fabricInstance:unfreezeUserCert

查询服务实例监控数

POST /v2/{project_id}/blockchains/{blockchain_id}/metric/list

bcs:fabricInstance:listInstanceMetric

查询BCS组织监控数据列

POST /v2/{project_id}/blockchains/{blockchain_id}/entity/metric/list

bcs:fabricInstance:listOrgMetric

查询BCS组织实例监控数

POST /v2/{project_id}/blockchains/{blockchain_id}/entity/instance/metric/list

bcs:fabricInstance:getOrgMetric

创建通道

POST /v2/{project_id}/blockchains/{blockchain_id}/channels

bcs:fabricChannel:create

查询通道信息

GET /v2/{project_id}/blockchains/{blockchain_id}/channels

bcs:fabricChannel:list

peer节点加入通道

POST /v2/{project_id}/blockchains/{blockchain_id}/channels/peers

bcs:fabricChannel:addPeer

BCS某个组织中的节点退出某通

PUT /v2/{project_id}/blockchains/{blockchain_id}/{channel_id}/peers/quit

bcs:fabricChannel:removePeer

BCS组织退出某通道

PUT /v2/{project_id}/blockchains/{blockchain_id}/{channel_id}/orgs/quit

bcs:fabricChannel:removeOrg

BCS删除某个通道

DELETE /v2/{project_id}/blockchains/{blockchain_id}/channel/{channel_id}

bcs:fabricChannel:delete

邀请联盟成员

POST /v2/{project_id}/members/invitations

bcs:fabricMember:createInvitation

删除邀请成员信息

DELETE /v2/{project_id}/members/invitations

bcs:fabricMember:deleteInvitation

获取联盟成员列表

GET /v2/{project_id}/members

bcs:fabricMember:list

被邀请方退出指定联盟

PUT /v2/{project_id}/members/quit

bcs:fabricMember:quit

获取全部通知

GET /v2/{project_id}/notifications

bcs:fabricNotification:list

处理联盟邀请

POST /v2/{project_id}/notification/handle

bcs:fabricNotification:handle

相关文档