Set snapshot repository
Creates or updates the snapshot repository configuration.
Path parameters
-
The name of the snapshot repository configuration.
Query parameters
-
version integer
Checks for conflicts against the metadata version, then returns the value in the
x-cloud-resource-version
header.
Body Required
The Elasticsearch snapshot repository configuration
-
Repository type, (Currently supported: 's3')
-
Elasticsearch repository configuration settings JSON. See Elasticsearch documentation for more information
Additional properties are allowed.
PUT
/platform/configuration/snapshots/repositories/{repository_name}
curl \
-X PUT https://{{hostname}}/api/v1/platform/configuration/snapshots/repositories/{repository_name} \
-d '{"type":"string","settings":{}}'
Request examples
{
"type": "string",
"settings": {}
}
Response examples (200)
{
"repository_name": "string",
"config": {}
}