Reset a transform
Generally available
Before you can reset it, you must stop it; alternatively, use the force
query parameter.
If the destination index was created by the transform, it is deleted.
highlight#highlightFromAnchor" href="#topic-required-authorization"> Required authorization
- Cluster privileges:
manage_transform
Path parameters
-
Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters.
Query parameters
-
If this value is
true
, the transform is reset regardless of its current state. If it'sfalse
, the transform must be stopped before it can be reset. -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
POST
/_transform/{transform_id}/_reset
dropdown#toggle click@window->dropdown#hide touchend@window->dropdown#hide"
data-dropdown-target="button"
data-scrollable="false"
data-headings="false"
aria-expanded="false"
aria-haspopup="true"
role="menu"
tabindex="0">
Console
POST _transform/ecommerce_transform/_reset
resp = client.transform.reset_transform(
transform_id="ecommerce_transform",
)
const response = await client.transform.resetTransform({
transform_id: "ecommerce_transform",
});
response = client.transform.reset_transform(
transform_id: "ecommerce_transform"
)
$resp = $client->transform()->resetTransform([
"transform_id" => "ecommerce_transform",
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_transform/ecommerce_transform/_reset"
client.transform().resetTransform(r -> r
.transformId("ecommerce_transform")
);
Response examples (200)
A successful response when the transform is reset.
{
"acknowledged": true
}