CspSetting

class cloudpassage.CspSetting(session, **kwargs)

Initializing the CspSetting class:

Parameters:session (cloudpassage.HaloSession) – This will define how you interact with the Halo API, including proxy settings and API keys used for authentication.
Keyword Arguments:
 endpoint_version (int) – Endpoint version override.
update(object_body)

Update CSP scanner settings

Parameters:
  • object_body (dict) – Dictionary of new settings
  • (https – //api-doc.cloudpassage.com/help#csp-update-scan-settings)
Returns:

None if successful, raises exception if not

view()

View current CSP scanner settings

Returns:Dictionary of current CSP scan settings
Return type:dict