laceworksdk
Community-developed Python SDK for interacting with Lacework APIs.
Subpackages
laceworksdk.apilaceworksdk.api.v2laceworksdk.api.v2.activitieslaceworksdk.api.v2.agent_access_tokenslaceworksdk.api.v2.agent_infolaceworksdk.api.v2.alert_channelslaceworksdk.api.v2.alert_profileslaceworksdk.api.v2.alert_ruleslaceworksdk.api.v2.alertslaceworksdk.api.v2.audit_logslaceworksdk.api.v2.cloud_accountslaceworksdk.api.v2.cloud_activitieslaceworksdk.api.v2.configslaceworksdk.api.v2.container_registrieslaceworksdk.api.v2.contract_infolaceworksdk.api.v2.data_export_ruleslaceworksdk.api.v2.datasourceslaceworksdk.api.v2.entitieslaceworksdk.api.v2.eventslaceworksdk.api.v2.inventorylaceworksdk.api.v2.organization_infolaceworksdk.api.v2.policieslaceworksdk.api.v2.policy_exceptionslaceworksdk.api.v2.querieslaceworksdk.api.v2.report_definitionslaceworksdk.api.v2.report_ruleslaceworksdk.api.v2.reportslaceworksdk.api.v2.resource_groupslaceworksdk.api.v2.schemaslaceworksdk.api.v2.team_memberslaceworksdk.api.v2.team_userslaceworksdk.api.v2.user_groupslaceworksdk.api.v2.user_profilelaceworksdk.api.v2.vulnerabilitieslaceworksdk.api.v2.vulnerability_exceptionslaceworksdk.api.v2.vulnerability_policies
laceworksdk.api.base_endpointlaceworksdk.api.crud_endpointlaceworksdk.api.read_endpointlaceworksdk.api.search_endpoint
Submodules
Package Contents
Classes
Lacework API wrapper for Python. |
- class laceworksdk.LaceworkClient(account=None, subaccount=None, api_key=None, api_secret=None, api_token=None, instance=None, base_domain=None, profile=None)[source]
Lacework API wrapper for Python.
- property subaccount
Returns the value of the session’s subaccount.
- exception laceworksdk.ApiError(response)[source]
Bases:
LaceworkSDKExceptionErrors returned in response to requests sent to the Lacework APIs.
Several data attributes are available for inspection.
- response
The
requests.Responseobject returned from the API call.
- request
The
requests.PreparedRequestof the API call.
- status_code
The HTTP status code from the API response.
- status
The HTTP status from the API response.
- details
The parsed JSON details from the API response.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.