CrowdStrike Falcon CrowdStrike Subreddit

Using the NGSIEM service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
UploadLookupV1
PEP 8upload_file
Upload a lookup file to NGSIEM.
GetLookupV1
PEP 8get_file
Download lookup file from NGSIEM.
GetLookupFromPackageWithNamespaceV1
PEP 8get_file_from_package_with_namespace
Download lookup file in namespaced package from NGSIEM.
GetLookupFromPackageV1
PEP 8get_file_from_package
Download lookup file in package from NGSIEM.
StartSearchV1
PEP 8start_search
Initiate a NGSIEM search.
GetSearchStatusV1
PEP 8get_search_status
Get status of a NGSIEM search.
StopSearchV1
PEP 8stop_search
Stop a NGSIEM search.
GetDashboardTemplate
PEP 8get_dashboard_template
Get dashboard template by ID.
CreateDashboardFromTemplate
PEP 8create_dashboard_from_template
Create dashboard from template.
UpdateDashboardFromTemplate
PEP 8update_dashboard_from_template
Update dashboard from template.
DeleteDashboard
PEP 8delete_dashboard
Delete dashboard.
GetLookupFile
PEP 8get_lookup_file
Get lookup file by ID.
CreateLookupFile
PEP 8create_lookup_file
Create lookup file.
UpdateLookupFile
PEP 8update_lookup_file
Update lookup file.
DeleteLookupFile
PEP 8delete_lookup_file
Delete lookup file.
GetParserTemplate
PEP 8get_parser_template
Get parser template by ID.
CreateParserFromTemplate
PEP 8create_parser_from_template
Create Parser in NGSIEM from template.
GetParser
PEP 8get_parser
Get parser by ID.
CreateParser
PEP 8create_parser
Create Parser in NGSIEM.
UpdateParser
PEP 8update_parser
Update parser.
DeleteParser
PEP 8delete_parser
Delete Parser in NGSIEM.
UpdateParserAutoUpdatePolicy
PEP 8update_parser_auto_update_policy
Update a parser auto update policy.
InstallParser
PEP 8install_parser
Install a CrowdStrike-managed out-of-the-box (OOTB) parser.
BulkInstallParsers
PEP 8bulk_install_parsers
Install multiple CrowdStrike-managed out-of-the-box (OOTB) parsers.
GetSavedQueryTemplate
PEP 8get_saved_query_template
Retrieve Saved Query in NGSIEM as LogScale YAML Template by ID.
CreateSavedQuery
PEP 8create_saved_query
Create Saved Query from LogScale YAML Template in NGSIEM.
UpdateSavedQueryFromTemplate
PEP 8update_saved_query_from_template
Update Saved Query from LogScale YAML Template in NGSIEM.
DeleteSavedQuery
PEP 8delete_saved_query
Delete Saved Query in NGSIEM.
ListDashboards
PEP 8list_dashboards
List dashboards.
ListLookupFiles
PEP 8list_lookup_files
List lookup files.
ListParsers
PEP 8list_parsers
List parsers.
ListSavedQueries
PEP 8list_saved_queries
List saved queries.
UpdateLookupFileEntries
PEP 8update_lookup_file_entries
Update entries in an existing Lookup File in NGSIEM.
ExternalListDataConnections
PEP 8list_data_connections
List and search data connections.
ExternalListDataConnectors
PEP 8list_data_connectors
List available data connectors.
ExternalGetDataConnectionStatus
PEP 8get_provisioning_status
Get data connection provisioning status.
ExternalUpdateDataConnectionStatus
PEP 8update_connection_status
Update data connection status.
ExternalGetDataConnectionToken
PEP 8get_ingest_token
Get Ingest token for data connection.
ExternalRegenerateDataConnectionToken
PEP 8regenerate_ingest_token
Regenerate Ingest token for data connection.
ExternalGetDataConnectionByID
PEP 8get_connection_by_id
Get data connection by ID.
ExternalCreateDataConnection
PEP 8create_data_connection
Create a new data connection.
ExternalUpdateDataConnection
PEP 8update_data_connection
Update a data connection.
ExternalDeleteDataConnection
PEP 8delete_data_connection
Delete a data connection.
ExternalListConnectorConfigs
PEP 8list_connector_configs
List configurations for a data connector.
ExternalCreateConnectorConfig
PEP 8create_connector_config
Create a new configuration for a data connector.
ExternalPatchConnectorConfig
PEP 8patch_connector_config
Patch configurations for a data connector.
ExternalDeleteConnectorConfigs
PEP 8delete_connector_configs
Delete data connection config.

Passing credentials

WARNING

client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)

CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.

UploadLookupV1

Upload a lookup file to NGSIEM.

PEP8 method name

upload_file

Endpoint

MethodRoute
POST/humio/api/v1/repositories/{repository}/files

Required Scope

ngsiem:write

Content-Type

  • Consumes: multipart/form-data

Keyword Arguments

NameServiceUberTypeData typeDescription
lookup_fileService Class SupportUber Class SupportformDatastringLocation of the file object to be uploaded. Service class will also accept file for this argument.
repositoryService Class SupportUber Class SupportpathstringName of the repository.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.upload_file(lookup_file="string", repository="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UploadLookupV1(lookup_file="string", repository="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

lookup_file = "string"

with open(lookup_file, "rb") as upload_file:
    file_extended = {"file": upload_file}
    response = falcon.command("UploadLookupV1", repository="string", files=file_extended)

print(response)

Back to Table of Contents

GetLookupV1

Download lookup file from NGSIEM.

PEP8 method name

get_file

Endpoint

MethodRoute
GET/humio/api/v1/repositories/{repository}/files/{filename}

Required Scope

ngsiem:read

Content-Type

  • Produces: application/octet-stream

Keyword Arguments

NameServiceUberTypeData typeDescription
filenameService Class SupportUber Class SupportpathstringName of the lookup file.
repositoryService Class SupportUber Class SupportpathstringName of the repository.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    save_file.write(falcon.get_file(repository="string", filename="string"))
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    save_file.write(falcon.GetLookupV1(repository="string", filename="string"))
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

with open("some_file.ext", "wb") as save_file:
    save_file.write(falcon.command("GetLookupV1", repository="string", filename="string"))

Back to Table of Contents

GetLookupFromPackageWithNamespaceV1

Download lookup file in namespaced package from NGSIEM.

PEP8 method name

get_file_from_package_with_namespace

Endpoint

MethodRoute
GET/humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}

