GetListContent

Returns the content of the List with the given Name as a string or JSON object, depending on the selected `type`.

python · Filters And Transformers

Details

IDGetListContent
Languagepython
From Version6.10.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagstransformer

README

Returns the content of the List with the given Name as a string or JSON object, depending on the selected type.

Script Data


Name Description
Script Type python3
Tags transformer
Cortex XSOAR Version 6.10.0

Inputs


Argument Name Description
value The name of the List to open.
type The format to return the list content in, such as ‘json’ or ‘string’. The Type does not have to match the format configured in the list, but controls how the content of the list is handled.

Outputs


There are no outputs for this script.

Script Examples

Example command

!GetListContent value="list_name"

Context Example

{}

Human Readable Output

None

Example command

!GetListContent value="list_name" type=json

Context Example

{}

Human Readable Output

None

Example command

!GetListContent value="list_name" type=string

Context Example

{}

Human Readable Output

None

args:
- name: value
  description: The name of the List to open.
- name: type
  auto: PREDEFINED
  predefined:
  - string
  - json
  defaultValue: string
  description: The format to return the list content in, such as 'json' or 'string'. The Type does not have to match the format configured in the list, but controls how the content of the list is handled.
comment: Returns the content of the List with the given Name as a string or JSON object, depending on the selected `type`.
commonfields:
  id: GetListContent
  version: -1
enabled: true
name: GetListContent
outputs:
script: '-'
system: false
tags:
- transformer
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.13.10404775
fromversion: 6.10.0
marketplaces:
- xsoar
- marketplacev2
tests:
- No tests (auto formatted)