- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-09-2023 01:31 PM
Was looking at running a backup job for our custom content with the below playbook.
https://cortex.marketplace.pan.dev/marketplace/details/XSOARSimpleDevToProd/
The issue with this is it checks for Demisto REST API to see if the instance Demisto Dev had been created.
The Demisto Rest API has been depreciated, so the call !IsDemistoRestAPIInstanceAvailable, always fails.
Since I cannot install the Demisto Rest API content pack, I edited the Automation script to check for Core REST API instead, and that is successful. I haven't dug into the playbook enough to see if it would run, or if there were specific commands for the Demisto API version that would cause it to fail.
Was wondering if anyone was using this content and had similar issues?
10-10-2023 02:12 PM
Correct. I made two changes in total:
I duplicated IsDemistoRestAPIInstanceAvailable and edited line 5 to be brandName = "CORE REST API" instead of brandName = "Demisto REST API".
I then duplicated 'JOB - XSOAR - Export Selected Custom Content' and edited the task "Is the Demisto Dev REST API integration instance enabled?" to use the new IsDemistoRestAPIInstanceAvailable script I just modified.
Alternatively you could remove that task entirely and the Yes/No branch. Then, you wouldn't have to modify the Automation Script, but in the end, I felt the check was worth keeping around. Plus, I'm new to XSOAR and wanted to try the more complex way of doing it.
10-10-2023 01:36 PM
I too tried it out this week and ran into the same issue. I had to update the Playbook 'JOB - XSOAR - Export Selected Custom Content' to use my duplicated and fixed version of the automation script before it would run successfully. But the resulting export did work fine.
10-10-2023 01:57 PM
Thank you for the info,
Just to verify: You copied and edited the IsDemistoRestAPIInstanceAvailable Automation to use "Core REST API" instead of the Demisto one. Then pointed the playbook to the new/duplicated automation.
I just want to make sure I'm not breaking anything when I run the new automation.
10-10-2023 02:12 PM
Correct. I made two changes in total:
I duplicated IsDemistoRestAPIInstanceAvailable and edited line 5 to be brandName = "CORE REST API" instead of brandName = "Demisto REST API".
I then duplicated 'JOB - XSOAR - Export Selected Custom Content' and edited the task "Is the Demisto Dev REST API integration instance enabled?" to use the new IsDemistoRestAPIInstanceAvailable script I just modified.
Alternatively you could remove that task entirely and the Yes/No branch. Then, you wouldn't have to modify the Automation Script, but in the end, I felt the check was worth keeping around. Plus, I'm new to XSOAR and wanted to try the more complex way of doing it.
10-23-2023 08:15 AM
I'm the author, this Pack will likely be deprecated when XSOAR 8 is the standard, I'll submit a fix to have it account for either the Demisto Rest API or Core Rest API integrations.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!