Scale In a Blockchain Platform Instance

post

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

Scale in a Blockchain Platform instance.

Request

Supported Media Types
Path Parameters
Body ()
request payload in JSON
Root Schema : ScaleInPayload
Type: object
scaleIn payload
Show Source
Nested Schema : ScaleInNodes
Type: object
ScaleIn node details
Show Source
Nested Schema : peer
Type: array
Peer hostnames
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted
Headers

401 Response

Unauthorized
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

404 Response

Not Found
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

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

Internal Server Error
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
Back to Top

Examples

This endpoint is used to scale in a particular Blockchain Platform instance.

The following example shows how to query and scale in 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/scalein \
  -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:

{
  "nodes": {
    "peer": [
      "e1f7bcfe-cc7e-4d19-97fb-772b231fcf99-peer0"
    ]
  }
}'

Example of the Response Body

The following example shows the contents of the response body:

202 Accepted
Back to Top