Set Anchor Peers for Channel
post
/console/admin/api/v2/channels/{channelName}/organizations/{mspId}/anchorPeers
Each member on your network must designate an anchor peer. Anchor peers are primary network contact points and are used to discover additional peers in the network. You can designate one or more peers in your organization as an anchor peer on a channel. For a high availability network, you can specify two or more anchor peers. All members using the network channel must designate one or more of their peer nodes as anchor peers.
Request
Supported Media Types
- application/json
Path Parameters
-
channelName(required): string
Channel name
-
mspId(required): string
Organization ID
The host and port of the anchor peers
Root Schema : setAnchorPeers
Type:
Show Source
object
Example:
{
"anchorPeers":[
{
"host":"org1.example.com",
"port":"20007"
}
]
}
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : schema
Type:
object
Example:
{
"status":"Success"
}
400 Response
Invalid arguments
401 Response
Unauthorized
403 Response
Forbidden
500 Response
Internal server error
Default Response
Unexpected error