Update and Delete Auditor Configuration#
Update a Configuration#
To update an audit configuration, you send a PATCH request to the /v1beta1/audit/configs endpoint.
client.beta.audit.configs.update(
config_name="demo-basic-config",
namespace="default",
description="Updated description",
system={
"parallel_attempts": 10,
"lite": False
},
plugins={
"probe_spec": "ansiescape"
}
)
curl -X PATCH "${AUDITOR_BASE_URL}/v1beta1/audit/configs/default/demo-basic-config" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated description",
"system": {
"parallel_attempts": 10,
"lite": false
},
"plugins": {
"probe_spec": "ansiescape"
}
}' | jq
Delete a Configuration#
To delete an audit configuration, you send a DELETE request to the /v1beta1/audit/configs endpoint.
client.beta.audit.configs.delete(
config_name="demo-basic-config",
namespace="default"
)
curl -X DELETE "${AUDITOR_BASE_URL}/v1beta1/audit/configs/default/demo-basic-config" \
-H "Accept: application/json"
View Configuration History#
To view the configuration history, you send a GET request to the /v1beta1/audit/configs/<namespace>/<config-name>/versions endpoint.
You can compare the updated_at fields to determine the most recent version or
you can compare the id and entity_id fields.
The object with matching id and entity_id fields is the latest version.
import os
from nemo_microservices import NeMoMicroservices
client = NeMoMicroservices(base_url=os.getenv("AUDITOR_BASE_URL"))
versions = client.beta.audit.configs.list_versions(
config_name="demo-basic-config",
namespace="default"
)
print(versions.model_dump_json(indent=2))
curl -X GET "${AUDITOR_BASE_URL}/v1beta1/audit/configs/default/demo-basic-config/versions" \
-H "Accept: application/json" | jq
Example Output
{
"object": "list",
"data": [
{
"id": "audit_config-WsPSSZQJHxmbSLdFhQ7Ve",
"created_at": "2025-11-25T15:05:16.998038Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-WsPSSZQJHxmbSLdFhQ7Ve",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T15:17:39.030227Z"
},
{
"id": "audit_config-FhnKmXodco3KoHSuUPw9dw",
"created_at": "2025-11-25T15:17:39.030227Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-WsPSSZQJHxmbSLdFhQ7Ve",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T15:17:39.030227Z"
},
{
"id": "audit_config-8Q2F4SeYzTHPFU8EhwjsRw",
"created_at": "2025-11-25T15:20:26.111277Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-8Q2F4SeYzTHPFU8EhwjsRw",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:28:21.238229Z"
},
{
"id": "audit_config-MmdgwXz6o7iuKkeqfTV68X",
"created_at": "2025-11-25T16:28:21.238229Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-8Q2F4SeYzTHPFU8EhwjsRw",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:28:21.238229Z"
},
{
"id": "audit_config-7gvqtucvdFyGZYRBj8wkPp",
"created_at": "2025-11-25T16:29:30.146280Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-7gvqtucvdFyGZYRBj8wkPp",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:30:13.069788Z"
},
{
"id": "audit_config-Gt337m5TSyxuBmKtLeyirK",
"created_at": "2025-11-25T16:30:13.069788Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-7gvqtucvdFyGZYRBj8wkPp",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:30:13.069788Z"
},
{
"id": "audit_config-Sn8uXGpwBDkBNDDTpuyucr",
"created_at": "2025-11-25T16:30:28.117795Z",
"custom_fields": {},
"description": "Basic demonstration configuration",
"entity_id": "audit_config-Sn8uXGpwBDkBNDDTpuyucr",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": true,
"narrow_output": false,
"parallel_attempts": 20,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:34:37.957732Z"
},
{
"id": "audit_config-HGXjhRh17e2R1YP6D9Jnin",
"created_at": "2025-11-25T16:34:37.957732Z",
"custom_fields": {},
"description": "Updated description",
"entity_id": "audit_config-Sn8uXGpwBDkBNDDTpuyucr",
"name": "demo-basic-config",
"namespace": "default",
"ownership": null,
"plugins": {
"buff_max": null,
"buff_spec": null,
"buffs": {},
"buffs_include_original_prompt": false,
"detector_spec": "auto",
"detectors": {},
"extended_detectors": false,
"generators": {},
"harnesses": {},
"model_name": null,
"model_type": null,
"probe_spec": "ansiescape",
"probes": {}
},
"project": null,
"reporting": {
"report_dir": "garak_runs",
"report_prefix": "run1",
"show_100_pass_modules": true,
"taxonomy": null
},
"run": {
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"seed": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"schema_version": "1.0",
"system": {
"enable_experimental": false,
"lite": false,
"narrow_output": false,
"parallel_attempts": 10,
"parallel_requests": false,
"show_z": false,
"verbose": 0
},
"type_prefix": null,
"updated_at": "2025-11-25T16:34:37.957732Z"
}
],
"sort": "created_at",
"pagination": {
"current_page_size": 8,
"page": 1,
"page_size": 100,
"total_pages": 1,
"total_results": 8
},
"filter": {
"ownership": null
},
"search": null
}
{
"object": "list",
"data": [
{
"schema_version": "1.0",
"id": "audit_config-UBboobCgipkfUaBbV1dxjh",
"description": "Basic demonstration configuration",
"type_prefix": null,
"namespace": "default",
"project": null,
"created_at": "2025-11-25T18:42:46.531257Z",
"updated_at": "2025-11-25T18:50:54.978880Z",
"custom_fields": {},
"ownership": null,
"name": "demo-basic-config",
"entity_id": "audit_config-UBboobCgipkfUaBbV1dxjh",
"system": {
"verbose": 0,
"narrow_output": false,
"parallel_requests": false,
"parallel_attempts": 20,
"lite": true,
"show_z": false,
"enable_experimental": false
},
"run": {
"seed": null,
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"plugins": {
"model_type": null,
"model_name": null,
"probe_spec": "dan.AutoDANCached,goodside.Tag",
"detector_spec": "auto",
"extended_detectors": false,
"buff_spec": null,
"buffs_include_original_prompt": false,
"buff_max": null,
"detectors": {},
"generators": {},
"buffs": {},
"harnesses": {},
"probes": {}
},
"reporting": {
"report_prefix": "run1",
"taxonomy": null,
"report_dir": "garak_runs",
"show_100_pass_modules": true
}
},
{
"schema_version": "1.0",
"id": "audit_config-RRXGLzZwJY6Q67qaTWnmmZ",
"description": "Updated description",
"type_prefix": null,
"namespace": "default",
"project": null,
"created_at": "2025-11-25T18:50:54.978880Z",
"updated_at": "2025-11-25T18:50:54.978880Z",
"custom_fields": {},
"ownership": null,
"name": "demo-basic-config",
"entity_id": "audit_config-UBboobCgipkfUaBbV1dxjh",
"system": {
"verbose": 0,
"narrow_output": false,
"parallel_requests": false,
"parallel_attempts": 10,
"lite": false,
"show_z": false,
"enable_experimental": false
},
"run": {
"seed": null,
"deprefix": true,
"eval_threshold": 0.5,
"generations": 5,
"probe_tags": null,
"user_agent": "garak/{version} (LLM vulnerability scanner https://garak.ai)"
},
"plugins": {
"model_type": null,
"model_name": null,
"probe_spec": "ansiescape",
"detector_spec": "auto",
"extended_detectors": false,
"buff_spec": null,
"buffs_include_original_prompt": false,
"buff_max": null,
"detectors": {},
"generators": {},
"buffs": {},
"harnesses": {},
"probes": {}
},
"reporting": {
"report_prefix": "run1",
"taxonomy": null,
"report_dir": "garak_runs",
"show_100_pass_modules": true
}
}
],
"pagination": {
"page": 1,
"page_size": 100,
"current_page_size": 2,
"total_pages": 1,
"total_results": 2
},
"sort": "created_at",
"filter": {
"ownership": null
},
"search": null
}