Scale Out a Blockchain Platform Instance

post

/api/v1/blockchainPlatforms/instances/{id}/scaleout

Scale out a Blockchain Platform instance.

Request

Supported Media Types
Path Parameters
Body ()
Request payload in JSON
Root Schema : ScaleOutPayload
Type: object
Scale out payload
Show Source
Nested Schema : ScaleOutOrdererDetails
Type: object
Orderer details to be added
Show Source
Nested Schema : ScaleOutPeerDetails
Type: object
Peer details to be added
Show Source
Nested Schema : ScaleOutReplicaNumberDetails
Type: object
One node (service) number to be added
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted
Headers

401 Response

Not authorized

404 Response

Invalid parameters

409 Response

Operation conflict
Body ()
Root Schema : Error
Type: object
Error information.
Show Source
Nested Schema : errors
Type: array
List of errors
Show Source
Nested Schema : warnings
Type: array
List of warnings
Show Source

500 Response

Service unavailable
Back to Top

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
Back to Top