From 9b87eb061ee3b11f5530184be2d9e29961ae7720 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Wed, 16 Jun 2021 20:47:08 +0200 Subject: [PATCH] Fix Snapshot Docs Listing Query Params in Body Incorrectly (#74196) (#74206) 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 2b51cd175d307..d9759158a3438 100644 --- a/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc +++ b/docs/reference/snapshot-restore/apis/get-snapshot-api.asciidoc @@ -73,8 +73,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)