Set snapshot repository

PUT /platform/configuration/snapshots/repositories/{repository_name}

Creates or updates the snapshot repository configuration.

Path parameters

Query parameters

  • version integer

    Checks for conflicts against the metadata version, then returns the value in the x-cloud-resource-version header.

application/json

Body Required

The Elasticsearch snapshot repository configuration

Responses

  • 200 application/json

    New snapshot repository config

    Hide response attributes Show response attributes object
    • repository_name string Required

      Elasticsearch snapshot repository name

    • config object Required

      Elasticsearch configuration JSON for a snapshot repository

PUT /platform/configuration/snapshots/repositories/{repository_name}
curl \
 --request PUT 'https://{{hostname}}/api/v1/platform/configuration/snapshots/repositories/{repository_name}' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"type":"string","settings":{}}'