laceworksdk.api.v2.datasources

Lacework Datasources API wrapper.

Module Contents

Classes

DatasourcesAPI

A class used to represent the Datasources API endpoint

class laceworksdk.api.v2.datasources.DatasourcesAPI(session)[source]

Bases: laceworksdk.api.base_endpoint.BaseEndpoint

A class used to represent the Datasources API endpoint

Get schema details for all datasources that you can query using LQL.

property session

Get the HttpSession instance the object is using.

get()[source]

A method to get Datasources.

Returns:

All datasources

Return type:

dict

get_datasource(datasource)[source]

A method to get the schema for a particular datasource.

Parameters:

datasource (str) – The name of the datasource schema get.

Returns:

The datasource schema.

Return type:

dict

list_data_sources()[source]

A method to list the datasources that are available.

Returns:

Each tuple has two entries, source name and description.

Return type:

list of tuples