용어 목록 조회
용어 목록을 조회합니다.
필요 권한
관리자 이상의 계정으로 이용할 수 있습니다.
HTTP 요청
GET /api/sonar/glossary/terms
cURL 예시
curl -H "Authorization: Bearer <API_KEY>" \
"https://HOSTNAME/api/sonar/glossary/terms?category=table"
요청 매개변수
| 키 | 필수 | 타입 | 설명 | 비고 |
|---|---|---|---|---|
| offset | X | 32비트 정수 | 건너뛸 갯수 | 기본값: 0 |
| limit | X | 32비트 정수 | 최대 갯수 | 기본값: 20 |
| keywords | X | 문자열 | 검색 키워드 | term, code, description에서 검색할 문자열 |
| category | X | 문자열 | 분류 | 용어 사용 대상. table, field 중 하나 |
| locale | X | 문자열 | 언어 | ko(한국어), en(영어), zh(중국어) 중 하나 |
정상 응답
{
"total_count": 1,
"terms": [
{
"guid": "a07e6bd4-5ca2-11f0-ad90-acde48001122",
"locale": "ko",
"term": "시각",
"type": "DATE",
"code": "_time",
"category": "field",
"description": "로그 생성 시각",
"created": "2025-07-01 00:31:13+0900",
"updated": "2025-07-01 00:31:13+0900"
}
]
}
- total_count (32비트 정수): 검색 조건과 일치하는 전체 건수
- terms (배열): 용어 목록
- guid (문자열): 용어 GUID (36자 GUID)
- locale (문자열): 언어 (
ko(한국어),en(영어),zh(중국어) 중 하나) - term (문자열): 용어
- type (문자열): 데이터 유형 (
DATE,STRING,IP,PORT,SHORT,INT,LONG,COUNTRY,FLOAT,DOUBLE,BOOL,MD5,SHA1,URL,SHA256,DOMAIN중 하나) - code (문자열): 용어 식별 코드
- category (문자열): 용어 사용 대상 분류 (
table,field중 하나) - description (문자열): 용어 설명
- created (문자열): 생성일시 (
yyyy-MM-dd HH:mm:ssZ형식) - updated (문자열): 수정일시 (
yyyy-MM-dd HH:mm:ssZ형식)
오류 응답
offset, limit 값이 정수가 아닌 경우
HTTP 상태 코드 400 응답
{
"error_code": "invalid-argument",
"error_msg": "'offset' parameter should be int type"
}
offset, limit 값이 음수인 경우
HTTP 상태 코드 400 응답
{
"error_code": "invalid-argument",
"error_msg": "'offset' must be greater than or equal to 0."
}
offset, limit 값이 최댓값을 초과한 경우
{
"error_code": "invalid-argument",
"error_msg": "'limit' must be less than or equal to 2147483647."
}
category가 유효하지 않은 경우
{
"error_code": "invalid-argument",
"error_msg": "invalid category: ABC"
}
용어 목록 조회 권한이 없는 경우
{
"error_code": "illegal-state",
"error_msg": "no-permission"
}