Fix NinjaOne API integration and patch parsing

- Use us2.ninjarmm.com instance (not app.ninjarmm.com)
- Handle results wrapper in API responses
- Parse impact field for severity (critical/high/medium/low)
- Fetch all patches, not just pending

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-18 12:52:10 -05:00
parent 1e75818310
commit d28dd504f2
2 changed files with 46 additions and 39 deletions

View File

@@ -5,6 +5,6 @@ NINJAONE_CONFIG = {
'client_id': 'your_client_id',
'client_secret': 'your_client_secret',
'base_url': 'https://app.ninjarmm.com', # or your regional URL
'token_url': 'https://app.ninjarmm.com/oauth/token',
'token_url': 'https://app.ninjarmm.com/ws/oauth/token',
'scope': 'monitoring management'
}