SHARE
TWEET

Untitled

a guest May 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import cloudpassage
  2. import os
  3.  
  4. key = os.getenv("HALO_API_KEY")
  5. secret = os.getenv("HALO_API_SECRET_KEY")
  6. session = cloudpassage.HaloSession(key, secret)
  7. issues = cloudpassage.Issue(session)
  8. all_issues = issues.list_all(critical=True, state="active,deactivated,missing,retired", since="2019-05-09")
  9. for issue in all_issues:
  10.     print("{} {} {}".format(issue["issue_type"], issue["id"], issue["name"]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top