Difference between revisions of "POST / close"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
  {"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}
 
  {"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}
 +
 +
 +
{"acknowledged":true,"shards_acknowledged":true,"indices":{"your-index":{"closed":true}}}
 +
  
 
[[Index]]
 
[[Index]]

Revision as of 09:13, 12 July 2022

https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-close.html

/your_index/_close
{"acknowledged":true,"shards_acknowledged":true,"indices":{"your-index-name":{"closed":true}}}
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}


{"acknowledged":true,"shards_acknowledged":true,"indices":{"your-index":{"closed":true}}}


Index

/_cat/indices
/_restore


Realted

See also

Advertising: