mirror of https://github.com/portainer/portainer
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
![]() |
import axios, { parseAxiosError } from '@/portainer/services/axios';
|
||
|
import { EnvironmentId } from '@/react/portainer/environments/types';
|
||
|
|
||
![]() |
import { buildDockerProxyUrl } from './buildDockerProxyUrl';
|
||
|
|
||
![]() |
export async function ping(environmentId: EnvironmentId) {
|
||
|
try {
|
||
![]() |
await axios.get(buildDockerProxyUrl(environmentId, '_ping'));
|
||
![]() |
} catch (error) {
|
||
![]() |
throw parseAxiosError(error);
|
||
![]() |
}
|
||
|
}
|