Delete Template API (템플릿 삭제 API, 폐기됨)
Delete Template API는 레거시 /_template 엔드포인트로 만들어진 인덱스 템플릿을 삭제하는 API예요. 단, 이 API는 더 이상 지원되지 않는(deprecated) 방식이므로 새 Delete Index Template API를 사용하는 것이 좋습니다.
출처: OpenSearch 문서
본문
Endpoints
DELETE /_template/{template-name}
Path parameters
다음 표는 사용할 수 있는 경로 파라미터 목록이에요. 모든 경로 파라미터는 필수입니다.
| Parameter | Type | Description | | index-name | String | The name of the index to delete. Supports wildcard expressions. |
Query parameters
다음 표는 사용할 수 있는 쿼리 파라미터 목록이에요. 모든 파라미터는 선택 사항입니다.
| Parameter | Type | Description |
| cluster_manager_timeout | Time | Specifies how long to wait for a connection to the cluster manager node. Default is 30s. |
| timeout | Time | Specifies how long to wait for the operation to complete. Default is 30s. |
Example request
DELETE /_template/logging_template
response = client . indices . delete_template ( name = " logging_template " )
Example response
{ "acknowledged" : true }
더 알아보기 (Learn more)
이 API는 레거시 방식이라 특별한 이유가 없다면 사용하지 않는 것이 좋아요. 템플릿 관리가 필요하다면 새 버전의 index template API들을 살펴보고, 템플릿에 대한 개념은 OpenSearch의 index templates 문서를 함께 참고해 주세요.