How to use curl against the EDR Rest API
Examples of GET, PUT and PUSH with Rest API and Curl.
GET
curl -k -X GET "https://server_address/api/v1/sensor/1" -H "X-Auth-Token: $TOKEN" -H "Accept: application/json"
PUT (Update)
curl -k -X PUT "https://server_address/api/v1/sensor/1" -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -d "{\"uninstall\":true"}"
POST (Create)
curl -k -X POST "https://server_address/api/approvedlist/entries" -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -d "{\"ipaddr\":\"192.168.0.22\"}"