사용자 그룹 권한관리
사용자 그룹 관리
조회
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroups |
| URL 요청 예시 | /monitoring/api/userGroups |
| HTTP METHOD | GET |
| Content-Type | application/json; charset=UTF-8 |
| Body | |
| Response | 응답내용은 아래에 |
| * type ** APP - Built-in Group Name ** APP_USER - User Defined Group Name ** WEB – Web Server Ip Address ** SYS – System IP Address ** SVC_CHK - Service Health Check |
응답내용
{
"status": 200,
"result": [
{
"groupId": "admin",
"description": "관리자 그룹",
"delete": false,
"registered": 1502182126875,
"updated": 1534510452364,
"metricPatterns": null,
"metricPatternsList": []
},
{
"groupId": "users",
"description": "사용자 그룹",
"delete": false,
"registered": 1502182126871,
"updated": 1534510452375,
"metricPatterns": [ 권한 정보
{
"uuid": "26A1578B-F5EE-4475-8946-03994D37BB46",
"type": "APP", Build-in Group Name
"name": "All Group",
"pattern": ".*"
},
{
"uuid": "A967B8D9-AD1D-4E49-91E9-BF3AAD49EA31",
"type": "WEB", Web Server IP Address
"name": "WebServer All",
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"
},
{
"uuid": "CEC2FC94-FBE8-4A84-8920-972D4E3B693C",
"type": "SYS", System IP Address
"name": "System All",
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"
}
],
}
]
}
등록
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup |
| URL 요청 예시 | /monitoring/api/userGroup |
| HTTP METHOD | POST |
| Content-Type | application/json; charset=UTF-8 |
| Body | [{"groupId": "testGroups", "description": "테스트 그룹"}] |
| Response | { "status": 200 } |
수정
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup |
| URL 요청 예시 | /monitoring/api/userGroup |
| HTTP METHOD | PUT |
| Content-Type | application/json; charset=UTF-8 |
| Body | {"groupId": "testGroups", "description": " 테스트 그룹 33"} |
| Response | { "status": 200 } |
삭제
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup/{그룹 아이디} |
| URL 요청 예시 | /monitoring/api/userGroup/testGroups |
| HTTP METHOD | DELETE |
| Content-Type | application/json; charset=UTF-8 |
| Body | |
| Response | { "status": 200 } |
그룹 권한 관리
등록
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup/metricPattern/{그룹 아이디} |
| URL 요청 예시 | /monitoring/api/userGroup/metricPattern/testGroups |
| HTTP METHOD | POST |
| Content-Type | application/json; charset=UTF-8 |
| Body | {type: "APP", name: "eap64 app", pattern: "^eap64.*"} |
| * type ** APP - Built-in Group Name ** APP_USER - User Defined Group Name ** WEB – Web Server Ip Address ** SYS – System IP Address ** SVC_CHK - Service Health Check | |
| Response | { "status": 200 } |
수정
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup/metricPattern/{그룹 아이디} |
| URL 요청 예시 | /monitoring/api/userGroup/metricPattern/testGroups |
| HTTP METHOD | PUT |
| Content-Type | application/json; charset=UTF-8 |
| Body | {type: "APP", name: "eap64 app 11", pattern: "^eap64-11.*"} |
| * type ** APP - Built-in Group Name ** APP_USER - User Defined Group Name ** WEB – Web Server Ip Address ** SYS – System IP Address ** SVC_CHK - Service Health Check | |
| Response | { "status": 200 } |
삭제
| 항목 | 설명 |
|---|---|
| URL | /monitoring/api/userGroup/metricPattern/{그룹 아이디} |
| URL 요청 예시 | /monitoring/api/userGroup/metricPattern/testGroups |
| HTTP METHOD | DELETE |
| Content-Type | application/json; charset=UTF-8 |
| Body | ["6EFA1F39-6675-4F24-9C22-D19CDEC055AD"] |
| Response | { "status": 200 } |