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:
30
Example:30
-
installTimeout:
integer
Default Value:
300
Example: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:
300
Example:300
Nested Schema : eventService
Type:
Show Source
object
-
bufferSize:
integer
Default Value:
100
Example:100
-
timeout:
integer
Default Value:
10
Example:10
Nested Schema : gossip
Type:
Show Source
object
-
aliveExpirationTimeout:
integer
Default Value:
25
Example:25
-
aliveTimeInterval:
integer
Default Value:
5
Example:5
-
bootstrapPeers:
string
-
connectTimeout:
integer
Default Value:
2
Example:2
-
dialTimeout:
integer
Default Value:
3
Example:3
-
digestWaitTime:
integer
Default Value:
1
Example:1
-
maxBlockCountToStore:
integer
Default Value:
100
Example:100
-
maxConnectionAttempts:
integer
Default Value:
120
Example:120
-
maxPropagationBurstLatency:
integer
Default Value:
10
Example:10
-
maxPropagationBurstSize:
integer
Default Value:
10
Example:10
-
msgExpirationFactor:
integer
Default Value:
20
Example:20
-
propagateIterations:
integer
Default Value:
1
Example:1
-
propagatePeerNumber:
integer
Default Value:
3
Example:3
-
publicCertPeriod:
integer
Default Value:
10
Example:10
-
publishStateInfo:
integer
Default Value:
4
Example:4
-
pullInterval:
integer
Default Value:
4
Example:4
-
pullPeerNumber:
integer
Default Value:
3
Example:3
-
receiveBufferSize:
integer
Default Value:
20
Example:20
-
reconnectInterval:
integer
Default Value:
25
Example:25
-
requestStateInfoInterval:
integer
Default Value:
4
Example:4
-
requestWaitTime:
integer
Default Value:
1500
Example:1500
-
responseWaitTime:
integer
Default Value:
2
Example:2
-
sendBufferSize:
integer
Default Value:
200
Example:200
-
skipBlockVerification:
boolean
Default Value:
false
Example:false
Nested Schema : gossipElection
Type:
Show Source
object
-
leader:
string
Allowed Values:
[ "UseLeaderElection", "OrgLeader" ]
-
leaderALiveThreshold:
integer
Default Value:
10
Example:10
-
leaderElectionDuration:
integer
Default Value:
5
Example:5
-
membershipSampleInterval:
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:
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