Skip to content

Commit

Permalink
[Cloud Security] add api version to fleet call (#166335)
Browse files Browse the repository at this point in the history
## Summary
fixes
- elastic/security-team#7623

adding version to the fleet call
  • Loading branch information
maxcold authored Sep 14, 2023
1 parent bd0ed6c commit cfd65eb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
})
);
};

0 comments on commit cfd65eb

Please sign in to comment.