メインコンテンツまでスキップ

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ラベルID(文書セキュリティレベル編集時に入力する必要があるデータ)
scLabelNamestringラベル名
scSecurityLevelIdstringグレードID(ラベルの上位概念である分類グレードID)
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\"}\""
}