Get Index Template API
Get Index Template API는 하나 이상의 인덱스 템플릿에 대한 정보를 반환해요.
출처: OpenSearch 문서
본문
엔드포인트 (Endpoints)
GET /_index_template/{template-name}
쿼리 매개변수 (Query parameters)
다음 선택적 쿼리 매개변수를 지원해요.
| Parameter | Type | Description | | create | Boolean | When true, the API cannot replace or update any existing index templates. Default is false. | | cluster_manager_timeout | Time | The amount of time to wait for a connection to the cluster manager node. Default is 30s. | | flat_settings | Boolean | Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of “index”: { “creation_date”: “123456789” } is “index.creation_date”: “123456789”. |
예제 요청 (Example requests)
다음 예제 요청은 와일드카드 표현식을 사용해 인덱스 템플릿 정보를 가져와요.
GET /_index_template/h*
response = client.indices.get_index_template(
name = "h*"
)
다음 예제 요청은 모든 인덱스 템플릿에 대한 정보를 가져와요.
GET /_index_template
response = client.indices.get_index_template()
필요한 권한 (Required permissions)
Security 플러그인을 사용한다면 적절한 권한을 확인하세요: indices:admin/index_template/get