Deployment Architecture

Is there a REST API call to apply shcluster-bundle with the deployer?

Kyle_Jackson
Explorer

We need a fast and easy way to push changes to our three search head clusters and need a way to deploy updated configuration bundles with a curl cmd.

I.E.

curl -k -u admin:changeme https://<deployer>:8089/services/shcluster/member/consensus

xpac
SplunkTrust
SplunkTrust

As this is still the #1 Google search result for this question, I'll cross reference an Answers solution to this issue:
https://answers.splunk.com/answers/320626/what-is-the-curl-command-used-on-the-deployer-to-a.html#an...

It seems that this API endpoint is not documented in the REST API docs though.

gjanders
SplunkTrust
SplunkTrust

Have you sent docs feedback to have it added? Thanks

0 Karma

ben_leung
Builder

What is the official rest endpoint for the OP's question? I am interested in learning this as well, along with the valid arguments passed. Please post a documentation page for this.

0 Karma

tsteens
Explorer

Did you figure this out?

0 Karma

Kyle_Jackson
Explorer

Functionality currently does not exist. Needs to though, our org is getting to the point where we will not be able to log into PR servers without a ticket, and i don't want to have to raise a ticket to deploy something with the deployer. We will most likely have to write an api when that time comes. 😞

0 Karma

tsteens
Explorer

I'm not a 100% sure, but I believe I've been told that the CLI also uses the REST API. You may be able to figure out which endpoint to hit by capturing traffic going in to splunkd. However, as long as it's not documented this may change without warning in future releases.

0 Karma

muebel
SplunkTrust
SplunkTrust

Based on the shcluster/member/consensus endpoint you included in the question, it seems you have perused the REST API Reference : http://docs.splunk.com/Documentation/Splunk/6.3.0/RESTREF/RESTknowledge

Unfortunately there doesn't seem to be an endpoint to initiate a SHC deploy. The closest you could get would be to setup some other system to remotely call the command on the deployer through the CLI.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

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 ...