Application Management
Maintenance windows API in Pingdom
This document describes how to pause/unpause uptime checks using API 3.1
First published date
Last published date
Overview
Product section
Cause
Resolution
curl -X PUT https://api.pingdom.com/api/3.1/checks/<check_id> -H 'Authorization:Bearer <token_id>' -H "Content-Type: application/json" -d '{"paused": true}'
Pause all uptime checks:
curl -X PUT https://api.pingdom.com/api/3.1/checks -H 'Authorization:Bearer <token_id>' -H "Content-Type: application/json" -d '{"paused": true}'
Pause selected uptime checks:
curl -X PUT https://api.pingdom.com/api/3.1/checks -H 'Authorization:Bearer <token_id>' -H "Content-Type: application/json" -d '{"checkids": "check_id_1, check_id_2", "paused": true}'
To unpause a check, set:
{"paused": false}
To view the status of an uptime check:
curl -X GET https://api.pingdom.com/api/3.1/checks/<check_id> -H 'Authorization:Bearer <token_id>' | grep "status"To view all active (running) maintenance:
curl -X GET -H 'Authorization:Bearer token' https://api.pingdom.com/api/3.1/maintenance.occurrences