FileToBase64List

Encode a file as base64 and store it in a Demisto list.

python · Common Scripts

Details

IDFileToBase64List
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
TagsUtility list

README

Encode a file as base64 and store it in a XSOAR list.

Script Data


Name Description
Script Type python2
Tags Utility, list
Cortex XSOAR Version 5.0.0

Used In


This script is used in the following playbooks and scripts.

  • Get Mails By Folder Pathes
  • Get Mails By Folder Paths

Inputs


Argument Name Description
entryId The file entry ID.
listName The list name in which to store the file. The list must exist in Demisto.
zipFile Whether to zip the file before storing it in the list.

Outputs


There are no outputs for this script.

args:
- description: The file entry ID.
  name: entryId
  required: true
- description: The list name in which to store the file. The list must exist in Demisto.
  name: listName
  required: true
- auto: PREDEFINED
  defaultValue: 'false'
  description: Whether to zip the file before storing it in the list.
  name: zipFile
  predefined:
  - 'true'
  - 'false'
comment: |
  Encode a file as base64 and store it in a Demisto list.
commonfields:
  id: FileToBase64List
  version: -1
enabled: true
name: FileToBase64List
script: '-'
tags:
- Utility
- list
timeout: '0'
type: python
subtype: python3
runas: DBotWeakRole
tests:
- No Test
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775