Remove Scan Labels
Focus
Focus
Prisma AIRS

Remove Scan Labels

Table of Contents


Remove Scan Labels

Remove specific labels from a scan using their keys. Keys that do not exist on the scan are ignored.

RemoveLabels API

Remove specific labels from a scan using their keys. Keys that do not exist on the scan are ignored.
Using CLI
model-security delete-scan-labels \ --scan-uuid "550e8400-e29b-41d4-a716-446655440000" \ --keys "temporary" \ --keys "draft" \ --keys "old-label"
Using Python SDK
from uuid import UUID from model_security_client.api import ModelSecurityAPIClient client = ModelSecurityAPIClient( base_url="https://api.sase.paloaltonetworks.com/aims" ) scan_uuid = UUID("550e8400-e29b-41d4-a716-446655440000") # Remove specific labels by key client.delete_scan_labels( scan_uuid=scan_uuid, keys=["temporary", "draft", "old-label"] ) print(f"Labels removed from scan {scan_uuid}")