Create DLP Rule
Create a custom DLP rule. It needs a pattern, keywords, or both, and
starts enabled. Its entity_type is the name projects and customers use
to override it.
Authentication
A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.
Request
log records a match and sends the prompt unchanged, redact replaces each match with a placeholder such as <US_SSN> before the prompt is sent, and block refuses the request with 422. Defaults to log.
Response
log records a match and sends the prompt unchanged, redact replaces each match with a placeholder such as <US_SSN> before the prompt is sent, and block refuses the request with 422.
custom for rules the organization creates; global and usa are seeded.
How the rule finds matches, like Pattern match and checksum.