From 445d940e6d092d699cbfc25956e52bdaf3bf27f5 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Wed, 16 Jun 2021 18:04:51 +0200 Subject: [PATCH] Fix Snapshot Docs Listing Query Params in Body Incorrectly 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. --- .../snapshot-restore/apis/get-snapshot-api.asciidoc | 6 ++++-- .../snapshot-restore/apis/get-snapshot-status-api.asciidoc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc b/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc index 840235fa4b2fa..a8df9ff432690 100644 --- a/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc +++ b/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc @@ -74,8 +74,10 @@ NOTE: Using `_all` in a request fails if any snapshots are unavailable. Set <> 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`:: diff --git a/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc b/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc index 3b960013df5a8..f34edd3ce4237 100644 --- a/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc +++ b/docs/reference/snapshot-restore/apis/get-snapshot-status-api.asciidoc @@ -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 ``. [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)