Get Action Groups API
출처: 문서
본문
액션 그룹 조회 API
1.0에 도입됨 {: .label .label-purple }
액션 그룹을 조회해요. 액션 그룹 이름을 지정하면 액션 그룹 하나를 조회하고, 이름을 생략하면 모든 액션 그룹을 조회해요.
엔드포인트
GET /_plugins/_security/api/actiongroups
GET /_plugins/_security/api/actiongroups/{action_group}
경로 파라미터
사용할 수 있는 경로 파라미터는 다음 표에 정리되어 있어요.
| 파라미터 | 데이터 타입 | 필수 여부 | 설명 |
|---|---|---|---|
action_group |
String | 아니요 | 조회할 액션 그룹의 이름이에요. 생략하면 모든 액션 그룹이 반환돼요. |
요청 예제
다음 요청은 모든 액션 그룹을 조회해요:
GET _plugins/_security/api/actiongroups
{% include copy-curl.html security=true %}
다음 요청은 custom_action_group 액션 그룹을 조회해요:
GET _plugins/_security/api/actiongroups/custom_action_group
{% include copy-curl.html security=true %}
응답 예제
여기서는 응답이 축약되어 있어요:
{
"custom_action_group": {
"allowed_actions": [
"indices:data/write/index*",
"indices:data/write/update*",
"indices:admin/mapping/put",
"indices:data/write/bulk*",
"read",
"write"
],
"hidden": false,
"reserved": false,
"static": false
},
"data_access": {
"allowed_actions": [
"indices:data/*",
"crud"
],
"description": "Allow all read/write operations on data",
"hidden": false,
"reserved": true,
"static": true,
"type": "index"
},
"delete": {
"allowed_actions": [
"indices:data/write/delete*"
],
"description": "Allow deleting documents",
"hidden": false,
"reserved": true,
"static": true,
"type": "index"
},
"cluster_manage_pipelines": {
"allowed_actions": [
"cluster:admin/ingest/pipeline/*"
],
"description": "Manage pipelines",
"hidden": false,
"reserved": true,
"static": true,
"type": "cluster"
},
...
}
액션 그룹 하나를 조회하면 응답에는 그 액션 그룹만 포함돼요:
{
"custom_action_group": {
"allowed_actions": [
"indices:data/write/index*",
"indices:data/write/update*",
"indices:admin/mapping/put",
"indices:data/write/bulk*",
"read",
"write"
],
"hidden": false,
"reserved": false,
"static": false
}
}