mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-02-18 12:36:15 +00:00
Updated so snapshots now includes Mustache templates as names
This commit is contained in:
parent
4bf6f738be
commit
051ed49aaf
@ -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}}"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user