SPLK-2003 · Question #9
Is it possible to import external Python libraries such as the time module?
The correct answer is C. Yes, in the global block. In Splunk SOAR, it is possible to import external Python libraries, such as the time module, within the scope of a playbook's global code block. The global block allows users to define custom Python code, including imports of standard Python libraries that are included in the…
Question
Is it possible to import external Python libraries such as the time module?
Options
- ANo.
- BNo, but this can be changed by setting the proper permissions.
- CYes, in the global block.
- DYes. from a drop down menu.
How the community answered
(56 responses)- A2% (1)
- B4% (2)
- C88% (49)
- D7% (4)
Explanation
In Splunk SOAR, it is possible to import external Python libraries, such as the time module, within the scope of a playbook's global code block. The global block allows users to define custom Python code, including imports of standard Python libraries that are included in the Phantom platform's Python environment. This capability enables the extension of playbooks' functionality with additional Python logic, making playbooks more powerful and versatile in their operations.
Topics
Community Discussion
No community discussion yet for this question.