Set Anchor Peers for a 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
Path Parameters
Body ()
The anchor peer peer ID
Root Schema : setAnchorPeers
Type: object
Show Source
Example:
{
    "anchorPeers":[
        {
            "host":"org1.example.com",
            "port":20007
        }
    ]
}
Nested Schema : anchorPeers
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : schema
Type: object
Example:
{
    "status":"Success"
}

400 Response

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

401 Response

Unauthorized

403 Response

Forbidden

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