From 86c13869a2cd780bf21ce9ce8ca724ce3c7911e5 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Wed, 29 Jul 2020 17:47:01 -0700 Subject: [PATCH] Fix Snapshot Restore /policies/indices API endpoint on Cloud (#73734) * Add leading slash to transport.request path. * Remove unnecessary 'hidden' expand_wildcards option, since 'all' includes hidden indices. --- x-pack/plugins/snapshot_restore/server/routes/api/policy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts index b8e7012529554..688a1a409680a 100644 --- a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts +++ b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts @@ -236,9 +236,9 @@ export function registerPolicyRoutes({ 'transport.request', { method: 'GET', - path: `_resolve/index/*`, + path: `/_resolve/index/*`, query: { - expand_wildcards: 'all,hidden', + expand_wildcards: 'all', }, } );