4) 条件付きポリシーの照会および実行ポリシーの受信
条件付きポリシー照会および実行ポリシー受信API
API
| Method | URL |
|---|---|
| POST | /api/search/ztca/evaluation |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| licenseKey | required | string | SHIELDRM 管理者ページの連携アプリ管理メニューで発行されたライセンスを入力 |
| userId | required | string | 認証/認可サービスに登録された会社別ユーザーID |
| ipAddress | required | string | ユーザーIPアドレス |
| fileEvent | required | string | ファイルイベント |
| type | required | string | 対象文書タイプ |
| ext | required | string | 対象文書の拡張子 |
| properties | optional | string | 対象文書暗号化タイプ DAC IDが複数ある場合は "|" で区切ります ex) DAC;user1|DAC;user2 |
| creatorSameLoginUser | optional | string | コンストラクタ情報の確認 - ドキュメント作成者IDとuserIdの一致 여부 : true / false |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 成功の有無 (成功:0) |
| message | string | "Success" : 成功 その他の値 エラーメッセージ |
| conditionalPolicyName | string | 条件付きポリシー名 |
| conditionalPolicyId | string | 条件付きポリシーID |
| enforcementAttributes | jsonArray | 実行ポリシーの一覧 |
| order | int | 政策の優先順位 |
| category | string | 評価対象カテゴリ |
| info | json | 執行ポリシーの詳細 |
Examples
Request
- Body
{
"licenseKey": "A4CD-BCBE6-D1DF-8BFB9",
"userId": "ekms2@softcamp.co.kr",
"ipAddress": "10.10.10.100",
"fileEvent": "encryption",
"type": "ds",
"ext": "pptx",
"properties": "MAC;0000001",
"creatorSameLoginUser": "false"
}
Response
- 成功
[조건부 정책 조회 성공]
{
"code": 0,
"message": "Success",
"conditionalPolicyName": "test",
"conditionalPolicyId": "ePs0qUsi-mZ6KUyKV-uhTvXHQh-1w35aKNa",
"enforcementAttributes": [
{
"order": 0,
"category": "convert",
"info": {
"auth": "011111000",
"detail": "DAC;test@test.com",
"forcedEncryptPolicy": "false",
"type": "ds"
}
}
]
}
[조건에 맞는 조건부 정책이 존재하지 않음]
{
"code": 1621,
"message": "Conditional policies does not exist that match the conditions"
}
[존재하지 않는 userId]
{
"code": 1200,
"message": "User not found"
}
- 内部サービスの失敗
{
"code": 50001,
"message": "An unexpected error has occurred in the internal system"
}