The Cluster REST API uses the PUT /api/cluster/flexup
and flex down
HTTP method and URI to expand and shrink the cluster size
HTTP Method and URI
PUT /api/cluster/flexup // Expands the size of the cluster. PUT /api/cluster/flexdown // Shrinks the size of the cluster.
Syntax
<localhost>:8192/api/cluster/flexup
Request Examples
The following request example expands the size of the cluster.
{ "instances":1, "profile": "small" }
The following request example shrinks the size of the cluster.
{ "instances":1 }
Curl request example the sets the flexup profile to small:
curl -X PUT http://10.10.100.19:8192/api/cluster/flexup?profiles=small
Response Example
200 ok