Replace Labels
Focus
Focus
Prisma AIRS

Replace Labels

Table of Contents


Replace Labels

Replace the complete set of existing labels on the scan with the new provided labels.

SetLabels API

Replace the complete set of existing labels on the scan with the new provided labels.
Using CLI
model-security set-labels 550e8400-e29b-41d4-a716-446655440000 \ -l env=staging \ -l version=v2-0 \ -l deployed=false
Using Python SDK
from uuid import UUID scan_uuid = UUID("550e8400-e29b-41d4-a716-446655440000") # Replace all existing labels client.set_scan_labels( scan_uuid=scan_uuid, labels={ "env": "staging", "version": "v2-0", "deployed": "false" } ) print(f"Labels set for scan {scan_uuid} (all previous labels removed)")