Create New Blockchain Platform Instance

post

/api/v1/blockchainPlatforms/instances

Create a new Blockchain Platform instance.

Request

Supported Media Types
Form Parameters
  • A zip file containing TLS CA certificate file[tls-ca.pem], and optional TLS cert and key file[tls-cert.pem, tls-key.pem] for LBR client.
  • Details for the new service.
  • A zip file containing third party CA certificates. The CA key and certificate files used when issuing enrollment certificates (ECerts) and transaction certificates (TCerts). The chainfile (if it exists) contains the certificate chain which should be trusted for this CA, where the first in the chain is always the root CA certificate. File list in zip file [ca-cert.pem,ca-key.pem,ca-chain.pem(optional)].
Back to Top

Response

Supported Media Types

202 Response

Accepted
Headers

400 Response

Bad Request

401 Response

Not authorized

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

Default Response

Unknown 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 create a new Blockchain Platform instance.

The following example shows how to query and create a new Blockchain instance by submitting a POST request on the REST resource using cURL:

curl -X POST \
  http://<hostname>:<port>/api/v1/blockchainPlatforms/instances \
  -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:

{
"name":"myNATinstf1",
"desc":"test instance",
"platformRole":"founder",
"configuration":"Developer",
"peer":4,
"cluster":{
"platformHosts":[
"localhost"
],
"zkHosts": [ "localhost" ]
},
"additionalConfiguration":{
"instanceFQDN":"",
"startPort":0,
"enableTLS":true
}
}

Example of the Response Body

The following example shows the contents of the response body:

202 Accepted
Back to Top