Customize Model Scans
Focus
Focus
Prisma AIRS

Customize Model Scans

Table of Contents


Customize Model Scans

Customize your AI model scans.

Customize Model Scans

You can configure scan execution and adjust result timeout settings.
Customize Scan using CLI
model-security scan \ --security-group-uuid "12345678-1234-1234-1234-123456789012" \ --model-uri "<model_uri>" \ --poll-interval-secs 10 \ --poll-timeout-secs 900 \ --download-timeout-secs 1800 \ # Object storage download timeout --download-dir "/custom/download/path"\ # Object storage download location --cleanup-download-dir \ # Cleanup downloads after scan --block-on-errors
Customize Scan using Python SDK
from model_security_client.api import ModelSecurityAPIClient # Initialize the client with download configuration client = ModelSecurityAPIClient( base_url="https://api.sase.paloaltonetworks.com/aims", download_timeout_secs=1800, # Object storage download timeout download_dir="/custom/download/path", # Object storage download location cleanup_download_dir=True # Cleanup downloads after scan ) # Perform scan with polling configuration result = client.scan( security_group_uuid="12345678-1234-1234-1234-123456789012", model_uri="<model_uri>", poll_interval_secs=10, poll_timeout_secs=900, )
Following are the configuration options to customize the scan for AI models.
Configuration OptionDescriptionDefault Value
download_timeout_secs(Object storage scans only) Specify the timeout duration for model downloads from cloud storage.600 seconds
download_dir(Object storage scans only) Specify the destination directory for downloading models from object storage.~/.cache/airsms/
cleanup_download_dir(Object storage scans only) Remove downloaded models after scanning to conserve disk space.False
poll_interval_secsSpecify the frequency of scan status checks.5 seconds
poll_timeout_secsSpecify the maximum wait time for scan completion.600 seconds
block_on_errors (CLI only) CLI exits with an error code when scan errors occurs.NA