younifyd
Menu

Clean up the snapshot repository

Clean up the snapshot repository

POST/_snapshot/{repository}/_cleanup

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Clean up the snapshot repository action (under snapshot).
  3. Fill in the fields below, then reference the result from later steps as {{cleanUpTheSnapshotRepository.response.data}}.

Request

Path parameters

repositorystringrequired

The name of the snapshot repository to clean up.

Query parameters

master_timeoutoneOf

The period to wait for a connection to the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to `-1`

timeoutoneOf

The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. To indicate that the request should never timeout, set it to `-1`.

Response

Returns 200 with an object. Read it in later steps with {{cleanUpTheSnapshotRepository.response.data.<field>}}.

resultsany

Statistics for cleanup operations.

json
{
  "results": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Clean up the snapshot repository — Elasticsearch — Documentation