본문으로 건너뛰기

18) 문서 보안 등급 조회

문서의 보안 등급 조회

API

MethodURL
POST/api/internal/get/customProperties/securityLevel

Request Header

NameRequiredDescription
Authorizationrequired사용자 인증 수단, JWT값
Authorization: Bearer {JWT}
참고 : JWT값은 인증/인가 서비스를 통해 발급 받는다.

Request Body

NameRequiredTypeDescription
companyIdrequiredstring대상 문서를 사용하는 회사 ID
srcFilePathrequiredstring조회할 문서 경로

Response

NameTypeDescription
codeint0 : 성공
이외의 값 : 에러
scLabelIdstring레이블 아이디(문서 보안 등급 편집 시 입력 해야 되는 데이터)
scLabelNamestring레이블 이름
scSecurityLevelIdstring등급 아이디(레이블의 상위 개념인 분류 등급 아이디)
scSecurityLevelNamestring등급 이름
messagestring실패 시 에러 메시지

Examples

Request

  • Body
{
"companyId": "3CJ55MSE-xLO7Sxt4-qUBKzbcs-XP2cgGEq",
"srcFilePath": "/opt/shieldrm/data/test.xlsx"
}

Response

  • 성공
{
"code": 0,
"scLabelId": "yoGSZ4pU-hLreQwr6-bk2Bl9aL-DvQ6sfKw",
"scLabelName": "Classified",
"scSecurityLevelId": "GgcoNPBJ-iN4WXGCm-s3YN6moy-4an7Nzx7",
"scSecurityLevelName": "C"
}

[scLabelId 설정되지 않음]
{
"code": 0,
"message": "The scLabelId setting is not configured."
}
  • 실패
  • Status code : 500 INTERNAL_SERVER_ERROR
[토큰 검증 실패]
{
"code": 50001,
"message": "401 : \"{\"code\":40101,\"message\":\"Invalid token\",\"detail\":\"invalid_token\"}\""
}