FimBaseline

class cloudpassage.FimBaseline(session)

Initializing the FimBaseline class:

Parameters:session (cloudpassage.HaloSession) – This will define how you interact with the Halo API, including proxy settings and API keys used for authentication.
create(fim_policy_id, server_id, **kwargs)

Creates a FIM baseline

Parameters:
  • fim_policy_id (str) – ID of FIM policy to baseline
  • server_id (str) – ID of server to use for generating baseline
Keyword Arguments:
 
  • expires (int) – Number of days from today for expiration of baseline
  • comment (str) – Guess.
Returns:

ID of new baseline

Return type:

str

delete(fim_policy_id, fim_baseline_id)

Delete a FIM baseline by ID

Parameters:
  • fim_policy_id (str) – ID of FIM policy
  • fim_baseline_id (str) – ID of baseline to be deleted
Returns:

None if successful, exceptions throw otherwise.

describe(fim_policy_id, baseline_id)

Returns the body of the baseline indicated by fim_baseline_id.

Args
fim_policy_id (str): ID of FIM policy fim_baseline_id (str): ID of baseline
Returns:Dictionary describing FIM baseline
Return type:dict
list_all(fim_policy_id)

Returns a list of all baselines for the indicated FIM policy

Parameters:fim_policy_id (str) – ID of fim policy
Returns:List of all baselines for the given policy
Return type:list
update(fim_policy_id, fim_baseline_id, server_id)

Update a FIM policy baseline.

Parameters:
  • fim_policy_id (str) – ID of fim policy
  • fim_baseline_id (str) – ID of baseline to be updated
  • server_id (str) – ID of server to use when generating new baseline
Returns:

None if successful, exceptions throw otherwise.