获取Quorum联盟节点
更新时间:2020-04-09
获取Quorum联盟节点
接口描述 获取用户部署的Quorum联盟节点。
权限说明 请求发起人需要具有合法的AccessKeyID和SecretAccessKey才能发起请求。
注意事项
如果请求中没有用户验证信息(即匿名访问),返回403 Forbidden
,错误信息:AccessDenied
。
请求(Request)
-
请求语法
Plain Text1GET /v1/quorum/consortium/nodes?consortiumUuid={ConsortiumUuid}&orgUuid={OrgUuid} HTTP/1.1 2Host: bbe.bj.baidubce.com 3x-bce-date: <x-bce-date> 4x-bce-request-id: <x-bce-request-id> 5Authorization: <Authorization>
- 请求头域 除公共头域外,无其它特殊头域。
-
请求参数
名称 类型 位置 描述 是否必须 orgUuid String Query参数 组织Uuid 必须 consortiumUuid String Query参数 联盟Uuid 必须
响应(Response)
- 响应头域 除公共头域外,无其它特殊头域。
-
响应参数
名称 类型 描述 pageNo Integer 查询结果页码 pageSize Integer 每页包含的最大数量 result []QuorumNoteInfo 节点详情列表,结构具体定义见附录说明 失败响应参考错误码部分。
示例
-
请求示例
Plain Text1GET /v1/quorum/consortium/nodes?orgUuid=bd1f706b-965e-ea99-1071-57b5903b3d73&consortiumUuid=35b33e7e-62f5-a875-7b39-42a5b7de3d0f HTTP/1.1 2Host: bbe.bj.baidubce.com 3x-bce-date: 2019-10-23T06:26:02Z 4x-bce-request-id: b9485394-c7dc-3cfa-d454-57c34773d08c 5Authorization: bce-auth-v1/98cdcde27d8e464d895222fd8023a029/2019-10-23T06:26:02Z/1800/host/1e88313cae40a47550bdf0e3bfa591c06e4443c1ed690d510032e084676b00f8
-
响应示例
Plain Text1200 2Content-Length: 3080 3Content-Type: application/json; charset=utf-8 4Date: Wed, 23 Oct 2019 06:26:02 GMT 5{ 6 "pageNo": 1, 7 "pageSize": 1000, 8 "result": [{ 9 "uuid": "8b543a22-9724-47da-9546-7905321900c8", 10 "shortId": "8b543a22", 11 "orgUuid": "bd1f706b-965e-ea99-1071-57b5903b3d73", 12 "consortiumUuid": "35b33e7e-62f5-a875-7b39-42a5b7de3d0f", 13 "consortiumMemberUuid": "e0e7cf90-5255-43e9-9615-7aff3b6fdd59", 14 "userId": "eca97e148cb74e9683d7b7240829d1ff", 15 "cluster_id": "c-46htTIfQ", 16 "type": "validatorNode", 17 "nodeConfig": { 18 "targetGasLimit": 4294967295, 19 "maxPeer": 25, 20 "syncMode": "full", 21 "gasPrice": 0, 22 "blockPeriod": 5, 23 "istanbulRequestTimeout": 10000, 24 "cpuLimit": 0, 25 "memoryLimit": 0 26 }, 27 "coinbase": "0x424Bfb3d26AdF107E649Cc53D41fc300072e56CF", 28 "keystore": "...", 29 "contractKey": "IRypnANDc3fZpxh53u4rXvmJpZnE6ii37ZaWPvALdxs=", 30 "jsonRPC": "http://xxx:8081/quorum-jsonrpc/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/8b543a22", 31 "contractEditorUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/8b543a22/cakeshop/sandbox.html", 32 "blockChainBrowserUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/8b543a22/cakeshop/#section=explorer", 33 "nodeConsoleUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/8b543a22/cakeshop/#section=console", 34 "status": "RUNNING", 35 "createTime": "2019-09-03T10:51:50+08:00" 36 }, 37 { 38 "uuid": "a56d49f8-61d1-41ad-9515-93743214ff10", 39 "shortId": "a56d49f8", 40 "orgUuid": "bd1f706b-965e-ea99-1071-57b5903b3d73", 41 "consortiumUuid": "35b33e7e-62f5-a875-7b39-42a5b7de3d0f", 42 "consortiumMemberUuid": "e0e7cf90-5255-43e9-9615-7aff3b6fdd59", 43 "userId": "eca97e148cb74e9683d7b7240829d1ff", 44 "cluster_id": "c-46htTIfQ", 45 "type": "transactionNode", 46 "nodeConfig": { 47 "targetGasLimit": 4294967295, 48 "maxPeer": 25, 49 "syncMode": "full", 50 "gasPrice": 0, 51 "blockPeriod": 5, 52 "istanbulRequestTimeout": 10000, 53 "cpuLimit": 0, 54 "memoryLimit": 0 55 }, 56 "coinbase": "0xe539E83F8a6E402dea476fF8A61A202f0A1c8E83", 57 "keystore": "...", 58 "contractKey": "LfVoXHNhPID+MYwQa5e60KlLThyTM2GXNcuEx6RoViY=", 59 "jsonRPC": "http://xxx:8081/quorum-jsonrpc/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/a56d49f8", 60 "contractEditorUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/a56d49f8/cakeshop/sandbox.html", 61 "blockChainBrowserUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/a56d49f8/cakeshop/#section=explorer", 62 "nodeConsoleUrl": "http://xxx:8081/quorum-cakeshop/e0e7cf90-5255-43e9-9615-7aff3b6fdd59/a56d49f8/cakeshop/#section=console", 63 "status": "RUNNING", 64 "createTime": "2019-09-03T10:51:51+08:00" 65 } 66 ] 67}