Sanjiv, Here's an example of how to use curl to POST a storage plugin: http://vicenteg.github.io/drill/2015/12/18/posting-drill-storage-plugin-with-ssl.html
And here's an example of what a storage plugin JSON file looks like, for hive in this case. Note the field "enabled": true. So you don't need to worry about what that javascript call is doing, but it's probably just POSTing the contents of the text pane from the UI. https://github.com/vicenteg/ansible-mapr_drill/blob/master/templates/hive-storage-plugin.json.j2 Note also that the JSON above is really a jinja template, so is only a valid plugin after jinja does its substitutions. --vince ---- Vince Gonzalez Systems Engineer 212.694.3879 mapr.com On Fri, Jul 8, 2016 at 8:33 AM, Sanjiv Kumar <[email protected]> wrote: > Hello > > When i debug the storage plugin enable or disable button, there they > calling on button function() :- onclick="doEnable('StoragePlugin > Name", true) [function]. > > > I want to know how to call doEnable() [function()] for > enabling or disabling storage plugin. > > Is there any way to call that function(doEnable())? > > > ...................... > Thanks & Regards > *Sanjiv Kumar* >
