Endpoint in client for changing port(s) (server/settings)
It is possible to change the port of Splunk via the rest endpoint. if you hit the http://docs.splunk.com/Documentation/Splunk/4.3.3/RESTAPI/RESTsystem#POST_server.2Fsettings.2F.7Bname.7D endpoint. It would be really nice to be able to do this since the current only way of doing it in my framework is by executing the binary.
Example:
~> curl -k -u admin:changeme https://localhost:8089/services/server/settings/settings -d httpport=990
@parhamfh thank you - we will work on adding this in.
In the meantime, you can easily do this using something along the following lines:
service = client.connect(...);
service.post("/services/server/settings/settings", httpport=990)
Thank you, @itay !
I basically did this
PATH_SERVER_SETTINGS = 'server/settings/settings/'
self._server_settings_endpoint = Endpoint(self._service, self.PATH_SERVER_SETTINGS)
as a temporary work around and I use it by using Endpoint class' post() function.
Glad to hear it worked. We'll try and add support soon.
Is there a JIRA for this?
DVPL-1184