Splunk Cloud Platform

How to use api "adminconfig/v2/access/outbound-ports" to create an outbound port?

hal2004
Loves-to-Learn

I'm trying to create an outbound port on our splunk cloud instance without any luck.

curl -X POST 'https://admin.splunk.com/important-iguana-u5q/adminconfig/v2/access/outbound-ports' \
--header 'Authorization: Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnI...' \
--header 'Content-Type: application/json' \
--data-raw '{
   "outboundPorts": [{"subnets": ["34.226.34.80/32", "54.226.34.80/32"], "port": 8089}],
   "reason": "testing federated search connection"
}'

 following the documentation I receive error

code""404-stack-not-found",
    "message""stack not found. Please refer https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSerrormessages for general troubleshooting tips."
}

 

I've also try to import the curl under postman ma also there same answer ...

 

Could anyone face same issue

kr

Sandro

Tags (1)
0 Karma

hal2004
Loves-to-Learn

@dhruv , this is the status

{
    "infrastructure": {
        "stackType""victoria",
        "stackVersion""9.0.2303.202",
        "status""Ready"
    },
    "messages": {
        "restartRequired"false
    }
}
 
but you are right, checking the curl with another stack it works , I will ask to support what about this stack
Thanks a lot
0 Karma

dhruv
Explorer

Hey @hal2004 ,

You need to replace "important-iguana-u5q" with your Splunk Cloud Stack ID.

i.e. If your Splunk Cloud URL is https://abc.splunkcloud.com then use "abc" as your Stack ID.

0 Karma

hal2004
Loves-to-Learn

ciao @dhruv , thanks for your answer

yes, I've pasted the example of the documentation but I ran it with the correct stack name and correct token but it doesn't work anyway. 

 

0 Karma

dhruv
Explorer

@hal2004 , The error that you have mentioned indicates that the stack name is not right.

Can you try to curl below URL to get the status of your stack : 
https://admin.splunk.com/{stack}/adminconfig/v2/status

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...