Working on Policy List Grab
This commit is contained in:
+7
-2
@@ -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()
|
||||
Reference in New Issue
Block a user