Skip to content
Discussion options

You must be logged in to vote

Hi @arahman63 -

Try this code. You should be able to provide it your scheduled report ID and it will download all successful executions of the report in JSON format. (Named after the execution ID.) This is working in my environment.

Don't forget to update it to add in your credentials. For this example, I'm retrieving them from the os environment.

"""Retrieve the contents of a scheduled report and save it to a file."""
import os
import json
from argparse import ArgumentParser, RawTextHelpFormatter
from falconpy import ReportExecutions

parser = ArgumentParser(description=__doc__, formatter_class=RawTextHelpFormatter)
parser.add_argument("-r", "--report", help="ID of the report to retrieve"

Replies: 10 comments 17 replies

Comment options

You must be logged in to vote
1 reply
@jshcodes
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jshcodes
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@arahman63
Comment options

@arahman63
Comment options

@arahman63
Comment options

@jshcodes
Comment options

@arahman63
Comment options

Comment options

You must be logged in to vote
8 replies
@thekarannayak
Comment options

@arahman63
Comment options

@arahman63
Comment options

@thekarannayak
Comment options

@arahman63
Comment options

Answer selected by arahman63
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arahman63
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API usage General API usage issues and questions SDK usage General SDK usage issues and questions reports Reporting questions or issues
4 participants