Skip to content

v1.47.0

Latest
Compare
Choose a tag to compare
@derpadoo derpadoo released this 10 Aug 03:06
· 2 commits to master since this release
876b444

Console

For #281, Added created and last_updated fields for the models:

  • Configuration
  • Engine
  • EnginePool
  • GloballyExcludedTarget
  • Scan
  • ScanCommand
  • Site

The created and last_updated fields are also exposed in the API

import scantron_api_client

sc = scantron_api_client.ScantronClient()

response = sc.retrieve_site(1)

print(response.json())

{
        "id": 1,
        "site_name": "Test",
        "description": "",
        "targets": "192.168.1.10 192.168.1.11 192.168.1.12",
        "excluded_targets": "",
        "scan_command": 1,
        "scan_engine": 1,
        "scan_engine_pool": null,
        "email_scan_alerts": false,
        "email_alert_addresses": "",
        "email_scan_diff": true,
        "email_scan_diff_addresses": "test@localhost",
        "created": "2021-08-09T16:02:39.892926-05:00",
        "last_updated": "2021-08-09T16:03:56.611772-05:00"
    }