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
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

List of channels meeting query criteria
Body ()
Root Schema : channels
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : mspIds
Type: array
Show Source

400 Response

Invalid arguments
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

500 Response

Internal server error
Body ()
Root Schema : 500errorModels
Type: object
Show Source

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top