Skip to content

Scheduled Reports

Joshua Hiller edited this page Aug 30, 2021 · 13 revisions

CrowdStrike Falcon Twitter URL

Using the Scheduled Reports service collection

Uber class support Service class support

Table of Contents

Operation ID Description
scheduled_reports_get
PEP8 get_reports
Retrieve scheduled reports for the provided report IDs.
scheduled_reports_query
PEP8 query_reports
Find all report IDs matching the query with filter

scheduled_reports_get

Retrieve scheduled reports for the provided report IDs.

PEP8 method name

get_reports

Content-Type

  • Consumes: application/json
  • Produces: application/json

Parameters

Required Name Type Datatype Description
ids query array (string) The scheduled_report id to get details about.

Usage

Service class example (PEP8 syntax)
from falconpy.scheduled_reports import ScheduledReports

falcon = ScheduledReports(client_id="API_CLIENT_ID_HERE",
                          client_secret="API_CLIENT_SECRET_HERE"
                          )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.get_reports(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy.scheduled_reports import ScheduledReports

falcon = ScheduledReports(client_id="API_CLIENT_ID_HERE",
                          client_secret="API_CLIENT_SECRET_HERE"
                          )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.scheduled_reports_get(ids=id_list)
print(response)
Uber class example
from falconpy.api_complete import APIHarness

falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
                    client_secret="API_CLIENT_SECRET_HERE"
                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("scheduled_reports_get", ids=id_list)
print(response)

scheduled_reports_query

Find all report IDs matching the query with filter

PEP8 method name

query_reports

Content-Type

  • Consumes: application/json
  • Produces: application/json

Parameters

Required Name Type Datatype Description
sort query string Possible order by fields: created_on, last_updated_on, last_execution_on, next_execution_on
filter query string FQL query specifying the filter parameters. Filter term criteria: type, trigger_reference, recipients, user_uuid, cid, trigger_params.metadata. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'.
q query string Match query criteria, which includes all the filter string fields
offset query string Starting index of overall result set from which to return ids.
limit query integer Number of ids to return.

Usage

Service class example (PEP8 syntax)
from falconpy.scheduled_reports import ScheduledReports

falcon = ScheduledReports(client_id="API_CLIENT_ID_HERE",
                          client_secret="API_CLIENT_SECRET_HERE"
                          )

response = falcon.query_reports(sort="string",
                                filter="string",
                                q="string",
                                offset="string",
                                limit=integer
                                )
print(response)
Service class example (Operation ID syntax)
from falconpy.scheduled_reports import ScheduledReports

falcon = ScheduledReports(client_id="API_CLIENT_ID_HERE",
                          client_secret="API_CLIENT_SECRET_HERE"
                          )

response = falcon.scheduled_reports_query(sort="string",
                                          filter="string",
                                          q="string",
                                          offset="string",
                                          limit=integer
                                          )
print(response)
Uber class example
from falconpy.api_complete import APIHarness

falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
                    client_secret="API_CLIENT_SECRET_HERE"
                    )

PARAMS = {
    "sort": "string",
    "filter": "string",
    "q": "string",
    "offset": "string",
    "limit": integer
}

response = falcon.command("scheduled_reports_query", parameters=PARAMS)
print(response)

CrowdStrike Falcon

Clone this wiki locally