Set snapshot repository

Creates or updates an existing snapshot repository configuration by name.

Request

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

Path Parameters

repository_name (required)
(string) Custom name of a snapshot repository configuration.

Query Parameters

version
(integer) If specified, checks for conflicts against the version of the repository configuration (returned in 'x-cloud-resource-version' of the GET request)

Request body

(SnapshotRepositoryConfiguration) (required) The Elasticsearch snapshot repository configuration.

Responses

200
(RepositoryConfig) New snapshot repository config
449
(BasicFailedReply) When running as an administrator (other than root), sudo is required (code: 'root.needs_sudo')