Required Scope

ngsiem:read

Content-Type

  • Produces: application/octet-stream

Keyword Arguments

NameServiceUberTypeData typeDescription
filenameService Class SupportUber Class SupportpathstringName of the lookup file.
namespaceService Class SupportUber Class SupportpathstringName of the namespace.
packageService Class SupportUber Class SupportpathstringName of the package.
repositoryService Class SupportUber Class SupportpathstringName of the repository.
streamService Class SupportUber Class SupportquerybooleanEnable streaming download of the returned file.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    response = falcon.get_file_from_package_with_namespace(repository="string",
                                                           namespace="string",
                                                           package="string",
                                                           filename="string",
                                                           stream=boolean
                                                           )
    save_file.write(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    response = falcon.GetLookupFromPackageWithNamespaceV1(repository="string",
                                                          namespace="string",
                                                          package="string",
                                                          filename="string",
                                                          stream=boolean
                                                          )
    save_file.write(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

with open("some_file.ext", "wb") as save_file:
    response = falcon.command("GetLookupFromPackageWithNamespaceV1",
                              repository="string",
                              namespace="string",
                              package="string",
                              filename="string",
                              stream=boolean
                              )
    save_file.write(response)

Back to Table of Contents

GetLookupFromPackageV1

Download lookup file in package from NGSIEM.

PEP8 method name

get_file_from_package

Endpoint

MethodRoute
GET/humio/api/v1/repositories/{repository}/files/{package}/{filename}

Required Scope

ngsiem:read

Content-Type

  • Produces: application/octet-stream

Keyword Arguments

NameServiceUberTypeData typeDescription
filenameService Class SupportUber Class SupportpathstringName of the lookup file.
packageService Class SupportUber Class SupportpathstringName of the package.
repositoryService Class SupportUber Class SupportpathstringName of the repository.
streamService Class SupportUber Class SupportquerybooleanEnable streaming download of the returned file.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    response = falcon.get_file_from_package(repository="string",
                                            package="string",
                                            filename="string",
                                            stream=boolean
                                            )
    save_file.write(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("some_file.ext", "wb") as save_file:
    response = falcon.GetLookupFromPackageV1(repository="string",
                                             package="string",
                                             filename="string",
                                             stream=boolean
                                             )
    save_file.write(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

with open("some_file.ext", "wb") as save_file:
    response = falcon.command("GetLookupFromPackageV1",
                              repository="string",
                              package="string",
                              filename="string",
                              stream=boolean
                              )
    save_file.write(response)

Back to Table of Contents

StartSearchV1

Initiate a NGSIEM search.

PEP8 method name

start_search

Endpoint

MethodRoute
POST/humio/api/v1/repositories/{repository}/queryjobs

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
allow_event_skippingService Class SupportUber Class SupportbodybooleanFlag indicating if event skipping is allowed.
argumentsService Class SupportUber Class SupportbodydictionarySearch arguments in JSON format.
aroundService Class SupportUber Class SupportbodydictionarySearch proximity arguments.
autobucket_countService Class SupportUber Class SupportbodyintegerNumber of events per bucket.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary.
endService Class SupportUber Class SupportbodystringLast event limit.
ingest_endService Class SupportUber Class SupportbodyintegerIngest maximum.
ingest_startService Class SupportUber Class SupportbodyintegerIngest start.
is_liveService Class SupportUber Class SupportbodybooleanFlag indicating if this is a live search.
query_stringService Class SupportUber Class SupportbodystringSearch query string.
repositoryService Class SupportUber Class SupportpathstringName of the repository.
searchService Class SupportUber Class SupportbodydictionarySearch query to perform. Can be used in replace of other keywords.
startService Class SupportUber Class SupportbodystringSearch starting time range.
timezoneService Class SupportUber Class SupportbodystringTimezone applied to the search.
timezone_offset_minutesService Class SupportUber Class SupportbodyintegerTimezone offset.
use_ingest_timeService Class SupportUber Class SupportbodybooleanFlag indicating if ingest time should be used.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.start_search(repository="string",
                               is_live=boolean,
                               start="1d",
                               query_string="#event_simpleName=*"
                               )
print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.StartSearchV1(repository="string",
                                is_live=boolean,
                                start="1d",
                                query_string="#event_simpleName=*"
                                )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

search_query = {
    "isLive" : False,
    "start" : "1d",
    "queryString" : "#event_simpleName=*"
}

response = falcon.command("StartSearchV1", repository="string", body=search_query)

print(response)

Back to Table of Contents

GetSearchStatusV1

Get status of a NGSIEM search.

PEP8 method name

get_search_status

Endpoint

MethodRoute
GET/humio/api/v1/repositories/{repository}/queryjobs/{id}

Required Scope

ngsiem:read

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
repositoryService Class SupportUber Class SupportpathstringName of the repository.
search_idService Class SupportUber Class SupportpathstringID of the query.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_search_status(repository="string", search_id="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetSearchStatusV1(repository="string", search_id="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetSearchStatusV1", repository="string", search_id="string")

print(response)

Back to Table of Contents

StopSearchV1

Stop a NGSIEM search.

PEP8 method name

stop_search

Endpoint

MethodRoute
DELETE/humio/api/v1/repositories/{repository}/queryjobs/{id}

Required Scope

ngsiem:write

Content-Type

  • Consumes: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
repositoryService Class SupportUber Class SupportpathstringName of the repository.
idService Class SupportUber Class SupportpathstringID of the query.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.stop_search(repository="string", id="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.StopSearchV1(repository="string", id="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("StopSearchV1", repository="string", id="string")

print(response)

Back to Table of Contents

GetDashboardTemplate

Get dashboard template by ID.

PEP8 method name

get_dashboard_template

Endpoint

MethodRoute
GET/ngsiem-content/entities/dashboards-template/v1

Required Scope

ngsiem-dashboards:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringDashboard ID value.
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards.
parameters
Service Class Support

Uber Class Support
querydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_dashboard_template(ids="string", search_domain="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetDashboardTemplate(ids="string", search_domain="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetDashboardTemplate", ids="string", search_domain="string")

print(response)

Back to Table of Contents

CreateDashboardFromTemplate

Create Dashboard from LogScale YAML Template in NGSIEM.

PEP8 method name

create_dashboard_from_template

Endpoint

MethodRoute
POST/ngsiem-content/entities/dashboards-template/v1

Required Scope

ngsiem-dashboards:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party.
nameService Class SupportUber Class SupportformDatastringName of the dashboard.
yaml_templateService Class SupportUber Class SupportformDatastringLogScale dashboard YAML template content, see schema at https://schemas.humio.com/.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

yaml_content = """
name: Sample Dashboard
description: A sample dashboard for testing
widgets:
  - query: "source=falcon | stats count"
    type: chart
"""

response = falcon.create_dashboard_from_template(search_domain="falcon",
                                                 name="My Dashboard",
                                                 yaml_template=yaml_content
                                                 )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

yaml_content = """
name: Sample Dashboard
description: A sample dashboard for testing
widgets:
  - query: "source=falcon | stats count"
    type: chart
"""

response = falcon.CreateDashboardFromTemplate(search_domain="falcon",
                                              name="My Dashboard",
                                              yaml_template=yaml_content
                                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

yaml_content = """
name: Sample Dashboard
description: A sample dashboard for testing
widgets:
  - query: "source=falcon | stats count"
    type: chart
"""

response = falcon.command("CreateDashboardFromTemplate",
                          search_domain="falcon",
                          name="My Dashboard",
                          yaml_template=yaml_content
                          )

print(response)

Back to Table of Contents

UpdateDashboardFromTemplate

Update Dashboard from LogScale YAML Template in NGSIEM. Please note a successful update will result in a new ID value being returned.

PEP8 method name

update_dashboard_from_template

Endpoint

MethodRoute
PATCH/ngsiem-content/entities/dashboards-template/v1

Required Scope

ngsiem-dashboards:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party.
idsService Class SupportUber Class SupportformDatastringID of the dashboard.
yaml_templateService Class SupportUber Class SupportformDatastringLogScale dashboard YAML template content, see schema at https://schemas.humio.com/.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_dashboard_from_template(search_domain="string",
                                                 name="string",
                                                 yaml_template="string"
                                                 )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateDashboardFromTemplate(search_domain="string",
                                              name="string",
                                              yaml_template="string"
                                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("UpdateDashboardFromTemplate",
                          search_domain="string",
                          name="string",
                          yaml_template="string"
                          )

print(response)

Back to Table of Contents

DeleteDashboard

Delete Dashboard in NGSIEM.

PEP8 method name

delete_dashboard

Endpoint

MethodRoute
DELETE/ngsiem-content/entities/dashboards/v1

Required Scope

ngsiem-dashboards:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringDashboard ID value.
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_dashboard(ids="string",
                                   search_domain="string"
                                   )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.DeleteDashboard(ids="string",
                                  search_domain="string"
                                  )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("DeleteDashboard",
                          ids="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

GetLookupFile

Retrieve Lookup File in NGSIEM.

PEP8 method name

get_lookup_file

Endpoint

MethodRoute
GET/ngsiem-content/entities/lookupfiles/v1

Required Scope

ngsiem-lookup-files:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filenameService Class SupportUber Class SupportquerystringLookup file filename.
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards, parsers-repository.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_lookup_file(filename="string",
                                  search_domain="string"
                                  )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetLookupFile(filename="string",
                                search_domain="string"
                                )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetLookupFile",
                          filename="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

CreateLookupFile

Create Lookup File in NGSIEM.

PEP8 method name

create_lookup_file

Endpoint

MethodRoute
POST/ngsiem-content/entities/lookupfiles/v1

Required Scope

ngsiem-lookup-files:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party, parsers-repository.
filenameService Class SupportUber Class SupportformDatastringFilename of the lookup file to create.
fileService Class SupportUber Class SupportformDatastringFile content to upload.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("file", "rb") as file:
    binary_data = file.read()

response = falcon.create_lookup_file(search_domain="string",
                                     filename="file",
                                     file=binary_data
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

with open("file", "rb") as file:
    binary_data = file.read()

response = falcon.CreateLookupFile(search_domain="string",
                                   filename="file",
                                   file=binary_data
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

with open("file", "rb") as file:
    binary_data = file.read()

response = falcon.command("CreateLookupFile",
                          search_domain="string",
                          filename="file",
                          file=binary_data
                          )

print(response)

Back to Table of Contents

UpdateLookupFile

Update Lookup File in NGSIEM.

PEP8 method name

update_lookup_file

Endpoint

MethodRoute
PATCH/ngsiem-content/entities/lookupfiles/v1

Required Scope

ngsiem-lookup-files:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party, parsers-repository.
filenameService Class SupportUber Class SupportformDatastringFilename of the lookup file to update.
fileService Class SupportUber Class SupportformDatastringFile content to upload.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_lookup_file(search_domain="string",
                                     filename="string",
                                     file="string"
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateLookupFile(search_domain="string",
                                   filename="string",
                                   file="string"
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "search_domain": "string",
    "filename": "string",
    "file": "string"
}

response = falcon.command("UpdateLookupFile", data=body_payload)

print(response)

Back to Table of Contents

DeleteLookupFile

Delete Lookup File in NGSIEM.

PEP8 method name

delete_lookup_file

Endpoint

MethodRoute
DELETE/ngsiem-content/entities/lookupfiles/v1

Required Scope

ngsiem-lookup-files:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filenameService Class SupportUber Class SupportquerystringLookup file filename.
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, parsers-repository.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_lookup_file(filename="string",
                                     search_domain="string"
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.DeleteLookupFile(filename="string",
                                   search_domain="string"
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("DeleteLookupFile",
                          filename="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

GetParserTemplate

Retrieve Parser in NGSIEM as LogScale YAML Template.

PEP8 method name

get_parser_template

Endpoint

MethodRoute
GET/ngsiem-content/entities/parsers-template/v1

Required Scope

ngsiem-parsers:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringParser ID value
repositoryService Class SupportUber Class SupportquerystringName of repository, options; parsers-repository
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_parser_template(ids="string",
                                      repository="string"
                                      )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetParserTemplate(ids="string",
                                    repository="string"
                                    )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetParserTemplate",
                          ids="string",
                          repository="string"
                          )

print(response)

Back to Table of Contents

CreateParserFromTemplate

Create Parser from LogScale YAML Template in NGSIEM.

PEP8 method name

create_parser_from_template

Endpoint

MethodRoute
POST/ngsiem-content/entities/parsers-template/v1

Required Scope

ngsiem-parsers:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
repositoryService Class SupportUber Class SupportformDatastringName of repository, options; parsers-repository.
nameService Class SupportUber Class SupportformDatastringName of the parser.
yaml_templateService Class SupportUber Class SupportformDatastringLogScale Parser YAML template content, see schema at https://schemas.humio.com/.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.create_parser_from_template(repository="string",
                                              name="string",
                                              yaml_template="string"
                                              )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.CreateParserFromTemplate(repository="string",
                                           name="string",
                                           yaml_template="string"
                                           )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "repository": "string",
    "name": "string",
    "yaml_template": "string"
}

response = falcon.command("CreateParserFromTemplate", data=body_payload)

print(response)

Back to Table of Contents

GetParser

Retrieve Parser in NGSIEM.

PEP8 method name

get_parser

Endpoint

MethodRoute
GET/ngsiem-content/entities/parsers/v1

Required Scope

ngsiem-parsers:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringParser ID value
repositoryService Class SupportUber Class SupportquerystringName of repository, options; parsers-repository
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_parser(ids="string",
                             repository="string"
                             )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetParser(ids="string",
                            repository="string"
                            )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetParser",
                          ids="string",
                          repository="string"
                          )

print(response)

Back to Table of Contents

CreateParser

Create Parser in NGSIEM.

PEP8 method name

create_parser

Endpoint

MethodRoute
POST/ngsiem-content/entities/parsers/v1

Required Scope

ngsiem-parsers:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
fields_to_be_removed_before_parsingService Class SupportUber Class Supportbodystring or listList of fields to remove before parsing. String or list of strings.
fields_to_tagService Class SupportUber Class Supportbodystring or listList of fields to tag. String or list of strings.
nameService Class SupportUber Class SupportbodystringParser name.
repositoryService Class SupportUber Class SupportbodystringParser repository.
scriptService Class SupportUber Class SupportbodystringParser script.
test_casesService Class SupportUber Class SupportbodylistList of test cases to apply to the parser. List of dictionaries.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.create_parser(name="MyParser",
                                repository="parsers-repository",
                                script="parseJson()",
                                fields_to_tag=["field1", "field2"]
                                )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.CreateParser(name="MyParser",
                               repository="parsers-repository",
                               script="parseJson()",
                               fields_to_tag=["field1", "field2"]
                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "name": "MyParser",
    "repository": "parsers-repository",
    "script": "parseJson()",
    "fields_to_tag": ["field1", "field2"]
}

response = falcon.command("CreateParser", body=body_payload)

print(response)

Back to Table of Contents

UpdateParser

Update Parser in NGSIEM. Please note that name changes are not supported, but rather should be created as a new parser.

PEP8 method name

update_parser

Endpoint

MethodRoute
PATCH/ngsiem-content/entities/parsers/v1

Required Scope

ngsiem-parsers:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
fields_to_be_removed_before_parsingService Class SupportUber Class Supportbodystring or listList of fields to remove before parsing. String or list of strings.
fields_to_tagService Class SupportUber Class Supportbodystring or listList of fields to tag. String or list of strings.
idService Class SupportUber Class SupportbodystringID of the parser to be updated.
nameService Class SupportUber Class SupportbodystringParser name.
repositoryService Class SupportUber Class SupportbodystringParser repository.
scriptService Class SupportUber Class SupportbodystringParser script.
test_casesService Class SupportUber Class SupportbodylistList of test cases to apply to the parser. List of dictionaries.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_parser(id="parser_id_string",
                                script="parseJson() | updated script",
                                fields_to_tag=["field1", "field2", "field3"]
                                )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateParser(id="parser_id_string",
                               script="parseJson() | updated script",
                               fields_to_tag=["field1", "field2", "field3"]
                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "id": "parser_id_string",
    "script": "parseJson() | updated script",
    "fields_to_tag": ["field1", "field2", "field3"]
}

response = falcon.command("UpdateParser", body=body_payload)

print(response)

Back to Table of Contents

DeleteParser

Delete Parser in NGSIEM.

PEP8 method name

delete_parser

Endpoint

MethodRoute
DELETE/ngsiem-content/entities/parsers/v1

Required Scope

ngsiem-parsers:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringParser ID value
repositoryService Class SupportUber Class SupportquerystringName of repository, options; parsers-repository
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_parser(ids="string",
                                repository="string"
                                )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.DeleteParser(ids="string",
                               repository="string"
                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("DeleteParser",
                          ids="string",
                          repository="string"
                          )

print(response)

Back to Table of Contents

UpdateParserAutoUpdatePolicy

Update a parser auto update policy.

Enables or disables auto-updates for parsers.

PEP8 method name

update_parser_auto_update_policy

Endpoint

MethodRoute
PUT/ngsiem-content/entities/parsers/autoupdate/v1

Required Scope

ngsiem-parsers:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
autoupdate_policyService Class SupportUber Class SupportbodystringThe auto update policy setting ('on' or 'off').
reasonService Class SupportUber Class SupportbodystringReason for changing the auto update policy.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_parser_auto_update_policy(autoupdate_policy="on",
                                                   reason="string"
                                                   )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateParserAutoUpdatePolicy(autoupdate_policy="on",
                                               reason="string"
                                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "autoupdate_policy": "on",
    "reason": "string"
}

response = falcon.command("UpdateParserAutoUpdatePolicy", body=body_payload)

print(response)

Back to Table of Contents

InstallParser

Install a CrowdStrike-managed out-of-the-box (OOTB) parser.

Provisions a pre-built parser with a specific version for the requesting customer ID (CID). The parser is installed as-is and cannot be modified by the customer.

PEP8 method name

install_parser

Endpoint

MethodRoute
POST/ngsiem-content/entities/parsers/install/v1

Required Scope

ngsiem-parsers:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
parser_idService Class SupportUber Class SupportbodystringThe unique identifier of the parser to install.
versionService Class SupportUber Class SupportbodystringThe version of the parser to install.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.install_parser(parser_id="string",
                                 version="string"
                                 )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.InstallParser(parser_id="string",
                                version="string"
                                )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "parser_id": "string",
    "version": "string"
}

response = falcon.command("InstallParser", body=body_payload)

print(response)

Back to Table of Contents

BulkInstallParsers

Install multiple CrowdStrike-managed out-of-the-box (OOTB) parsers.

Provisions multiple pre-built parsers with their specific versions for the requesting customer ID (CID). The parsers are installed as-is and cannot be modified by the customer. Maximum 100 parsers per request.

PEP8 method name

bulk_install_parsers

Endpoint

MethodRoute
POST/ngsiem-content/entities/parsers/bulk-install/v1

Required Scope

ngsiem-parsers:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
parsersService Class SupportUber Class SupportbodylistList of parser objects containing parser_id and version. List of dictionaries.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.bulk_install_parsers(parsers=[
    {
        "parser_id": "string",
        "version": "string"
    }
])

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.BulkInstallParsers(parsers=[
    {
        "parser_id": "string",
        "version": "string"
    }
])

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "parsers": [
        {
            "parser_id": "string",
            "version": "string"
        }
    ]
}

response = falcon.command("BulkInstallParsers", body=body_payload)

print(response)

Back to Table of Contents

GetSavedQueryTemplate

Retrieve Saved Query in NGSIEM as LogScale YAML Template by ID.

PEP8 method name

get_saved_query_template

Endpoint

MethodRoute
GET/ngsiem-content/entities/savedqueries-template/v1

Required Scope

ngsiem-saved-queries:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringSaved query ID value
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_saved_query_template(ids="string",
                                           search_domain="string"
                                           )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.GetSavedQueryTemplate(ids="string",
                                        search_domain="string"
                                        )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("GetSavedQueryTemplate",
                          ids="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

CreateSavedQuery

Create Saved Query from LogScale YAML Template in NGSIEM.

PEP8 method name

create_saved_query

Endpoint

MethodRoute
POST/ngsiem-content/entities/savedqueries-template/v1

Required Scope

ngsiem-saved-queries:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party
yaml_templateService Class SupportUber Class SupportformDatastringLogScale Saved Query YAML template content, see schema at https://schemas.humio.com/
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.create_saved_query(search_domain="string",
                                     yaml_template="string"
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.CreateSavedQuery(search_domain="string",
                                   yaml_template="string"
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


response = falcon.command("CreateSavedQuery",
                          search_domain="string",
                          yaml_template="string"
                          )

print(response)

Back to Table of Contents

UpdateSavedQueryFromTemplate

Update Saved Query from LogScale YAML Template in NGSIEM.

PEP8 method name

update_saved_query_from_template

Endpoint

MethodRoute
PATCH/ngsiem-content/entities/savedqueries-template/v1

Required Scope

ngsiem-saved-queries:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party
idsService Class SupportUber Class SupportformDatastringID of the saved query
yaml_templateService Class SupportUber Class SupportformDatastringLogScale Saved Query YAML template content, see schema at https://schemas.humio.com/
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_saved_query_from_template(search_domain="string",
                                                   ids="string",
                                                   yaml_template="string"
                                                   )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateSavedQueryFromTemplate(search_domain="string",
                                               ids="string",
                                               yaml_template="string"
                                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


response = falcon.command("UpdateSavedQueryFromTemplate", 
                          search_domain="string",
                          ids="string",
                          yaml_template="string"
                          )

print(response)

Back to Table of Contents

DeleteSavedQuery

Delete Saved Query in NGSIEM.

PEP8 method name

delete_saved_query

Endpoint

MethodRoute
DELETE/ngsiem-content/entities/savedqueries/v1

Required Scope

ngsiem-saved-queries:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringSaved query ID value
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_saved_query(ids="string",
                                     search_domain="string"
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.DeleteSavedQuery(ids="string",
                                   search_domain="string"
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("DeleteSavedQuery",
                          ids="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

ListDashboards

List dashboards.

PEP8 method name

list_dashboards

Endpoint

MethodRoute
GET/ngsiem-content/queries/dashboards/v1

Required Scope

ngsiem-dashboards:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
limitService Class SupportUber Class SupportquerystringMaximum number of results to return (default: 50, max: 9999)
offsetService Class SupportUber Class SupportquerystringNumber of results to offset the returned results by (default: 0, max: 9999)
filterService Class SupportUber Class SupportquerystringFQL filter to apply to the name of the content, only currently support text match on name field: name:~'value'
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_dashboards(limit="string",
                                  offset="string",
                                  filter="string",
                                  search_domain="string"
                                  )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ListDashboards(limit="string",
                                 offset="string",
                                 filter="string",
                                 search_domain="string"
                                 )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ListDashboards",
                          limit="string",
                          offset="string",
                          filter="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

ListLookupFiles

List lookup files.

PEP8 method name

list_lookup_files

Endpoint

MethodRoute
GET/ngsiem-content/queries/lookupfiles/v1

Required Scope

ngsiem-lookup-files:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
limitService Class SupportUber Class SupportquerystringMaximum number of results to return (default: 50, max: 9999)
offsetService Class SupportUber Class SupportquerystringNumber of results to offset the returned results by (default: 0, max: 9999)
filterService Class SupportUber Class SupportquerystringFQL filter to apply to the name of the content, only currently support text match on name field: name:~'value'
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards, parsers-repository
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_lookup_files(limit="string",
                                    offset="string",
                                    filter="string",
                                    search_domain="string"
                                    )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ListLookupFiles(limit="string",
                                  offset="string",
                                  filter="string",
                                  search_domain="string"
                                  )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ListLookupFiles",
                          limit="string",
                          offset="string",
                          filter="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

ListParsers

List parsers.

PEP8 method name

list_parsers

Endpoint

MethodRoute
GET/ngsiem-content/queries/parsers/v1

Required Scope

ngsiem-parsers:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
limitService Class SupportUber Class SupportquerystringMaximum number of results to return (default: 50, max: 9999)
offsetService Class SupportUber Class SupportquerystringNumber of results to offset the returned results by (default: 0, max: 9999)
filterService Class SupportUber Class SupportquerystringFQL filter to apply to the name of the content, only currently support text match on name field: name:~'value'
repositoryService Class SupportUber Class SupportquerystringName of repository, options; parsers-repository
update_availableService Class SupportUber Class SupportquerystringFilter parsers by update availability. Allowed values: true, false
parser_typeService Class SupportUber Class SupportquerystringFilter parsers by type. Allowed values: ootb, custom
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_parsers(limit="string",
                               offset="string",
                               filter="string",
                               repository="string",
                               update_available="string",
                               parser_type="string"
                               )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ListParsers(limit="string",
                              offset="string",
                              filter="string",
                              repository="string",
                              update_available="string",
                              parser_type="string"
                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ListParsers",
                          limit="string",
                          offset="string",
                          filter="string",
                          repository="string",
                          update_available="string",
                          parser_type="string"
                          )

print(response)

Back to Table of Contents

ListSavedQueries

List saved queries.

PEP8 method name

list_saved_queries

Endpoint

MethodRoute
GET/ngsiem-content/queries/savedqueries/v1

Required Scope

ngsiem-saved-queries:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
limitService Class SupportUber Class SupportquerystringMaximum number of results to return (default: 50, max: 9999)
offsetService Class SupportUber Class SupportquerystringNumber of results to offset the returned results by (default: 0, max: 9999)
filterService Class SupportUber Class SupportquerystringFQL filter to apply to the name of the content, only currently support text match on name field: name:~'value'
search_domainService Class SupportUber Class SupportquerystringName of search domain (view or repo), options; all, falcon, third-party, dashboards
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_saved_queries(limit="string",
                                     offset="string",
                                     filter="string",
                                     search_domain="string"
                                     )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ListSavedQueries(limit="string",
                                   offset="string",
                                   filter="string",
                                   search_domain="string"
                                   )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ListSavedQueries",
                          limit="string",
                          offset="string",
                          filter="string",
                          search_domain="string"
                          )

print(response)

Back to Table of Contents

UpdateLookupFileEntries

Update entries in an existing Lookup File in NGSIEM.

PEP8 method name

update_lookup_file_entries

Endpoint

MethodRoute
PATCH/ngsiem-content/entities/lookupfiles-entries/v1

Required Scope

ngsiem-lookup-files:write

Content-Type

  • Consumes: multipart/form-data
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
search_domainService Class SupportUber Class SupportformDatastringName of search domain (view or repo), options; all, falcon, third-party, parsers-repository.
filenameService Class SupportUber Class SupportformDatastringFilename of the lookup file to update.
fileService Class SupportUber Class SupportformDatastringThe file content for updating or appending the entries.
update_modeService Class SupportUber Class SupportformDatastringHow to update the file entries, options; append, update.
key_columnsService Class SupportUber Class SupportformDatastringFor update mode, the comma separated list of key columns to use when matching entries (REQUIRED when update_mode=update).
ignore_caseService Class SupportUber Class SupportformDatastringFor update mode, whether to ignore case when matching keys (REQUIRED when update_mode=update), options; true, false.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_lookup_file_entries(search_domain="string",
                                             filename="string",
                                             file="string",
                                             update_mode="string",
                                             key_columns="string",
                                             ignore_case="string"
                                             )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.UpdateLookupFileEntries(search_domain="string",
                                           filename="string",
                                           file="string",
                                           update_mode="string",
                                           key_columns="string",
                                           ignore_case="string"
                                           )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "search_domain": "string",
    "filename": "string",
    "file": "string",
    "update_mode": "string",
    "key_columns": "string",
    "ignore_case": "string"
}

response = falcon.command("UpdateLookupFileEntries", data=body_payload)

print(response)

Back to Table of Contents

ExternalListDataConnections

List and search data connections.

PEP8 method name

list_data_connections

Endpoint

MethodRoute
GET/ngsiem/combined/connections/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringOptional filter criteria in FQL format.
offsetService Class SupportUber Class SupportqueryintegerStarting position for pagination.
limitService Class SupportUber Class SupportqueryintegerMaximum number of items to return.
sortService Class SupportUber Class SupportquerystringSort field and direction.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_data_connections(filter="string",
                                        offset=integer,
                                        limit=integer,
                                        sort="string"
                                        )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalListDataConnections(filter="string",
                                              offset=integer,
                                              limit=integer,
                                              sort="string"
                                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalListDataConnections",
                          filter="string",
                          offset=integer,
                          limit=integer,
                          sort="string"
                          )

print(response)

Back to Table of Contents

ExternalListDataConnectors

List available data connectors.

PEP8 method name

list_data_connectors

Endpoint

MethodRoute
GET/ngsiem/combined/connectors/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringOptional filter criteria in FQL format.
offsetService Class SupportUber Class SupportqueryintegerStarting position for pagination.
limitService Class SupportUber Class SupportqueryintegerMaximum number of items to return.
sortService Class SupportUber Class SupportquerystringSort field and direction.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_data_connectors(filter="string",
                                       offset=integer,
                                       limit=integer,
                                       sort="string"
                                       )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalListDataConnectors(filter="string",
                                             offset=integer,
                                             limit=integer,
                                             sort="string"
                                             )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalListDataConnectors",
                          filter="string",
                          offset=integer,
                          limit=integer,
                          sort="string"
                          )

print(response)

Back to Table of Contents

ExternalGetDataConnectionStatus

Get data connection provisioning status.

PEP8 method name

get_provisioning_status

Endpoint

MethodRoute
GET/ngsiem/entities/connections/status/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or listUnique identifier of the data connection.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_provisioning_status(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalGetDataConnectionStatus(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalGetDataConnectionStatus", ids="string")

print(response)

Back to Table of Contents

ExternalUpdateDataConnectionStatus

Update data connection status.

PEP8 method name

update_connection_status

Endpoint

MethodRoute
PATCH/ngsiem/entities/connections/status/v1

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connection.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
statusService Class SupportUber Class SupportbodystringStatus value.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.update_connection_status(ids="string",
                                           status="string"
                                           )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalUpdateDataConnectionStatus(ids="string",
                                                      status="string"
                                                      )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "status": "string"
}

response = falcon.command("ExternalUpdateDataConnectionStatus",
                          ids="string",
                          body=body_payload
                          )

print(response)

Back to Table of Contents

ExternalGetDataConnectionToken

Get Ingest token for data connection.

PEP8 method name

get_ingest_token

Endpoint

MethodRoute
GET/ngsiem/entities/connections/token/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connection.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_ingest_token(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalGetDataConnectionToken(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalGetDataConnectionToken", ids="string")

print(response)

Back to Table of Contents

ExternalRegenerateDataConnectionToken

Regenerate Ingest token for data connection.

PEP8 method name

regenerate_ingest_token

Endpoint

MethodRoute
POST/ngsiem/entities/connections/token/v1

Required Scope

ngsiem:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connection.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.regenerate_ingest_token(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalRegenerateDataConnectionToken(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalRegenerateDataConnectionToken", ids="string")

print(response)

Back to Table of Contents

ExternalGetDataConnectionByID

Get data connection by ID.

PEP8 method name

get_connection_by_id

Endpoint

MethodRoute
GET/ngsiem/entities/connections/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or listUnique identifier of the data connection.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.get_connection_by_id(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalGetDataConnectionByID(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalGetDataConnectionByID", ids="string")

print(response)

Back to Table of Contents

ExternalCreateDataConnection

Create a new data connection.

PEP8 method name

create_data_connection

Endpoint

MethodRoute
POST/ngsiem/entities/connections/v1

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
configService Class SupportUber Class SupportbodydictionaryConfiguration dictionary.
config_idService Class SupportUber Class SupportbodystringConfiguration ID.
connector_idService Class SupportUber Class SupportbodystringConnector ID.
connector_typeService Class SupportUber Class SupportbodystringConnector type.
descriptionService Class SupportUber Class SupportbodystringConnection description.
enable_host_enrichmentService Class SupportUber Class SupportbodybooleanEnable host enrichment.
enable_user_enrichmentService Class SupportUber Class SupportbodybooleanEnable user enrichment.
nameService Class SupportUber Class SupportbodystringConnection name.
parserService Class SupportUber Class SupportbodystringParser.
vendor_nameService Class SupportUber Class SupportbodystringVendor name.
vendor_product_nameService Class SupportUber Class SupportbodystringVendor product name.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.create_data_connection(config=config,
                                         config_id="string",
                                         connector_id="string",
                                         connector_type="string",
                                         description="string",
                                         enable_host_enrichment=boolean,
                                         enable_user_enrichment=boolean,
                                         name="string",
                                         parser="string",
                                         vendor_name="string",
                                         vendor_product_name="string"
                                         )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.ExternalCreateDataConnection(config=config,
                                               config_id="string",
                                               connector_id="string",
                                               connector_type="string",
                                               description="string",
                                               enable_host_enrichment=boolean,
                                               enable_user_enrichment=boolean,
                                               name="string",
                                               parser="string",
                                               vendor_name="string",
                                               vendor_product_name="string"
                                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "config": {
        "auth": {},
        "name": "string",
        "params": {}
    },
    "config_id": "string",
    "connector_id": "string",
    "connector_type": "string",
    "description": "string",
    "enable_host_enrichment": boolean,
    "enable_user_enrichment": boolean,
    "name": "string",
    "parser": "string",
    "vendor_name": "string",
    "vendor_product_name": "string"
}

response = falcon.command("ExternalCreateDataConnection", body=body_payload)

print(response)

Back to Table of Contents

ExternalUpdateDataConnection

Update a data connection.

PEP8 method name

update_data_connection

Endpoint

MethodRoute
PATCH/ngsiem/entities/connections/v1

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connection.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
configService Class SupportUber Class SupportbodydictionaryConfiguration dictionary.
config_idService Class SupportUber Class SupportbodystringConfiguration ID.
descriptionService Class SupportUber Class SupportbodystringConnection description.
enable_host_enrichmentService Class SupportUber Class SupportbodybooleanEnable host enrichment.
enable_user_enrichmentService Class SupportUber Class SupportbodybooleanEnable user enrichment.
nameService Class SupportUber Class SupportbodystringConnection name.
parserService Class SupportUber Class SupportbodystringParser.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.update_data_connection(ids="string",
                                         config=config,
                                         config_id="string",
                                         description="string",
                                         enable_host_enrichment=boolean,
                                         enable_user_enrichment=boolean,
                                         name="string",
                                         parser="string"
                                         )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.ExternalUpdateDataConnection(ids="string",
                                               config=config,
                                               config_id="string",
                                               description="string",
                                               enable_host_enrichment=boolean,
                                               enable_user_enrichment=boolean,
                                               name="string",
                                               parser="string"
                                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "config": {
        "auth": {},
        "name": "string",
        "params": {}
    },
    "config_id": "string",
    "description": "string",
    "enable_host_enrichment": boolean,
    "enable_user_enrichment": boolean,
    "name": "string",
    "parser": "string"
}

response = falcon.command("ExternalUpdateDataConnection",
                          ids="string",
                          body=body_payload
                          )

print(response)

Back to Table of Contents

ExternalDeleteDataConnection

Delete a data connection.

PEP8 method name

delete_data_connection

Endpoint

MethodRoute
DELETE/ngsiem/entities/connections/v1

Required Scope

ngsiem:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connection.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_data_connection(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalDeleteDataConnection(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalDeleteDataConnection", ids="string")

print(response)

Back to Table of Contents

ExternalListConnectorConfigs

List configurations for a data connector.

PEP8 method name

list_connector_configs

Endpoint

MethodRoute
GET/ngsiem/entities/connectors/configs/v1

Required Scope

ngsiem:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique identifier of the data connector.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.list_connector_configs(ids="string")

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalListConnectorConfigs(ids="string")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalListConnectorConfigs", ids="string")

print(response)

Back to Table of Contents

ExternalCreateConnectorConfig

Create a new configuration for a data connector.

PEP8 method name

create_connector_config

Endpoint

MethodRoute
POST/ngsiem/entities/connectors/configs/v1

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
configService Class SupportUber Class SupportbodydictionaryConfiguration details for the connector including authentication and parameters.
connector_idService Class SupportUber Class SupportbodystringUnique identifier of the data connector.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.create_connector_config(config=config,
                                          connector_id="string"
                                          )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.ExternalCreateConnectorConfig(config=config,
                                                connector_id="string"
                                                )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "config": {
        "auth": {},
        "name": "string",
        "params": {}
    },
    "connector_id": "string"
}

response = falcon.command("ExternalCreateConnectorConfig", body=body_payload)

print(response)

Back to Table of Contents

ExternalPatchConnectorConfig

Patch configurations for a data connector.

PEP8 method name

patch_connector_config

Endpoint

MethodRoute
PATCH/ngsiem/entities/connectors/configs/v1

Required Scope

ngsiem:write

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringUnique id of the config to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
configService Class SupportUber Class SupportbodydictionaryConfiguration details for the connector including authentication and parameters.
connector_idService Class SupportUber Class SupportbodystringUnique identifier of the data connector.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.patch_connector_config(ids="string",
                                         config=config,
                                         connector_id="string"
                                         )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

config = {
    "auth": {},
    "name": "string",
    "params": {}
}

response = falcon.ExternalPatchConnectorConfig(ids="string",
                                               config=config,
                                               connector_id="string"
                                               )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body_payload = {
    "config": {
        "auth": {},
        "name": "string",
        "params": {}
    },
    "connector_id": "string"
}

response = falcon.command("ExternalPatchConnectorConfig",
                          ids="string",
                          body=body_payload
                          )

print(response)

Back to Table of Contents

ExternalDeleteConnectorConfigs

Delete data connection config.

PEP8 method name

delete_connector_configs

Endpoint

MethodRoute
DELETE/ngsiem/entities/connectors/configs/v1

Required Scope

ngsiem:write

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
connector_idService Class SupportUber Class SupportquerystringUnique identifier of the connector.
idsService Class SupportUber Class Supportquerystring or list of stringsUnique identifiers of the config(s) to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.delete_connector_configs(connector_id="string",
                                           ids="string"
                                           )

print(response)
Service class example (Operation ID syntax)
from falconpy import NGSIEM

# Do not hardcode API credentials!
falcon = NGSIEM(client_id=CLIENT_ID,
                client_secret=CLIENT_SECRET
                )

response = falcon.ExternalDeleteConnectorConfigs(connector_id="string",
                                                 ids="string"
                                                 )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ExternalDeleteConnectorConfigs",
                          connector_id="string",
                          ids="string"
                          )

print(response)

Back to Table of Contents