16) View the complete list of security ratings by company
View the complete list of security levels registered in the management center.
API
| Method | URL |
|---|---|
| POST | /api/internal/security/levels |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | User authentication method, JWT value Authorization: Bearer {JWT}Note: The JWT value is issued through the authentication/authorization service. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| companyId | required | string | Company ID to check security level |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 0 : Success Other values: Error |
| data | jsonArray | Security Level List |
| scLabelId | string | Label ID (data that needs to be entered when editing document security levels) |
| scLabelName | string | Label Name |
| scSecurityLevelId | string | Classification grade ID (a higher concept of label) |
| scSecurityLevelName | string | Grade Name |
| message | string | Error message on failure |
Examples
Request
- Body
{
"companyId": "3CJ55MSE-xLO7Sxt4-qUBKzbcs-XP2cgGEq"
}
Response
- success
{
"code": 0,
"data": [
{
"scLabelId": "yoGSZ4pU-hLreQwr6-bk2Bl9aL-DvQ6sfKw",
"scLabelName": "Classified",
"scSecurityLevelId": "GgcoNPBJ-iN4WXGCm-s3YN6moy-4an7Nzx7",
"scSecurityLevelName": "C"
},
{
"scLabelId": "2ED2AiUx-BYUTCHRM-FzbwdJrW-8i6YuTv7",
"scLabelName": "Open",
"scSecurityLevelId": "oWc67uZC-UpX06Bao-En2fIIbx-a4rzXYTw",
"scSecurityLevelName": "O"
},
{
"scLabelId": "jPQOgOEa-Ge338ddW-3q4Wyy2S-Qy3w4mm5",
"scLabelName": "Sensitive",
"scSecurityLevelId": "AaqDHX6p-isGDTLc1-jPfEmTzN-GtFuVVJl",
"scSecurityLevelName": "S"
}
]
}
[보안 등급 정책 존재하지 않음]
{
"code": 0,
"data": []
}
- failure
- Status code : 500 INTERNAL_SERVER_ERROR
[토큰 검증 실패]
{
"code": 50001,
"message": "401 : \"{\"code\":40101,\"message\":\"Invalid token\",\"detail\":\"invalid_token\"}\""
}