Advertisement
Typhoon

Elastic Curl Examples

Mar 9th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # Create alias for all marvel plugin indices
  2. curl -XPOST 'http://localhost:9200/_aliases' -d '
  3. {
  4.    "actions" : [
  5.        { "add" : { "index" : ".marvel-*", "alias" : "marvel" } }
  6.    ]
  7. }'
  8.  
  9. # Delete all marvel plugin indices
  10. curl -XDELETE 'http://localhost:9200/marvel/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement