from datetime import datetime, timezone
scans = client.list_scans(
security_group_uuid="12345678-1234-1234-1234-123456789012",
source_types=["HUGGING_FACE", "S3"],
eval_outcomes=["ALLOWED", "BLOCKED"],
start_time=datetime(2025, 1, 1, tzinfo=timezone.utc),
end_time=datetime(2025, 12, 31, 23, 59, 59, tzinfo=timezone.utc),
labels_query="env:production AND team:ml-platform",
search_query="sentiment",
sort_order="asc",
limit=50
)
You can also filter scans by source type, evaluation outcome, or time range.