Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST APIs ›Transform APIs

Reset transform API

New API reference

For the most up-to-date API details, refer to Transform APIs.

Resets a transform.

Request

POST _transform/<transform_id>/_reset

Prerequisites

  • Requires the manage_transform cluster privilege. This privilege is included in the transform_admin built-in role.

Description

Before you can reset the transform, you must stop it; alternatively, use the force query parameter.

If you reset a transform, all checkpoints, states, and the destination index (if it was created by the transform) are deleted. The transform is updated to the latest format as if the Update transform API was used. The transform is ready to start again as if it had just been created.

Path parameters

<transform_id>
(Required, string) Identifier for the transform.

Query parameters

force
(Optional, Boolean) If this value is true, the transform is reset regardless of its current state. If it’s false, the transform must be stopped before it can be reset. The default value is false
timeout
(Optional, time) Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 30s.

Examples

resp = client.transform.reset_transform(
    transform_id="ecommerce_transform",
)
print(resp)
response = client.transform.reset_transform(
  transform_id: 'ecommerce_transform'
)
puts response
const response = await client.transform.resetTransform({
  transform_id: "ecommerce_transform",
});
console.log(response);
POST _transform/ecommerce_transform/_reset

When the transform is reset, you receive the following results:

{
  "acknowledged" : true
}

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/reset-transform.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API