Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5. Export app functionality #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

5. Export app functionality #12

wants to merge 1 commit into from

Conversation

joseacunacarrera
Copy link
Collaborator

@joseacunacarrera joseacunacarrera commented Oct 17, 2024

Export app with ACS API.
Note: This functionality is not working right now as per disclosed in the docs: https://docs.splunk.com/Documentation/SplunkCloud/9.2.2406/Config/ExportApps. But the script is set up for when it does.

#9

@joseacunacarrera joseacunacarrera linked an issue Oct 17, 2024 that may be closed by this pull request
Copy link
Collaborator

@macycron macycron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! TY!!!!

What does ACS=56 mean?

--data-raw '{"user" : "'$SPLUNK_STACK_USERNAME'",
"for sc_admins" : "install app victoria",
"expiresOn" : "+5d",
"audience" : "acs-test"}' )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!
Looks like we may be able to target ES vs Adhoc,
so add another variable for ENVIRONMENT that has one of the following defined.
adhc=
es=
itsi=

Copy link
Collaborator Author

@joseacunacarrera joseacunacarrera Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@macycron ACS=$5 is just assigning the ACS variable to the 6th parameter of the command. One question, we already have an ENVIRONMENT variable that corresponds to the host, would this one you are suggesting work similiar? Or where in the code would these values go? Looking at the docs I can't find where we can specify Adhoc vs ES :( Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5. Export App
2 participants