Update Peer Node Configuration
patch
/console/admin/api/v2/nodes/peers/{peerId}
Use this endpoint to modify the configuration attributes of a peer.
Request
Supported Media Types
- application/json
Path Parameters
-
peerId(required): string
ID of peer to patch
Updated peer attributes
Root Schema : peerPatchAttributes
Type:
Show Source
object-
alias:
string
-
chaincode:
object chaincode
-
eventService:
object eventService
-
gossip:
object gossip
-
gossipElection:
object gossipElection
-
logLevel:
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ]
Nested Schema : chaincode
Type:
Show Source
object-
executeTimeout:
integer
Default Value:
30Example:30 -
installTimeout:
integer
Default Value:
300Example:300 -
keepalive:
integer
-
logLevel:
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ] -
mode:
string
Allowed Values:
[ "dev", "net" ] -
shimLevel:
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ] -
startupTimeout:
integer
Default Value:
300Example:300
Nested Schema : eventService
Type:
Show Source
object-
bufferSize:
integer
Default Value:
100Example:100 -
timeout:
integer
Default Value:
10Example:10
Nested Schema : gossip
Type:
Show Source
object-
aliveExpirationTimeout:
integer
Default Value:
25Example:25 -
aliveTimeInterval:
integer
Default Value:
5Example:5 -
bootstrapPeers:
string
-
connectTimeout:
integer
Default Value:
2Example:2 -
dialTimeout:
integer
Default Value:
3Example:3 -
digestWaitTime:
integer
Default Value:
1Example:1 -
maxBlockCountToStore:
integer
Default Value:
100Example:100 -
maxConnectionAttempts:
integer
Default Value:
120Example:120 -
maxPropagationBurstLatency:
integer
Default Value:
10Example:10 -
maxPropagationBurstSize:
integer
Default Value:
10Example:10 -
msgExpirationFactor:
integer
Default Value:
20Example:20 -
propagateIterations:
integer
Default Value:
1Example:1 -
propagatePeerNumber:
integer
Default Value:
3Example:3 -
publicCertPeriod:
integer
Default Value:
10Example:10 -
publishStateInfo:
integer
Default Value:
4Example:4 -
pullInterval:
integer
Default Value:
4Example:4 -
pullPeerNumber:
integer
Default Value:
3Example:3 -
receiveBufferSize:
integer
Default Value:
20Example:20 -
reconnectInterval:
integer
Default Value:
25Example:25 -
requestStateInfoInterval:
integer
Default Value:
4Example:4 -
requestWaitTime:
integer
Default Value:
1500Example:1500 -
responseWaitTime:
integer
Default Value:
2Example:2 -
sendBufferSize:
integer
Default Value:
200Example:200 -
skipBlockVerification:
boolean
Default Value:
falseExample:false
Nested Schema : gossipElection
Type:
Show Source
object-
leader:
string
Allowed Values:
[ "UseLeaderElection", "OrgLeader" ] -
leaderALiveThreshold:
integer
Default Value:
10Example:10 -
leaderElectionDuration:
integer
Default Value:
5Example:5 -
membershipSampleInterval:
integer
Default Value:
1Example:1
Response
Supported Media Types
- application/json
200 Response
Action result object
Root Schema : peerPatchActionResult
Type:
Show Source
object-
message:
string
-
status:
string
Allowed Values:
[ "SUCCESS" ]
400 Response
Invalid arguments
401 Response
Unauthorized
403 Response
Forbidden
404 Response
Not found
500 Response
Internal server error
Default Response
Unexpected error