DNS-Monitor
GET https://pingthing.de/api/dns-monitors/
curl --request GET \
--url 'https://pingthing.de/api/dns-monitors/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pingthing.de/api/dns-monitors/' \
--header 'Authorization: Bearer {api_key}' \
| Parameter | Details | Beschreibung |
|---|---|---|
| page | Optional Integer | Die Seitenzahl, von der du Ergebnisse wünschst. Der Standardwert ist 1. |
| results_per_page | Optional Integer | Wie viele Ergebnisse möchtest du pro Seite? Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standardmäßig ist es auf 25 gesetzt. |
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "Sample",
"target": "example.com",
"dns": {
"A": [
{
"host": "example.com",
"ip": "12.12.12.12"
}
],
"CNAME": [],
"HINFO": [],
"CAA": [],
"MX": [],
...
},
"notifications": [1],
"settings": {
"dns_check_interval_seconds": 300
},
"total_checks": 1,
"total_changes": 0,
"last_check_datetime": "2024-01-03 01:48:42",
"next_check_datetime": "2024-01-03 01:49:13",
"last_change_datetime": null,
"is_enabled": true,
"datetime": "2025-11-02 07:17:46"
"last_datetime": null
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pingthing.de/api/dns-monitors?&page=1",
"last": "https://pingthing.de/api/dns-monitors?&page=1",
"next": null,
"prev": null,
"self": "https://pingthing.de/api/dns-monitors?&page=1"
}
}
GET https://pingthing.de/api/dns-monitors/{dns_monitor_id}
curl --request GET \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": 0,
"name": "Sample",
"target": "example.com",
"dns": {
"A": [
{
"host": "example.com",
"ip": "12.12.12.12"
}
],
"CNAME": [],
"HINFO": [],
"CAA": [],
"MX": [],
...
},
"notifications": [1],
"settings": {
"dns_check_interval_seconds": 300
},
"total_checks": 1,
"total_changes": 0,
"last_check_datetime": "2024-01-03 01:48:42",
"next_check_datetime": "2024-01-03 01:49:13",
"last_change_datetime": null,
"is_enabled": true,
"datetime": "2025-11-02 07:17:46"
"last_datetime": null
}
}
POST https://pingthing.de/api/dns-monitors
| Parameter | Details | Beschreibung |
|---|---|---|
| name | Erforderlich String | - |
| target | Erforderlich String | - |
| project_id | Optional Integer | - |
| notifications | Optional Anordnung | Benachrichtigungs-Handler-IDs |
| dns_check_interval_seconds | Optional Integer | Erlaubte Werte: 300, 600, 1800, 3600, 21600, 43200, 86400 (Sekunden) |
| dns_types | Optional Anordnung | Erlaubte Werte: A, CNAME, CAA, MX, NS, SOA, TXT, AAAA |
| is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://pingthing.de/api/dns-monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://pingthing.de/api/dns-monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
{
"data": {
"id": 1
}
}
POST https://pingthing.de/api/dns-monitors/{dns_monitor_id}
| Parameter | Details | Beschreibung |
|---|---|---|
| name | Erforderlich String | - |
| target | Erforderlich String | - |
| project_id | Optional Integer | - |
| notifications | Optional Anordnung | Benachrichtigungs-Handler-IDs |
| dns_check_interval_seconds | Optional Integer | Erlaubte Werte: 300, 600, 1800, 3600, 21600, 43200, 86400 (Sekunden) |
| dns_types | Optional Anordnung | Erlaubte Werte: A, CNAME, CAA, MX, NS, SOA, TXT, AAAA |
| is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
DELETE https://pingthing.de/api/dns-monitors/{dns_monitor_id}
curl --request DELETE \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pingthing.de/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \