@elastic/list-snapshots
List snapshots in a repository
RUN SKILL list_snapshots()With parameters:
RUN SKILL list_snapshots WITH repository = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| repository | STRING | — | Repository name |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL list_snapshots()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}