Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<localhost>:8192/api/cluster/flexup

 

Request Examples

The following request example expands the size of the cluster.

Code Block
{
  "instances":1, "profile": "small"
}

The following request example shrinks (flex down) the size of the cluster for one instance.

Code Block
{
  "instances":1
}

 

 

Request header for a flex down request and a request payload of 1 instance:

Code Block
PUT /api/cluster/flexdown HTTP/1.1
Host: 10.10.100.19:8192
Connection: keep-alive
Content-Length: 17
Origin: http://10.10.100.19:8192
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Content-Type: application/json
Accept: */*
Referer: http://10.10.100.19:8192/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

 

Request header for one instance and the profile set to mediumRequest header for a flex down request and a request payload of 1 instance:

Code Block
PUT /api/cluster/flexdownflexup HTTP/1.1
Host: 10.10.100.19:8192
Connection: keep-alive
Content-Length: 1736
Origin: http://10.10.100.19:8192
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Content-Type: application/json
Accept: */*
Referer: http://10.10.100.19:8192/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

 

Request payload of one instance and the profile set to medium:

Code Block
{profile: "medium", instances: "1"}

 

Request payload that sets one instance in the cluster and the profile set to small:

Code Block
{
  "instances":1, "profile": "small"
}

Request payload that sets one instance in the cluster and the profile set to zero:

Code Block
{
  "instances":1
}

Curl request example that sets the flexup profile to small:

...