diff --git a/x-pack/plugins/synthetics/server/routes/synthetics_service/get_service_allowed.ts b/x-pack/plugins/synthetics/server/routes/synthetics_service/get_service_allowed.ts index b321635d3f569..6c247dde94c04 100644 --- a/x-pack/plugins/synthetics/server/routes/synthetics_service/get_service_allowed.ts +++ b/x-pack/plugins/synthetics/server/routes/synthetics_service/get_service_allowed.ts @@ -12,9 +12,11 @@ export const getServiceAllowedRoute: SyntheticsRestApiRouteFactory = () => ({ method: 'GET', path: API_URLS.SERVICE_ALLOWED, validate: {}, - handler: async ({ syntheticsMonitorClient }): Promise => { + handler: async ({ syntheticsMonitorClient, server }): Promise => { + const isCloud = Boolean(server.cloud?.isCloudEnabled); + return { - serviceAllowed: syntheticsMonitorClient.syntheticsService.isAllowed, + serviceAllowed: isCloud ? syntheticsMonitorClient.syntheticsService.isAllowed : true, signupUrl: syntheticsMonitorClient.syntheticsService.signupUrl, }; },