Splunk Cloud Platform

Javascript SDK Post request 404

gate6splunk
Observer

I am trying to send Post request in Storage Password service but it is giving 404 error and sending request on 8000 port and not on 8089 port. Below is the sample code :

 

let storage_pwd = new splunk_js_sdk.Service.StoragePassword(splunk_js_sdk_service, 'test', application_name_space);
storage_pwd.post('test',{name: "Splunker",
realm: "SDK",
password: "password_here"}, function(e,r){
console.log(e,r);
})
 
common.js:1035 POST http://localhost:8000/en-US/splunkd/__raw/servicesNS/nobody/test/storage/passwords/test/test?output_mode=json
404 (Not Found)
 
Any help will be appreciable.
0 Karma
Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...