Created 06-13-2019 11:57 AM
Hi Team,
I have been working with CM API lately to do some automations. One of the task that I have now is to be able to automate role instance addition on an existing Cluster host, for ex: spining a nodemanager on a cluster host.
I tried searching for CM API calls for the same but couldn't find anything directly related , maybe you know?
Thanks in advance
Regards
Created 06-17-2019 07:17 AM
Please review the CM API docs
Posting a role object will make CM create that role e.g. http://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_rol...
You may want to look into this end-to-end example in python as well.
Created 06-26-2019 10:10 AM
Thanks , I was using that endpoint for GET so far, didn't realised could use POST calls on that as well.
I'll give it a go and get back.