DNS monitors
GET https://alarm.lt/api/dns-monitors/
curl --request GET \
--url 'https://alarm.lt/api/dns-monitors/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://alarm.lt/api/dns-monitors/' \
--header 'Authorization: Bearer {api_key}' \
Parametrai | Details | Description |
---|---|---|
page | Neprivaloma Sveikasis skaičius | Puslapio numeris, iš kurio norite gauti rezultatus. Numatytasis reikšmė yra 1 . |
results_per_page | Neprivaloma Sveikasis skaičius | Kiek rezultatų norite matyti puslapyje. Leidžiamos reikšmės yra: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Numatytasis variantas yra 25 . |
{ "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-10-10 03:49:24", "last_datetime": null } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://alarm.lt/api/dns-monitors?page=1", "last": "https://alarm.lt/api/dns-monitors?page=1", "next": null, "prev": null, "self": "https://alarm.lt/api/dns-monitors?page=1" } }
GET https://alarm.lt/api/dns-monitors/{dns_monitor_id}
curl --request GET \
--url 'https://alarm.lt/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://alarm.lt/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-10-10 03:49:24", "last_datetime": null } }
POST https://alarm.lt/api/dns-monitors
Parametrai | Details | Description |
---|---|---|
name | Reikalinga Eilutė | - |
target | Reikalinga Eilutė | - |
project_id | Neprivaloma Sveikasis skaičius | - |
notifications | Neprivaloma Masyvas | Notification handler ids |
dns_check_interval_seconds | Neprivaloma Sveikasis skaičius | Leidžiamos reikšmės: 300 , 600 , 1800 , 3600 , 21600 , 43200 , 86400 (sek.) |
dns_types | Neprivaloma Masyvas | Leidžiamos reikšmės: A , CNAME , CAA , MX , NS , SOA , TXT , AAAA |
is_enabled | Neprivaloma Logiškas | - |
curl --request POST \
--url 'https://alarm.lt/api/dns-monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://alarm.lt/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://alarm.lt/api/dns-monitors/{dns_monitor_id}
Parametrai | Details | Description |
---|---|---|
name | Reikalinga Eilutė | - |
target | Reikalinga Eilutė | - |
project_id | Neprivaloma Sveikasis skaičius | - |
notifications | Neprivaloma Masyvas | Notification handler ids |
dns_check_interval_seconds | Neprivaloma Sveikasis skaičius | Leidžiamos reikšmės: 300 , 600 , 1800 , 3600 , 21600 , 43200 , 86400 (sek.) |
dns_types | Neprivaloma Masyvas | Leidžiamos reikšmės: A , CNAME , CAA , MX , NS , SOA , TXT , AAAA |
is_enabled | Neprivaloma Logiškas | - |
curl --request POST \
--url 'https://alarm.lt/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://alarm.lt/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://alarm.lt/api/dns-monitors/{dns_monitor_id}
curl --request DELETE \
--url 'https://alarm.lt/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://alarm.lt/api/dns-monitors/{dns_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \