These APIs will be called by front web services.
Latest version please see restserver.yaml.
Find an available cluster in the pool for a user.
GET /v1/cluster_apply?user_id=xxx&consensus_plugin=pbft&consensus_mode =classic&size=4&new=0
new=1, then ignore matched clusters that user already occupy.
cluster_apply request arrives, the server will try checking available cluster in the pool.
Accordingly, the server will return a json response (succeed or fail).
Declare the id to release a cluster.
Rlease all clusters under a user account.
The server will drop the corresponding cluster, recreate it and put into available pool for future requests.
Those APIs should not be called by outside applications. Just for information, please see api-admin.yaml
This work is licensed under a Creative Commons Attribution 4.0 International License.