verify-repo-api.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [[verify-snapshot-repo-api]]
  2. === Verify snapshot repository API
  3. ++++
  4. <titleabbrev>Verify snapshot repository</titleabbrev>
  5. ++++
  6. Checks for common misconfigurations in a snapshot repository. See
  7. <<snapshots-repository-verification>>.
  8. ////
  9. [source,console]
  10. ----
  11. PUT /_snapshot/my_repository
  12. {
  13. "type": "fs",
  14. "settings": {
  15. "location": "my_backup_location"
  16. }
  17. }
  18. ----
  19. // TESTSETUP
  20. ////
  21. [source,console]
  22. ----
  23. POST /_snapshot/my_repository/_verify
  24. ----
  25. [[verify-snapshot-repo-api-request]]
  26. ==== {api-request-title}
  27. `POST /_snapshot/<repository>/_verify`
  28. [[verify-snapshot-repo-api-prereqs]]
  29. ==== {api-prereq-title}
  30. * If the {es} {security-features} are enabled, you must have the `manage`
  31. <<privileges-list-cluster,cluster privilege>> to use this API.
  32. [[verify-snapshot-repo-api-path-params]]
  33. ==== {api-path-parms-title}
  34. `<repository>`::
  35. (Required, string)
  36. Name of the snapshot repository to verify.
  37. [[verify-snapshot-repo-api-query-params]]
  38. ==== {api-query-parms-title}
  39. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  40. [role="child_attributes"]
  41. [[verify-snapshot-repo-api-response-body]]
  42. ==== {api-response-body-title}
  43. `nodes`::
  44. (object)
  45. +
  46. .Properties of `nodes` objects
  47. [%collapsible%open]
  48. ====
  49. `<node_id>`::
  50. (object)
  51. Contains information about a node connected to the snapshot repository.
  52. +
  53. The key is the ID of the node.
  54. +
  55. .Properties of `<node_id>`
  56. [%collapsible%open]
  57. =====
  58. `name`::
  59. (string)
  60. Human-readable name for the node.
  61. +
  62. You can set this name using the <<node-name,`node.name`>> property in
  63. `elasticsearch.yml`. Defaults to the machine's hostname.
  64. =====
  65. ====