Create New Blockchain Platform Instance
post
/api/v1/blockchainPlatforms/instances
Create a new Blockchain Platform instance.
Request
Supported Media Types
- multipart/form-data
Form Parameters
-
payload(required):
Details for the new service.
Response
Supported Media Types
- application/json
202 Response
Accepted
Headers
-
Location: string
Location header with a URL to query the status of the request.
-
Retry-After: integer
Retry after N number of seconds.
400 Response
Bad request
401 Response
Not authorized
409 Response
Operation conflict
Root Schema : Error
Type:
object
Error 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
Default Response
Unknown error
Root Schema : Error
Type:
object
Error 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
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": "obpinstance1", "desc": "test instance", "platformRole": "founder", "configuration": "Developer", "domainName": "example.com", "peer": 4, }
Example of the Response Body
The following example shows the contents of the response body:
202 Accepted