You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/docker/services/ping.ts

11 lines
341 B

import axios, { parseAxiosError } from '@/portainer/services/axios';
import { EnvironmentId } from '@/react/portainer/environments/types';
export async function ping(environmentId: EnvironmentId) {
try {
await axios.get(`/endpoints/${environmentId}/docker/_ping`);
} catch (error) {
throw parseAxiosError(error as Error);
}
}