Splunk Cloud Platform

Javascript SDK Post request 404


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){
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!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...