mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[OBS-UX-MGTM][Uptime] Change API access to new authz authorization paradigm (#203415)
## Summary It fixes #203319 And mostly covered by https://github.com/elastic/kibana/pull/198374
This commit is contained in:
parent
a3d9fe34b4
commit
1c6b356fc5
1 changed files with 4 additions and 2 deletions
|
@ -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 } =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue