Update REST Proxy Node Configuration
patch
/console/admin/api/v1.1/nodes/restproxies/{restProxyId}
A REST proxy node's configuration determines how the node performs and behaves on the network. Use this endpoint to modify the REST proxy node configuration.
On Oracle Cloud Infrastructure (Gen 2), you can only use this API to configure attributes such as the wait times and log level. You can't use it to specify the channel, chaincode, or endorser or an error will be returned.
Request
Supported Media Types
- application/json
Path Parameters
-
restProxyId: string
Unique ID of the REST Proxy
Updated REST proxy configuration
Root Schema : restProxyWritableConfig
Type:
Show Source
object
-
channels:
array channels
-
logLevel(optional):
string
Allowed Values:
[ "ERROR", "WARNING", "INFO", "DEBUG" ]
-
proposalWaitTime:
integer(int32)
Default Value:
60000
Example:60000
-
transactionWaitTime:
integer(int32)
Default Value:
300000
Example:300000
Nested Schema : items
Type:
Show Source
object
-
chaincodes(optional):
array chaincodes
-
name(optional):
string
Example:
mychannel
Nested Schema : chaincodes
Type:
Show Source
array
Example:
[
{
"name":"mycc",
"endorsers":[
"peer0.org1.example.com",
"peer1.org1.example.com"
]
}
]
Response
Supported Media Types
- application/json
200 Response
Update success message
Root Schema : schema
Type:
object
Example:
{
"status":"Success",
"message":"content"
}
400 Response
Invalid argument
401 Response
Unauthorized
403 Response
Forbidden
500 Response
Internal Server Error
Default Response
Unexpected error