duosecurity/duo_client_python

Support for Trust Monitor Data

rootshellz opened this issue · 3 comments

I would like support for Trust Monitor Data by implementing the trust_monitor endpoint.

Thanks you for this feedback. We'll take a look at updating the API examples.

If your use case for our Admin API is to pull logs/auth/trust data, have you taken a look at the duologsync tool? This is a standalone Python 3 utility that already includes support for the trust monitor endpoints (among others).

Hi @rootshellz! The existing client should have functionality to pull Trust Monitor events from your Admin API integration. I do agree with @DuoKristina that there should probably be some more explicit examples for this, but in the meantime you can you the following methods if you wanted to give it another shot. The documentation strings in the functions linked below should show you the parameters that they expect.

from duo_client import Admin


admin_client = Admin("<your ikey>", "<your skey>", "<your api-hostname>")


admin_client.get_trust_monitor_events_by_offset
admin_client.get_trust_monitor_events_iterator

def get_trust_monitor_events_iterator(

def get_trust_monitor_events_by_offset(

Posted a PR above that adds a sample script that shows folks how to fetch Trust Monitor events from the Admin API.