You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup a few groups for monitors, groups are in fact same monitors records but use the parent field for showing dependances. When posting with curl, seems like this field is ignored. Curl example:
this field is used when i try to get list of monitors with curl:
The groups feature was just added a week or 2 ago, and this repo hasn't been updated in 3 months, so it likely just isn't supported yet. I was planning on looking into this at some point and submitting a PR, but I haven't gotten around to it yet
I have setup a few groups for monitors, groups are in fact same monitors records but use the parent field for showing dependances. When posting with curl, seems like this field is ignored. Curl example:
this field is used when i try to get list of monitors with curl:
curl -X 'GET'
'http://10.0.0.17:3002/monitors'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H "Authorization: Bearer ${TOKEN}"
"parent": 14,
I tried use different combinations: group, monitor_group, group_id, but none of those are working, in web api this is missed
curl -X 'POST'
'http://10.0.0.17:3002/monitors/'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H "Authorization: Bearer ${TOKEN}"
-d '{
"type": "http",
"name": "example.co.uk",
"pathName": "My group name / example.co.uk",
"parent": 14,
"interval": 120,
"retryInterval": 120,
"resendInterval": 20,
"maxretries": 3,
"upsideDown": false,
"notificationIDList": [
"1"
],
"url": "https://www.example.co.uk",
"expiryNotification": true,
"ignoreTls": false,
"maxredirects": 10,
"accepted_statuscodes": [
"200-299"
],
"includeSensitiveData": true,
"port": 53,
"dns_resolve_server": "1.1.1.1",
"dns_resolve_type": "A"
}'
${TOKEN} can be obtained with:
TOKEN=$(curl -X 'POST' 'http://10.0.0.17:3002/login/access-token' -H 'accept: application/json' -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=&username=admin&password=MYPASSWORDFROMDOCKER' | jq -r ".access_token")
All those are bash commands on same server where docker container is runing
Any help? Thanks
The text was updated successfully, but these errors were encountered: