FimPolicy

class cloudpassage.FimPolicy(session)

Initializing the FimPolicy 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(policy_body)

Creates a policy from JSON document.

Returns the ID of the new policy

delete(policy_id)

Delete a policy by ID. Success returns None

describe(policy_id)

Get the detailed configuration of a policy

Parameters:policy_id (str) – ID of the policy to retrieve detailed configuration information for
Returns:dictionary object representing the entire, detailed, policy
Return type:dict
list_all()

Lists all policies of this type.

Returns:List of policies (represented as dictionary-type objects)
Return type:list

Note

This query is limited to 30 pages.

update(policy_body)

Update a policy. Success returns None