AI PII Sanitizer 정책 구성 참조
AI PII Sanitizer 정책 구성 참조 (AI PII Sanitizer Policy Configuration Reference)
이 문서는 AI Sanitizer 플러그인과 함께 동작하는 PII Server API의 구성 참조를 다뤄요. 요청 본문에서 PII(개인 식별 정보)를 감지하고 익명화하는 /llm/v1/sanitize 엔드포인트와 서비스 상태를 확인하는 /llm/v1/status 엔드포인트의 스키마를 설명해요. synthetic 또는 placeholder 방식의 redact_type 옵션과 사용자 지정 탐지 패턴(custom_patterns) 정의 방법도 함께 확인할 수 있어요
출처: 문서
본문
---
openapi: 3.1.1
info:
title: PII Server API
description: 'This spec describes the APIs that are exposed by AI PII service that
can work with AI Sanitizer Plugin to sanitize PII entities in the requests.
'
version: 1.0.0
paths:
"/llm/v1/sanitize":
post:
summary: sanitize the PII entities in the request body
description: Returns the sanitized results.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
- anonymize
- options
properties:
text:
type: string
anonymize:
type: array
items:
"$ref": "#/components/schemas/PIIEntity"
options:
type: object
properties:
redact_type:
type: string
enum:
- synthetic
- placeholder
custom_patterns:
type: array
items:
type: object
properties:
name:
type: string
regex:
type: string
score:
type: number
responses:
'200':
description: Service is healthy
content:
application/json:
schema:
type: object
properties:
text:
type: string
identified_pii:
type: array
items:
"$ref": "#/components/schemas/PIIEntity"
anonymized_pii:
type: array
items:
"$ref": "#/components/schemas/PIIEntity"
detected_languages:
type: array
items:
type: string
duration:
type: number
'400':
description: when error happens
content:
application/json:
schema:
type: object
properties:
error:
type: string
"/llm/v1/status":
get:
summary: Health check
description: Returns the health status of the service.
responses:
'200':
description: Service is healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: ok
components:
schemas:
PIIEntity:
enum:
- general
- phone
- creditcard
- crypto
- date
- ip
- nrp
- ssn
- url
- medical
- driverlicense
- passport
- bank
- nationalid
- custom
- credentials
- all
- all_and_credentials
관련 리소스
더 알아보기 (Learn more)
- 요청에 포함된 민감 데이터를 AI로 보호하는 방법을 안내하는 가이드예요 — How to protect sensitive data in requests
- 응답에 포함된 민감 데이터를 AI로 보호하는 방법을 설명하는 가이드예요 — How to protect sensitive data in responses
- 사용자 지정 가드레일 정책으로 AI 트래픽을 제어하는 방법을 다뤄요 — AI Custom Guardrail Policy
- AI PII Sanitizer 로그를 포함한 감사 로그 참조를 확인할 수 있어요 — AI Gateway audit log reference