Get audit storage settings
GET
/api/admin/settings/audit-storage
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/settings/audit-storage \ --header 'Authorization: Bearer <token>'Returns effective audit storage, retention, routing rule, hot-query, queue, and backend configuration details.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
storage
Resolved audit storage profile and backend configuration.
object
key
additional properties
retention
Resolved retention configuration and constraints.
object
key
additional properties
routing_rules
Audit routing rule configuration.
object
key
additional properties
defaults
Default storage and retention configuration.
object
key
additional properties
operational_policy
Resolved operational policy.
object
key
additional properties
queue
Audit queue status.
object
key
additional properties
backend_types
Human-readable backend type descriptions.
object
key
additional properties
string
note
string
key
additional properties
Example
{ "storage": { "config": { "defaultEventBackend": "D1" }, "source": "runtime_profile", "profile_id": "managed-audit-profile", "available_profiles": [ { "id": "managed-audit-profile", "label": "Managed audit profile", "builtin": false, "primaryType": "d1" } ], "batch_config_source": "kv" }, "retention": { "config": { "eventLogRetentionDays": 90, "piiLogRetentionDays": 365, "archiveBeforeDelete": true }, "source": "runtime_profile", "kv_key": "audit_storage:retention_config" }, "routing_rules": { "rules": [], "kv_key": "audit_storage:routing_rules" }, "defaults": { "storage": {}, "retention": {} }, "operational_policy": { "hotQuery": { "supported": true } }, "queue": { "audit_queue": { "configured": true } }, "backend_types": { "D1": "Cloudflare D1 (SQLite) - Hot data, fast queries" }, "note": "Changes take effect within 10 seconds (cache TTL)"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}