18) 문서 보안 등급 조회
문서의 보안 등급 조회
API
Method | URL |
---|---|
POST | /api/get/customProperties/securityLevel |
Request Body
Name | Required | Type | Description |
---|---|---|---|
licenseKey | required | string | SHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력 |
srcFilePath | required | string | 조회할 문서 경로 |
Response
Name | Type | Description |
---|---|---|
code | int | 0 : 성공 이외의 값 : 에러 |
labelId | string | 레이블 아이디(문서 보안 등급 편집 시 입력 해야 되는 데이터) |
labelName | string | 레이블 이름 |
securityLevelId | string | 등급 아이디(레이블의 상위 개념인 분류 등급 아이디) |
securityLevelName | string | 등급 이름 |
message | string | 실패 시 에러 메시지 |
Examples
Request
- Body
{
"licenseKey": "EFBB-029BD-F155-7F13E",
"srcFilePath": "/opt/shieldrm/data/test.xlsx"
}
Response
- 성공
{
"code": 0,
"labelId": "yoGSZ4pU-hLreQwr6-bk2Bl9aL-DvQ6sfKw",
"labelName": "Classified",
"securityLevelId": "GgcoNPBJ-iN4WXGCm-s3YN6moy-4an7Nzx7",
"securityLevelName": "C"
}
[securityLevel 설정되지 않음]
{
"code": 0,
"message": "The securityLevel setting is not configured."
}
- 실패
- Status code : 401 Unauthorized
[라이선스 검증 실패]
{
"code": 40101,
"message": "{\"code\":40107,\"message\":\"No matching license found\",\"detail\":\"License skms_connector_info information is empty.\"}"
}