查询Fabric网络
更新时间:2019-06-21
查询Fabric网络
接口描述 根据网络id查询一个fabric网络的详情。
权限说明 请求发起人需要具有合法的AccessKeyID和SecretAccessKey才能发起请求。
注意事项
如果请求中没有用户验证信息(即匿名访问),返回403 Forbidden
,错误信息:AccessDenied
。
请求(Request)
- 请求语法
GET /v1/fabric/network/:networkUuid HTTP/1.1
Host: bbe.bj.baidubce.com
Date: <Date>
Authorization: <Authorization_String>
- 请求头域 除公共头域外,无其它特殊头域。
- 请求参数
名称 | 类型 | 描述 | 是否必须 |
---|---|---|---|
networkUuid | String | fabric网络id | 必须 |
响应(Response)
- 响应头域 除公共头域外,无其它特殊头域。
- 响应参数
名称 | 类型 | 描述 |
---|---|---|
networkUuid | String | 相关网络id |
fabricNetworkInfo | FabricNetworkInfo | fabric网络信息,具体定义见附录说明 |
失败响应参考错误码部分。
示例
-
请求示例
说明:返回请求的网络id对应的网络详情。
GET /v1/fabric/network/6c8a45e8-ae2a-47f3-b557-d888efef0331 HTTP/1.1
Host: bbe.bj.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2019-04-06T06:34:40Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
x-bce-console-rpc-id: 91a5215b-afd0-4d73-96d6-6078427b3b9a
x-bce-date: 2019-01-04T07:24:02Z
x-bce-request-id: 9af57bef-cbb5-4250-ae32-200a44f6a79a
- 响应示例
200
Content-Length: 3153
Content-Type: application/json; charset=utf-8
Date: Fri, 04 Jan 2019 07:24:02 GMT
{
"data": {
"fabricNetworkInfo": {
"cceClusterId": "c-3aYxIVMA",
"channels": \[{
"channelName": "lqlch",
"deleted": false,
"networkUuid": "6c8a45e8-ae2a-47f3-b557-d888efef0331",
"ordererOrgUuid": "org-orderer",
"peerOrgUuidList": [
"lql"
],
"state": "RUNNING",
"userId": "a4f72fb32ba643b4b3011a7aad8df936",
"uuid": "6c8a45e8-ae2a-47f3-b557-d888efef0331-0"
}],
"createTask": null,
"deleted": false,
"intermediatecaSize": 2,
"kafkaSize": 4,
"mysqlSize": 2,
"name": "test-lql",
"nfsServer": "172.18.238.70",
"explorerAddress": "<http://10.107.246.94:8080">,
"nodeList": null,
"ordererSize": 1,
"orgs": [{
"deleted": false,
"orgId": "6c8a45e8-ae2a-47f3-b557-d888efef0331",
"orgName": "lql",
"type": "peer",
"userId": "a4f72fb32ba643b4b3011a7aad8df936",
"uuid": "6c8a45e8-ae2a-47f3-b557-d888efef0331-0"
},
{
"deleted": false,
"orgId": "6c8a45e8-ae2a-47f3-b557-d888efef0331",
"orgName": "org-orderer",
"type": "orderer",
"userId": "a4f72fb32ba643b4b3011a7aad8df936",
"uuid": "6c8a45e8-ae2a-47f3-b557-d888efef0331-orderer"
}
],
"peerSize": 1,
"rootcaSize": 2,
"createTime": "2019-01-03T07:18:30+08:00",
"state": "RUNNING",
"type": "union",
"userId": "a4f72fb32ba643b4b3011a7aad8df936",
"networkUuid": "6c8a45e8-ae2a-47f3-b557-d888efef0331",
"zookeeperSize": 3,
"errorMessage": "",
"grpcinfo": \[{
"orgName": "lql",
"addresses": [
"10.107.246.91:7051"
]
},
{
"orgName": "org-orderer",
"addresses": [
"10.107.246.93:7050"
]
}
]
}
}
}