From 1b8488da2ca3618c7771bdc4e89f241bb8170b8f Mon Sep 17 00:00:00 2001 From: Haiyan Meng Date: Mon, 3 Feb 2020 09:51:56 -0800 Subject: [PATCH] Add curl commands for snapshoting --- api/internal/crawl/search_cmds/snapshot.md | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 api/internal/crawl/search_cmds/snapshot.md diff --git a/api/internal/crawl/search_cmds/snapshot.md b/api/internal/crawl/search_cmds/snapshot.md new file mode 100644 index 000000000..2397cb09e --- /dev/null +++ b/api/internal/crawl/search_cmds/snapshot.md @@ -0,0 +1,24 @@ +Retrieve information about all registered snapshot repositories: +``` +curl -X GET "${ElasticSearchURL}:9200/_snapshot?pretty" +``` + +Retrieve information about a given snapshot repository, `gcskustomize`: +``` +curl -X GET "${ElasticSearchURL}:9200/_snapshot/gcskustomize?pretty" +``` + +Verify a snapshot repository, `gcskustomize`, manually: +``` +curl -X POST "${ElasticSearchURL}:9200/_snapshot/gcskustomize/_verify?pretty" +``` + +Retrieve a summary information about a given snapshot: +``` +curl -X GET "${ElasticSearchURL}:9200/_snapshot/gcskustomize/kustomize-snapshot?pretty" +``` + +Retrieve a detailed information about a given snapshot: +``` +curl -X GET "${ElasticSearchURL}:9200/_snapshot/gcskustomize/kustomize-snapshot/_status?pretty" +```