SPLK-2003 · Question #109
When writing a custom function that uses regex to extract the domain name from a URL, a user wants to create a new artifact for the extracted domain. Which of the following Python API calls will…
The correct answer is C. phantom.create_artifact (). In the Splunk SOAR platform, when writing a custom function in Python to handle data such as extracting a domain name from a URL, you can create a new artifact using the Python API call phantom.create_artifact(). This function allows you to specify the details of the new…
Question
When writing a custom function that uses regex to extract the domain name from a URL, a user wants to create a new artifact for the extracted domain. Which of the following Python API calls will create a new artifact?
Options
- Aphantom.new_artifact ()
- Bphantom. update ()
- Cphantom.create_artifact ()
- Dphantom.add_artifact ()
How the community answered
(43 responses)- A2% (1)
- B2% (1)
- C95% (41)
Explanation
In the Splunk SOAR platform, when writing a custom function in Python to handle data such as extracting a domain name from a URL, you can create a new artifact using the Python API call phantom.create_artifact(). This function allows you to specify the details of the new artifact, such as the type, CEF (Common Event Format) data, container it belongs to, and other relevant information necessary to create an artifact within the system.
Topics
Community Discussion
No community discussion yet for this question.