curl -X POST 'https://api.weir.ai/pax/stop/pods' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podsStopped": 5,
"stoppedAt": "2024-01-22T15:30:00Z"
},
"message": "All pods stopped successfully",
"status": "success"
}
Stop all pods in the system
curl -X POST 'https://api.weir.ai/pax/stop/pods' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podsStopped": 5,
"stoppedAt": "2024-01-22T15:30:00Z"
},
"message": "All pods stopped successfully",
"status": "success"
}
curl -X POST 'https://api.weir.ai/pax/stop/pods' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podsStopped": 5,
"stoppedAt": "2024-01-22T15:30:00Z"
},
"message": "All pods stopped successfully",
"status": "success"
}
const stopAllPods = async (accessToken) => {
const response = await fetch('https://api.weir.ai/pax/stop/pods', {
method: 'POST',
headers: { 'Authorization': `Bearer ${accessToken}` }
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};
Was this page helpful?