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