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
scaleOut payload
Show Source
Nested Schema : newPeers
Type: array
New peers list
Show Source
Nested Schema : ScaleOutReplicaNumberDetails
Type: object
One node(service) number to be added
Show Source
Nested Schema : ClusterCreationDetails
Type: object
VM to construct cluster
Show Source
Nested Schema : ScaleOutPeerDetails
Type: object
One peer details to be added
Show Source
Nested Schema : crcHosts
Type: array
CRC VM list, not in swarm
Show Source
Nested Schema : platformHosts
Type: array
Manager VM list: hostname or IP. For VM with multiple IPs, this must be IP, and it must include the current called Component Manager
Show Source
Nested Schema : zkHosts
Type: array
Kafka/ZooKeeper Service VM list, in swarm
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