younifyd
Menu

Create or update a snapshot repository (PUT)

Create or update a snapshot repository

PUT/_snapshot/{repository}

Use it in a workflow

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

Request

Path parameters

repositorystringrequired

The name of the snapshot repository to register or update.

Query parameters

master_timeoutoneOf

The period to wait for 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`.

verifyboolean

If `true`, the request verifies the repository is functional on all master and data nodes in the cluster. If `false`, this verification is skipped. You can also perform this verification with the verify snapshot repository API.

Response

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

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

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