Difference between revisions of "Elasticsearch curl URLs"

From wikieduonline
Jump to navigation Jump to search
Line 26: Line 26:
  
 
* [[ELK backup and restore|Backup and restore]]
 
* [[ELK backup and restore|Backup and restore]]
:<code>curl -X POST --insecure https://your_username:YOUR_PASS@localhost:9200/_snapshot/gcs_repo/your_latest_snapshot_name/_restore</code>
+
:<code>curl -X POST --insecure https://your_username:YOUR_PASS@localhost:9200/_snapshot/your_repo/your_latest_snapshot_name/_restore</code>
  
  

Revision as of 15:16, 11 July 2022

  • Status:
curl https://localhost:9200/_nodes/status
curl --insecure https://localhost:9200/_nodes/status -u "your_usename:your_password"
--insecure https://your_username:your_password@localhost:9200/


curl https://localhost:9200/_cluster/health
/_cluster/settings


curl http://localhost:9200/_cluster/health/?level=shards
curl http://localhost:9200/_cluster/health?pretty
curl http://localhost:9200/_aliases
curl https://localhost:9200/_aliases
curl http://localhost:9200/_cat/indices?v
curl https://localhost:9200/_cat/indices?v
curl -XGET --insecure https://localhost:9200/_cat/nodes?v -u 'admin:admin' 
curl -XGET --insecure https://localhost:9200/_cat/plugins?v -u 'admin:admin' 
  • Delete ALL index:
curl -X DELETE 'http://localhost:9200/_all'
curl -X POST --insecure https://your_username:YOUR_PASS@localhost:9200/_snapshot/your_repo/your_latest_snapshot_name/_restore


_cat/allocation
GET _ilm/policy
GET _xpack/usage
GET /_snapshot/
/_cat/snapshots/
/_cat/repositories


Related

See also

Advertising: