Skip to content

Commit

Permalink
Fix Snapshot Docs Listing Query Params in Body Incorrectly (elastic#7…
Browse files Browse the repository at this point in the history
…4196) (elastic#74205)

Both of these APIs don't parse request bodies, the parameters are all taken
from the query string. Also, included the master timeout param include
as it was missing here also.
  • Loading branch information
original-brownbear authored Jun 16, 2021
1 parent aa41089 commit a1a323b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ NOTE: Using `_all` in a request fails if any snapshots are unavailable.
Set <<get-snapshot-api-ignore-unavailable,`ignore_unavailable`>> to `true` to return only available snapshots.

[role="child_attributes"]
[[get-snapshot-api-request-body]]
==== {api-request-body-title}
[[get-snapshot-api-query-params]]
==== {api-query-parms-title}

include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]

[[get-snapshot-api-ignore-unavailable]]
`ignore_unavailable`::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ To retrieve a list of all snapshots in a specified repository, omit this paramet
NOTE: Wildcard (`*`) expressions are not supported for `<snapshot>`.

[role="child_attributes"]
[[get-snapshot-status-api-request-body]]
==== {api-request-body-title}
[[get-snapshot-status-api-query-params]]
==== {api-query-parms-title}

include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]

`ignore_unavailable`::
(Optional, Boolean)
Expand Down

0 comments on commit a1a323b

Please sign in to comment.