What are the steps to create worker group via CLI?
Warner Cheng
Posts: 4 ✭
in Stream
0
Answers
-
I do not believe there is a way today to create a worker group via CLI:
It is possible via the REST API. See POST /master/groups1 -
Using the API can be daunting, but your browser can help a lot. All GUI interactions are using the API, so if you go into developer mode and check what happens when you take an action, you can pretty easily replicate it with curl. For the case of new worker group, I came up with this:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" https://leader-node/api/v1/master/groups -d '{"onPrem":true,"isFleet":false,"workerRemoteAccess":true,"isSearch":false,"id":"NewGroupNameHere","description":"A new group for fun and profit"}'
1 -
Thank you Brendan and Jon!
0