Versions Compared

Key

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

...

Code Block
<resource_manager_host>:8192/api/cluster/flexup
	-d profile=<zero|small|medium|large>
	-d instances=<integer>
	-d constraints=<["JSON array of strings"]>
<resource_manager_host>:8192/api/cluster/flexdown
	-d profile=<zero|small|medium|large>
	-d instances=<integer>
	-d constraints=<["JSON array of strings"]>

 

Request Examples

Curl request example to flexup two instances with the profile set to small:

Code Block
curl -X PUT http://10.10.100.19:8192/api/cluster/flexup flexup 
	-d instances=2 -d profile=small

 

Curl request example to flexdown one instance with the profile set to small:

Code Block
curl -X PUT http://10.10.100.19:8192/api/cluster/flexdown flexdown 
	-d instances=1 -d profile=small

 

Curl request example to launch two (2) Node Managers with profile set to large only on specific hosts, host-120 through host-129:

Code Block
curl -X PUT http://10.10.100.19:8192/api/cluster/flexdown flexdown 
	-d instances=2 -d profile=large large 
	-d constraints=["hostname LIKE host-12[0-9].example.com"]
 

Request header to flexup:

...