Scale Out a Blockchain Platform Instance
post
/api/v1/blockchainPlatforms/instances/{id}/scaleout
Scale out a Blockchain Platform instance.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
Unique platform instance identifier
Request payload in JSON
Root Schema : ScaleOutPayload
Type:
objectScale out payload
Show Source
-
newOrderer(required):
object ScaleOutOrdererDetails
Orderer details to be added
-
newPeer(required):
object ScaleOutPeerDetails
Peer details to be added
-
newReplicas(required):
object ScaleOutReplicaNumberDetails
One node (service) number to be added
Nested Schema : ScaleOutOrdererDetails
Type:
objectOrderer details to be added
Show Source
-
logLevel:
string
Allowed Values:
[ "PANIC", "ERROR", "WARNING", "INFO", "NOTICE", "DEBUG" ]Peer log level -
org:
string
Organization name
Nested Schema : ScaleOutPeerDetails
Type:
objectPeer details to be added
Show Source
-
alias:
string
Peer alias
-
logLevel:
string
Allowed Values:
[ "PANIC", "ERROR", "WARNING", "INFO", "NOTICE", "DEBUG" ]Peer log level -
org:
string
Organization name
-
role:
string
Allowed Values:
[ "Member", "Admin" ]Peer role
Nested Schema : ScaleOutReplicaNumberDetails
Type:
objectOne node (service) number to be added
Show Source
-
CA(required):
integer
CA replicas number to add
-
proxy(required):
integer
REST proxy replicas number to add
Response
Supported Media Types
- application/json
202 Response
401 Response
Not authorized
404 Response
Invalid parameters
409 Response
Operation conflict
Root Schema : Error
Type:
objectError information.
Show Source
-
errors:
array errors
List of errors
-
message(required):
string
A human-readable error string.
-
status(required):
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings:
array warnings
List of warnings
500 Response
Service unavailable
Examples
This endpoint is used to scale out a particular Blockchain platform instance.
You can scale out an instance using any of the following methods:
- Create New VMs: adds a new VM to the cluster; platform host, chaincode host, or Zookeeper/Kafka host.
- Create New Replicas: adds additional nodes; REST proxy or CA.
- Create New Peers: adds one additional peer at a time.
The following example shows how to query and scale out a particular Blockchain Platform instance by submitting a POST request on the REST resource using cURL:
curl -X POST \
http://<hostname>:<port>/api/v1/blockchainPlatforms/instances/e1f7bcfe-cc7e-4d19-97fb-772b231fcf99/scaleout \
-H 'Authorization: Basic b2JwdXNlcjpXZWxjb21lMQ==' \
-H 'Content-Type: application/json'
Example of the Request Body
The following example shows the contents of the request body in JSON format:
{
"newPeers": [
{
"org": "currentinstance",
"role": "Member",
"logLevel": "PANIC",
"alias": "abcd",
"vm": "myvm.oracle.com"
}
]
}
Example of the Response Body
The following example shows the contents of the response body:
202 Accepted