Difference between revisions of "Curl -XPUT"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
  
 
* Modify [[index properties]]:
 
* Modify [[index properties]]:
[[curl -XPUT]] --insecure https://localhost:9200/_cluster/settings -u "elastic:yourpasss" -H 'Content-Type: application/json' -d '{
+
{{update watermark}}
    "transient" : {
 
"[“cluster.routing.allocation.disk.watermark.low]]" : "90%",
 
"cluster.routing.allocation.disk.watermark.high" : "95%",
 
"cluster.routing.allocation.disk.watermark.flood_stage" : "98%"
 
    }
 
}'
 
  
  
  
  curl -XPUT localhost:9200[[/_cluster/settings]] -d '{
+
  curl -XPUT https://localhost:9200[[/_cluster/settings]] -d '{
 
     "transient" : {
 
     "transient" : {
 
         "cluster.routing.allocation.disk.threshold_enabled" : false
 
         "cluster.routing.allocation.disk.threshold_enabled" : false
Line 23: Line 17:
 
  }'
 
  }'
  
 +
 +
== Related ==
 +
* [[Update index settings]]
 +
[[application/x-www-form-urlencoded]] is not supported
  
 
== See also ==
 
== See also ==

Latest revision as of 17:28, 23 January 2023


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 --insecure https://localhost:9200/_cluster/settings -u "elastic:yourpasss" -H 'Content-Type: application/json' -d '{
    "transient" : {
"cluster.routing.allocation.disk.watermark.low" : "90%", 
"cluster.routing.allocation.disk.watermark.high" : "95%",
"cluster.routing.allocation.disk.watermark.flood_stage" : "98%"
    }
}'


curl -XPUT https://localhost:9200/_cluster/settings -d '{
    "transient" : {
        "cluster.routing.allocation.disk.threshold_enabled" : false
    }
}'


Related[edit]

application/x-www-form-urlencoded is not supported

See also[edit]

Advertising: