Get Peer List
get
/console/admin/api/v2/nodes/peers
Lists peers in a specific channel. If no parameter is specified, all peers will be returned. If specified by channelName, the peers which have joined the channel will be returned. If specified by chaincode, the peers which have installed the chaincode will be returned.
Request
Supported Media Types
- application/json
Query Parameters
-
chaincode: string
Chaincode name
-
channelName: string
Channel name
Response
Supported Media Types
- application/json
200 Response
Response with peers listed
Nested Schema : peer2
Type:
Show Source
object
-
displayName:
string
-
eventUrl:
string
-
mspId:
string
-
peerId(required):
string
-
status:
string
Allowed Values:
[ "up", "down" ]
-
url:
string
400 Response
Invalid arguments
401 Response
Unauthorized
500 Response
Internal server error
Default Response
Unexpected error