nerdexam
Splunk

SPLK-2003 · Question #38

Which Phantom API command is used to create a custom list?

The correct answer is B. phantom.create_list(). The Phantom API command to create a custom list is phantom.create_list(). This command takes a list name and an optional description as parameters and returns a list ID if successful. The other commands are not valid Phantom API commands. phantom.add_list() is a Python function…

Working with the API

Question

Which Phantom API command is used to create a custom list?

Options

  • Aphantom.add_list()
  • Bphantom.create_list()
  • Cphantom.include_list()
  • Dphantom.new_list()

How the community answered

(60 responses)
  • A
    5% (3)
  • B
    87% (52)
  • C
    2% (1)
  • D
    7% (4)

Explanation

The Phantom API command to create a custom list is phantom.create_list(). This command takes a list name and an optional description as parameters and returns a list ID if successful. The other commands are not valid Phantom API commands. phantom.add_list() is a Python function that can be used in custom code blocks to add data to an existing list. To create a custom list in Splunk Phantom, the appropriate API command used is phantom.create_list(). This function allows for the creation of a new list that can be used to store data such as IP addresses, file hashes, or any other information that you want to track or reference across multiple playbooks or within different parts of the Phantom platform. The custom list is a flexible data structure that can be leveraged for various use cases within Phantom, including data enrichment, persistent storage of information, and cross-playbook data sharing.

Topics

#custom list#Phantom API#phantom.create_list#API commands

Community Discussion

No community discussion yet for this question.

Full SPLK-2003 Practice