Restricted Allowlist listing to show only those allowlists applied to the selected policy
This commit is contained in:
@@ -184,6 +184,12 @@ class AirlockAPIWrapper:
|
||||
payload = {"groupid": groupid}
|
||||
result = self._post("/v1/group/agents", payload)
|
||||
return pd.DataFrame(result["response"]["agents"])
|
||||
|
||||
def policy_list_allowlists(self, groupid: str) -> pd.DataFrame:
|
||||
"""List allowlists assigned to a specific policy group."""
|
||||
payload = {"groupid": groupid}
|
||||
result = self._post("/v1/group/policies", payload)
|
||||
return pd.DataFrame(result["response"]["applications"])
|
||||
|
||||
def policy_set_auditmode(self, groupid: str, auditmode: str) -> dict:
|
||||
"""Set audit mode for a policy group. 1=Audit, 0=Enforcement"""
|
||||
|
||||
Reference in New Issue
Block a user