Prisma AIRS
Using CLI
Table of Contents
Expand All
|
Collapse All
Prisma AIRS Docs
Using CLI
Scan provide immediate results with options to retrieve detailed findings later using
scan ID, view scan history, and access enhanced analysis through the CLI.
Retrieving a Specific Scan (CLI/SDK)
After a scan completes, note the scan ID from the output. Retrieve the full results
at any time.
Retrieve Scan Results using
CLI
model-security get-scan --uuid "87654321-4321-4321-4321-210987654321"
Retrieve Scan Results using Python
SDK
scan_result = client.get_scan(uuid="87654321-4321-4321-4321-210987654321") print(f"Scan Status: {scan_result.eval_outcome}") print(f"Model URI: {scan_result.model_uri}") print(f"Created: {scan_result.created_at}")
View Scan Summary (CLI/SDK)
View a summary of recent scans to track your security assessments.
View Scan Summary using
CLI
model-security list-scans \ --security-group-uuid "12345678-1234-1234-1234-123456789012" \ --source-types "HUGGING_FACE" \ --source-types "S3" \ --eval-outcomes "ALLOWED" \ --eval-outcomes "BLOCKED" \ --start-time "2025-01-01 T00:00:00" \ --end-time "2025-12-31 T23:59:59" \ --labels-query "env:production AND team:ml-platform" \ --search-query "sentiment" \ --sort-order "asc" \ --limit 50
View Scan Summary using Python SDK
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.
Filter Scans by source type, evaluation outcome, or time range using
CLI
model-security list-scans \ --source-types "HUGGING_FACE" \ --source-types "S3" \ --eval-outcomes "ALLOWED" \ --eval-outcomes "BLOCKED" \ --start-time "2025-01-01T00:00:00" \ --end-time "2025-12-31T23:59:59" \ --limit 50
Filter Scans by source type, evaluation outcome, or time range using Python
SDK
from datetime import datetime, timezone scans = client.list_scans( 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), limit=50 )