Difference between revisions of "Curl -XPUT"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
* Create index: curl -XPUT 'www.example.com:9200/myIndexName?pretty' | * Create index: curl -XPUT 'www.example.com:9200/myIndexName?pretty' | ||
+ | |||
+ | |||
+ | curl -XPUT localhost:9200[[/_cluster/settings]] -d '{ | ||
+ | "transient" : { | ||
+ | "cluster.routing.allocation.disk.threshold_enabled" : false | ||
+ | } | ||
+ | }' | ||
Revision as of 07:51, 19 October 2022
curl -s -i -k -XPUT -u elastic:yourpass" https://elasticsearch-master:9200/_snapshot/your_repo/%3Csnapshot-%7Bnow%2Fd%7D%3E"
- Create index: curl -XPUT 'www.example.com:9200/myIndexName?pretty'
curl -XPUT localhost:9200/_cluster/settings -d '{ "transient" : { "cluster.routing.allocation.disk.threshold_enabled" : false } }'
See also
Advertising: