dangling-indices-list.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [[dangling-indices-list]]
  2. === List dangling indices API
  3. ++++
  4. <titleabbrev>List dangling indices</titleabbrev>
  5. ++++
  6. Lists dangling indices.
  7. [[dangling-indices-list-api-request]]
  8. ==== {api-request-title}
  9. [source,console]
  10. --------------------------------------------------
  11. GET /_dangling
  12. --------------------------------------------------
  13. // TEST[skip:TBD]
  14. [[dangling-indices-list-api-desc]]
  15. ==== {api-description-title}
  16. // tag::dangling-index-description[]
  17. If {es} encounters index data that is absent from the current cluster
  18. state, those indices are considered to be dangling. For example,
  19. this can happen if you delete more than
  20. `cluster.indices.tombstones.size` indices while an {es} node is offline.
  21. // end::dangling-index-description[]
  22. Use this API to list dangling indices, which you can then
  23. <<dangling-index-import,import>> or <<dangling-index-delete,delete>>.
  24. [[dangling-indices-list-api-example]]
  25. ==== {api-examples-title}
  26. The API returns the following response:
  27. [source,console-result]
  28. --------------------------------------------------
  29. {
  30. "dangling_indices": [
  31. {
  32. "index_name": "my-index-000001",
  33. "index_uuid": "zmM4e0JtBkeUjiHD-MihPQ",
  34. "creation_date_millis": 1589414451372,
  35. "node_ids": [
  36. "pL47UN3dAb2d5RCWP6lQ3e"
  37. ]
  38. }
  39. ]
  40. }
  41. --------------------------------------------------