Updated so snapshots now includes Mustache templates as names

This commit is contained in:
keithhc2 2021-11-05 12:43:00 -07:00
parent 4bf6f738be
commit 051ed49aaf

View File

@ -314,13 +314,13 @@ The `snapshot` operation has the following parameters:
Parameter | Description | Type | Required | Default
:--- | :--- |:--- |:--- |
`repository` | The repository name that you register through the native snapshot API operations. | `string` | Yes | -
`snapshot` | The name of the snapshot. | `string` | Yes | -
`snapshot` | The name of the snapshot. Accepts strings and the Mustache variables `{{ctx.IndexName}}` and `{{ctx.IndexUuid}}`. If the Mustache variables are invalid, then the snapshot name is defaulted to the index's name. | `string` or Mustache template | Yes | -
```json
{
"snapshot": {
"repository": "my_backup",
"snapshot": "my_snapshot"
"snapshot": "{{ctx.IndexUuid}}"
}
}
```