ICMP Monitor erstellen
Erstellt einen neuen ICMP Monitor.
POST /api/icmp-monitors
Authentifizierung
Erfordert eine gültige Session.
- Header:
Authorization: Bearer <token>
Request Body
{
"customerId": "6764e84f-f02a-43e6-a46d-cecaec556723",
"name": "Ping Gateway",
"hostname": "claas.sh",
"status": "active",
"checkInterval": 5,
"timeoutSeconds": 10,
"icmpConfig": {
"packetSize": 56,
"count": 4
}
}Felder
customerId(number | string, required)- Akzeptiert die interne numerische Kunden-ID oder die Customer-
publicId-UUID.
- Akzeptiert die interne numerische Kunden-ID oder die Customer-
name(string, required)hostname(string, required)- Muss nur Hostname oder IP sein (kein Protokoll wie
https://, kein Pfad wie/ping).
- Muss nur Hostname oder IP sein (kein Protokoll wie
status(string, optional)- Erlaubt:
active,maintenance,disabled,paused,inactive - Hinweis:
paused/inactivewerden zudisablednormalisiert.
- Erlaubt:
checkInterval(number, optional)timeoutSeconds(number, optional)icmpConfig(object, optional)- Wird als
configJSON am Monitor gespeichert.
- Wird als
icmpConfig (vom Worker unterstützte Keys)
packetSize(number)- Default:
56
- Default:
count(number)- Default:
3
- Default:
cURL
curl -X POST "https://YOUR_DOMAIN/api/icmp-monitors" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customerId": "6764e84f-f02a-43e6-a46d-cecaec556723",
"name": "Ping Gateway",
"hostname": "claas.sh",
"status": "active",
"checkInterval": 5,
"timeoutSeconds": 10,
"icmpConfig": { "packetSize": 56, "count": 4 }
}'Response
{
"id": 123,
"organizationId": 1,
"customerId": 2,
"name": "Ping Gateway",
"hostname": "claas.sh",
"port": null,
"status": "active",
"checkInterval": 5,
"timeoutSeconds": 10,
"allowedCheckCountryCodes": null,
"notificationPhoneNumber": null,
"notificationEmail": null,
"lastCheckedAt": null,
"createdAt": "2026-02-26T12:00:00.000Z",
"updatedAt": "2026-02-26T12:00:00.000Z",
"config": {
"packetSize": 56,
"count": 4
},
"icmpConfig": {
"packetSize": 56,
"count": 4
}
}Fehler
400 Invalid Customer identifier400Ungültiger Hostname oder ungültiger Request Body401Unauthorized403Forbidden (z. B.readonlyoder global supporter)404Kunde nicht gefunden