pyTenable
pyTenable copied to clipboard
Added support for TenableAD Deviance APIs
Description
Added Tenable.AD Deviance APIs
- Get all deviances for a directory. (list)
- Get ad-object-deviance-history instance by id. (get_history_details)
- Update ad-object-deviance-history instance. (update_history_details)
- Get all deviances related to a single directory and checker. (list_by_directory_and_checker)
- Get all deviances by checker. (list_by_checker)
- Update instances matching a checkerId. (update_by_checker)
- Search all deviances by profile by checker by AD object (search)
- Update the deviances emitted on a specific AD object and for a specific checker. (update_on_ado_and_checker)
updated docs to support deviance api details
Fixes # (issue)
Type of change
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [x] Added tests for deviance endpoints to test responses
- [x] Added schema tests for testing payload inputs and response dict validation
Test Configuration:
- Python Version(s) Tested: 3.8.6
- Tenable.sc version (if necessary):
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules