Skip to content

Commit

Permalink
Add shutdown url
Browse files Browse the repository at this point in the history
  • Loading branch information
conlan0 authored Feb 22, 2024
1 parent 5696d33 commit 38dc709
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ export async function agentRebootNow(agent_id) {
return data;
}

export async function agentShutdown(agent_id) {
const { data } = await axios.post(`${baseUrl}/${agent_id}/shutdown/`);
return data;
}

export async function sendAgentRecoverMesh(agent_id, params = {}) {
const { data } = await axios.post(
`${baseUrl}/${agent_id}/meshcentral/recover/`,
Expand Down

0 comments on commit 38dc709

Please sign in to comment.