mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Cloud Security] add api version to fleet call (#166335)
## Summary fixes - https://github.com/elastic/security-team/issues/7623 adding version to the fleet call
This commit is contained in:
parent
bd0ed6cd89
commit
cfd65eb5c4
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,7 @@ import {
|
|||
epmRouteService,
|
||||
type GetInfoResponse,
|
||||
type DefaultPackagesInstallationError,
|
||||
API_VERSIONS,
|
||||
} from '@kbn/fleet-plugin/common';
|
||||
import { CLOUD_SECURITY_POSTURE_PACKAGE_NAME } from '../../../common/constants';
|
||||
import { useKibana } from '../hooks/use_kibana';
|
||||
|
@ -21,6 +22,8 @@ export const useCisKubernetesIntegration = () => {
|
|||
const { http } = useKibana().services;
|
||||
|
||||
return useQuery<GetInfoResponse, DefaultPackagesInstallationError>(['integrations'], () =>
|
||||
http.get<GetInfoResponse>(epmRouteService.getInfoPath(CLOUD_SECURITY_POSTURE_PACKAGE_NAME))
|
||||
http.get<GetInfoResponse>(epmRouteService.getInfoPath(CLOUD_SECURITY_POSTURE_PACKAGE_NAME), {
|
||||
version: API_VERSIONS.public.v1,
|
||||
})
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue