diff --git a/x-pack/plugins/logstash/server/routes/pipelines/delete.ts b/x-pack/plugins/logstash/server/routes/pipelines/delete.ts index edf235a7357b0..8c1a6d399a9ba 100644 --- a/x-pack/plugins/logstash/server/routes/pipelines/delete.ts +++ b/x-pack/plugins/logstash/server/routes/pipelines/delete.ts @@ -37,6 +37,7 @@ export function registerPipelinesDeleteRoute(router: LogstashPluginRouter) { { path: '/api/logstash/pipelines/delete', options: { + access: 'public', summary: `Delete managed Logstash pipelines`, }, validate: { diff --git a/x-pack/plugins/logstash/server/routes/pipelines/list.ts b/x-pack/plugins/logstash/server/routes/pipelines/list.ts index 30b4e1d08802c..1b6eaf62fb8d8 100644 --- a/x-pack/plugins/logstash/server/routes/pipelines/list.ts +++ b/x-pack/plugins/logstash/server/routes/pipelines/list.ts @@ -28,6 +28,7 @@ export function registerPipelinesListRoute(router: LogstashPluginRouter) { { path: '/api/logstash/pipelines', options: { + access: 'public', summary: `Get all managed Logstash pipelines`, }, validate: false, diff --git a/x-pack/plugins/observability_solution/synthetics/server/routes/index.ts b/x-pack/plugins/observability_solution/synthetics/server/routes/index.ts index 75aaf9f49c4d3..48e0de1c7fba4 100644 --- a/x-pack/plugins/observability_solution/synthetics/server/routes/index.ts +++ b/x-pack/plugins/observability_solution/synthetics/server/routes/index.ts @@ -66,7 +66,6 @@ export const syntheticsAppRestApiRoutes: SyntheticsRestApiRouteFactory[] = [ disableSyntheticsRoute, getServiceLocationsRoute, getSyntheticsProjectMonitorsRoute, - getAllSyntheticsMonitorRoute, installIndexTemplatesRoute, runOnceSyntheticsMonitorRoute, testNowMonitorRoute, @@ -109,6 +108,7 @@ export const syntheticsAppPublicRestApiRoutes: SyntheticsRestApiRouteFactory[] = addPrivateLocationRoute, deletePrivateLocationRoute, getPrivateLocationsRoute, + getAllSyntheticsMonitorRoute, getSyntheticsMonitorRoute, addSyntheticsMonitorRoute, editSyntheticsMonitorRoute, diff --git a/x-pack/plugins/observability_solution/synthetics/server/routes/monitor_cruds/get_monitors_list.ts b/x-pack/plugins/observability_solution/synthetics/server/routes/monitor_cruds/get_monitors_list.ts index 22584df3a7090..62f60f6b5636c 100644 --- a/x-pack/plugins/observability_solution/synthetics/server/routes/monitor_cruds/get_monitors_list.ts +++ b/x-pack/plugins/observability_solution/synthetics/server/routes/monitor_cruds/get_monitors_list.ts @@ -13,8 +13,11 @@ import { syntheticsMonitorType } from '../../../common/types/saved_objects'; export const getAllSyntheticsMonitorRoute: SyntheticsRestApiRouteFactory = () => ({ method: 'GET', path: SYNTHETICS_API_URLS.SYNTHETICS_MONITORS, - validate: { - query: QuerySchema, + validate: {}, + validation: { + request: { + query: QuerySchema, + }, }, handler: async (routeContext): Promise => { const { request, savedObjectsClient, syntheticsMonitorClient } = routeContext;