System Policies

Test regex pattern

Tests a regex pattern against input strings without creating a policy.

Useful for validating patterns before creating policies. Has a 5-second timeout to prevent ReDoS attacks.

post/api/v1/system-policies/test

Request

Request body

patternstring required

Regex pattern to test

inputstring

Single input string to test (for backward compatibility)

inputsstring[]

Multiple input strings to test

Response

Pattern test results

validboolean

Whether the pattern is valid regex

errorstring

Error message if pattern is invalid

Changes

No recorded changes to this operation across all 1 revision of this API.