본문 바로가기
WIKI 기술 지식 베이스

Create or Update Action Group API

원문 보기 위키 갱신

출처: 문서

본문

액션 그룹 생성 또는 업데이트 API

1.0에서 도입 {: .label .label-purple }

지정된 액션 그룹을 생성하거나 교체해요.

엔드포인트

PUT /_plugins/_security/api/actiongroups/{action_group}

요청 본문 필드

요청 본문은 필수예요. 다음 필드를 가진 JSON 객체예요.

필드 데이터 타입 설명 필수 여부
allowed_actions Array of strings 액션 그룹이 허용하는 액션이에요. indices:data/write/index 같은 개별 액션이나 다른 액션 그룹의 이름을 지정할 수 있어요. 예
type String 액션 그룹의 범위예요. 유효한 값은 cluster, index, kibana예요. 생략하면 액션 그룹을 어떤 수준에서든 사용할 수 있어요. 아니요
description String 액션 그룹에 대한 설명이에요. 아니요
hidden Boolean 액션 그룹을 API와 OpenSearch Dashboards에서 숨길지 여부예요. 기본값은 false예요. 아니요
reserved Boolean 액션 그룹이 읽기 전용이라 수정할 수 없는지 여부예요. 기본값은 false예요. 아니요

요청 예제

PUT _plugins/_security/api/actiongroups/custom_action_group
{
  "allowed_actions": [
    "indices:data/write/index*",
    "indices:data/write/update*",
    "indices:admin/mapping/put",
    "indices:data/write/bulk*",
    "read",
    "write"
  ]
}

{% include copy-curl.html security=true %}

응답 예제

{
  "status": "CREATED",
  "message": "'custom_action_group' created."
}

더 알아보기 (Learn more)