Skip to main content

18) 문서 보안 등급 조회

문서의 보안 등급 조회

API

MethodURL
POST/api/get/customProperties/securityLevel

Request Body

NameRequiredTypeDescription
licenseKeyrequiredstringSHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력
srcFilePathrequiredstring조회할 문서 경로

Response

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

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.\"}"
}