CSVFeedApiModule

Common code that will be appended into each CSV feed integration when it's deployed

python · ApiModules

Details

IDCSVFeedApiModule
Languagepython
From Version5.0.0
Docker Imagedemisto/py3-tools:1.0.0.100861
Tagsinfra server

README

To use the common CSV Feed API logic, run the following:

def main():
    feed_main(<FEED_NAME>)


from CSVFeedApiModule import *  # noqa: E402

if __name__ in ["builtins", "__main__"]:
    main()

feed_main is the main execution of the Feed API module. It can be extended or overriden in the integration main function.
Note that the module expectes a feed_url_to_config parameter to extract the indicators. This is similar to the configuration in minemeld.
See the module class docstring for an example.

commonfields:
  id: CSVFeedApiModule
  version: -1
name: CSVFeedApiModule
script: ''
type: python
subtype: python3
tags:
- infra
- server
comment: Common code that will be appended into each CSV feed integration when it's deployed
system: true
scripttarget: 0
dependson: {}
timeout: 0s
dockerimage: demisto/py3-tools:1.0.0.100861
tests:
- No tests (auto formatted)
fromversion: 5.0.0