18) 문서 보안 등급 조회
문서의 보안 등급 조회
API
Method | URL |
---|---|
POST | /api/internal/get/customProperties/securityLevel |
Request Header
Name | Required | Description |
---|---|---|
Authorization | required | 사용자 인증 수단, JWT값 Authorization: Bearer {JWT} 참고 : JWT값은 인증/인가 서비스를 통해 발급 받는다. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
companyId | required | string | 대상 문서를 사용하는 회사 ID |
srcFilePath | required | string | 조회할 문서 경로 |
Response
Name | Type | Description |
---|---|---|
code | int | 0 : 성공 이외의 값 : 에러 |
scLabelId | string | 레이블 아이디(문서 보안 등급 편집 시 입력 해야 되는 데이터) |
scLabelName | string | 레이블 이름 |
scSecurityLevelId | string | 등급 아이디(레이블의 상위 개념인 분류 등급 아이디) |
scSecurityLevelName | string | 등급 이름 |
message | string | 실패 시 에러 메시지 |
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\"}\""
}