First of all, I would like to thank you for taking your time to develop this, but also for the shared thought of how this can be used with Ansible. Nice touch!
I have gone through your code and a concern I have is the heavy use of /status, but also /config for fetching object information. I would highly recommend that you use the /filter method for that instead, as we may be deprecating the /status method with time. In addition: the /filter method can also give you more control of what information OP5 sends back to the client (with the ?columns= parameter).
First of all, I would like to thank you for taking your time to develop this, but also for the shared thought of how this can be used with Ansible. Nice touch!
I have gone through your code and a concern I have is the heavy use of /status, but also /config for fetching object information. I would highly recommend that you use the /filter method for that instead, as we may be deprecating the /status method with time. In addition: the /filter method can also give you more control of what information OP5 sends back to the client (with the ?columns= parameter).