Working on Policy List Grab

This commit is contained in:
brotoskyj
2025-08-19 17:11:11 -04:00
parent 88a1bae574
commit 79a0541871
4 changed files with 40 additions and 2 deletions
+7 -2
View File
@@ -1,6 +1,10 @@
import dotenv
import os
import utils.getdeviceevents
import utils.allowlist
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
dotenv.load_dotenv()
@@ -18,12 +22,13 @@ def apivalidation():
def menu():
print("\n--- Main Menu ---")
print("1. Get All Events for Single Device")
print("2. Policy Enforcement Readiness")
print("3. Get Device with Highest Blocks in 7 Days")
print("2. Get Execution Histories for Allow List")
while True:
choice = input("Enter Menu Item: ")
if choice == '1':
utils.getdeviceevents.devicehistory(url)
if choice == '2':
utils.allowlist.allowlistexechistories(url)
if __name__ == "__main__":
apivalidation()