verify-repo-api.asciidoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [[verify-snapshot-repo-api]]
  2. === Verify snapshot repository API
  3. ++++
  4. <titleabbrev>Verify snapshot repository</titleabbrev>
  5. ++++
  6. Verifies that a snapshot repository is functional. 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. `master_timeout`::
  40. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  41. a connection to the master node. If no response is received before the timeout
  42. expires, the request fails and returns an error. Defaults to `30s`.
  43. `timeout`::
  44. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  45. a response. If no response is received before the timeout expires, the request
  46. fails and returns an error. Defaults to `30s`.
  47. [role="child_attributes"]
  48. [[verify-snapshot-repo-api-response-body]]
  49. ==== {api-response-body-title}
  50. `nodes`::
  51. (object)
  52. +
  53. .Properties of `nodes` objects
  54. [%collapsible%open]
  55. ====
  56. `<node_id>`::
  57. (object)
  58. Contains information about a node connected to the snapshot repository.
  59. +
  60. The key is the ID of the node.
  61. +
  62. .Properties of `<node_id>`
  63. [%collapsible%open]
  64. =====
  65. `name`::
  66. (string)
  67. Human-readable name for the node.
  68. +
  69. You can set this name using the <<node-name,`node.name`>> property in
  70. `elasticsearch.yml`. Defaults to the machine's hostname.
  71. =====
  72. ====