Deployment Architecture

Is there a Splunk REST call to 1) create a serverclass and 2) add a server to an existing serverclass?

a212830
Champion

Hi,

We are working on using chef to automate some Splunk provisioning. Is there a REST call to 1) create a serverclass and 2) add a server to an existing serverclass?

swbodie
Path Finder

I believe what you are looking for is this endpoint:

http://docs.splunk.com/Documentation/Splunk/6.2.5/RESTREF/RESTdeploy#deployment.2Fserver.2Fservercla...

You would use the post method to create a new serverclass on: deployment/server/serverclasses

To modify you would use the post method on: deployment/server/serverclasses/{name}

Hope this helps.

0 Karma

hexxamillion
Explorer

This is interesting because I have the same question. I suppose we need to use the whitelist parameter. The challenge I see is that how do you know what order number to use when adding them to the list? Is the API smart enough to add the server in the next sequential number? Too bad Splunk has these number orders for serverclass. It's not very friendly from an administration perspective. We actually have verion 7.2.0 now. Any suggestions on the best way to add a server if you do not know the whitelist order number using the API?

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...