Created
May 10, 2019 15:49
-
-
Save ashmastaflash/94a979f6e8a662da6c8490721f04df37 to your computer and use it in GitHub Desktop.
Check all issues updated since a point in time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cloudpassage | |
import os | |
key = os.getenv("HALO_API_KEY") | |
secret = os.getenv("HALO_API_SECRET_KEY") | |
session = cloudpassage.HaloSession(key, secret) | |
issues = cloudpassage.Issue(session) | |
all_issues = issues.list_all(critical=True, state="active,deactivated,missing,retired", since="2019-05-09") | |
for issue in all_issues: | |
print("{} {} {}".format(issue["issue_type"], issue["id"], issue["name"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment