From 9974d59c9ee300b0c33c541d0654329c9e18621c Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Wed, 29 Jul 2020 19:27:55 -0700 Subject: [PATCH] Fix Snapshot Restore /policies/indices API endpoint on Cloud (#73734) (#73763) * 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', }, } );