테이블 데이터 삭제

로그프레소 테이블에서 지정된 날짜 구간의 데이터를 삭제합니다.

HTTP 요청

POST /api/database/tables/:table/purge
cURL 예시
curl -H "Authorization: Bearer <API_KEY>" \
    -X POST https://HOSTNAME/api/database/tables/target1/purge
요청 매개변수
필수타입이름비고
from_dayO문자열시작 날짜yyyyMMdd 형식. 삭제 대상 구간에 포함
to_dayO문자열끝 날짜yyyyMMdd 형식. 삭제 대상 구간에 포함

정상 응답

{}

오류 응답

필수 매개변수가 누락된 경우
{
    "error_code": "null-argument",
    "error_msg": "<PARAMETER> should be not null"
}
날짜 형식이 잘못된 경우
{
    "error_code": "invalid-date-format",
    "error_msg": null
}
테이블이 존재하지 않는 경우
{
    "error_code": "table-not-found",
    "error_msg": null
}
테이블 데이터 삭제 권한이 없는 경우
{
    "error_code": "security-violation",
    "error_msg": "logdb management is not allowed to user"
}