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: string
ID of peer to patch
Updated peer attributes
Root Schema : peerPatchAttributes
Type:
Show Source
object
-
alias(optional):
string
-
chaincode(optional):
object chaincode
-
eventService(optional):
object eventService
-
gossip(optional):
object gossip
-
gossipElection(optional):
object gossipElection
-
logLevel(optional):
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ]
Nested Schema : chaincode
Type:
Show Source
object
-
executeTimeout(optional):
integer
Default Value:
30
Example:30
-
installTimeout(optional):
integer
Default Value:
300
Example:300
-
keepalive(optional):
integer
-
logLevel(optional):
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ]
-
mode(optional):
string
Allowed Values:
[ "dev", "net" ]
-
shimLevel(optional):
string
Allowed Values:
[ "DEBUG", "FATAL", "ERROR", "WARNING", "TRACE", "INFO" ]
-
startupTimeout(optional):
integer
Default Value:
300
Example:300
Nested Schema : eventService
Type:
Show Source
object
-
bufferSize(optional):
integer
Default Value:
100
Example:100
-
timeout(optional):
integer
Default Value:
10
Example:10
Nested Schema : gossip
Type:
Show Source
object
-
aliveExpirationTimeout(optional):
integer
Default Value:
25
Example:25
-
aliveTimeInterval(optional):
integer
Default Value:
5
Example:5
-
bootstrapPeers(optional):
string
-
connectTimeout(optional):
integer
Default Value:
2
Example:2
-
dialTimeout(optional):
integer
Default Value:
3
Example:3
-
digestWaitTime(optional):
integer
Default Value:
1
Example:1
-
maxBlockCountToStore(optional):
integer
Default Value:
100
Example:100
-
maxConnectionAttempts(optional):
integer
Default Value:
120
Example:120
-
maxPropagationBurstLatency(optional):
integer
Default Value:
10
Example:10
-
maxPropagationBurstSize(optional):
integer
Default Value:
10
Example:10
-
msgExpirationFactor(optional):
integer
Default Value:
20
Example:20
-
propagateIterations(optional):
integer
Default Value:
1
Example:1
-
propagatePeerNumber(optional):
integer
Default Value:
3
Example:3
-
publicCertPeriod(optional):
integer
Default Value:
10
Example:10
-
publishStateInfo(optional):
integer
Default Value:
4
Example:4
-
pullInterval(optional):
integer
Default Value:
4
Example:4
-
pullPeerNumber(optional):
integer
Default Value:
3
Example:3
-
receiveBufferSize(optional):
integer
Default Value:
20
Example:20
-
reconnectInterval(optional):
integer
Default Value:
25
Example:25
-
requestStateInfoInterval(optional):
integer
Default Value:
4
Example:4
-
requestWaitTime(optional):
integer
Default Value:
1500
Example:1500
-
responseWaitTime(optional):
integer
Default Value:
2
Example:2
-
sendBufferSize(optional):
integer
Default Value:
200
Example:200
-
skipBlockVerification(optional):
boolean
Default Value:
false
Example:false
Nested Schema : gossipElection
Type:
Show Source
object
-
leader(optional):
string
Allowed Values:
[ "UseLeaderElection", "OrgLeader" ]
-
leaderALiveThreshold(optional):
integer
Default Value:
10
Example:10
-
leaderElectionDuration(optional):
integer
Default Value:
5
Example:5
-
membershipSampleInterval(optional):
integer
Default Value:
1
Example:1
Response
Supported Media Types
- application/json
200 Response
Action result object
Root Schema : peerPatchActionResult
Type:
Show Source
object
-
message(optional):
string
-
status(optional):
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