Skip to content

Commit

Permalink
[OBS-UX-MGTM][Uptime] Change API access to new authz authorization pa…
Browse files Browse the repository at this point in the history
…radigm (elastic#203415)

## Summary

It fixes elastic#203319
And mostly covered by elastic#198374
  • Loading branch information
fkanout authored Dec 10, 2024
1 parent a3d9fe3 commit 1c6b356
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ export const createMonitorListRoute: UMRestApiRouteFactory = (libs) => ({
pageSize: schema.number(),
}),
},
options: {
tags: ['access:uptime-read'],
security: {
authz: {
requiredPrivileges: ['uptime-read'],
},
},
handler: async ({ uptimeEsClient, request, response }): Promise<any> => {
const { dateRangeStart, dateRangeEnd, filters, pagination, statusFilter, pageSize, query } =
Expand Down

0 comments on commit 1c6b356

Please sign in to comment.