Get Channel List
get
/console/admin/api/v2/channels
Get a list of channels, optionally filtering by whether they have a given chaincode instantiated or a given peer joined. If a chaincode is specified, channels on which chaincodes with the same name are committed will be returned. If peerId is specified, channels which this peer has joined will be returned.
Request
Supported Media Types
- application/json
Query Parameters
-
chaincode: string
Get channels on which chaincodes with the same name are committed
-
peerId: string
Get channels which this peer has joined
Response
Supported Media Types
- application/json
200 Response
List of channels meeting query criteria
400 Response
Invalid arguments
401 Response
Unauthorized
500 Response
Internal server error
Default Response
Unexpected error