Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PurposeHTTP methodURLparametersexample
get all devicesGEThttp://localhost:7557/devices
curl -i 'http://localhost:7557/devices' -X GET
get Serialnr of specific deviceGETserial numbercurl -i 'http://localhost:7557/devices?query={"_deviceId._SerialNumber":"abcd"}' -X GET
Get Provision of a modemGET

http://demo.nmsprime.com:7557/provisions?query={

%22_id%22%3A%22prov-100124%22}

"_id":"prov-100124"} → encoded:

http://demo.nmsprime.com:7557/provisions?query=%7B%22id%22%3A%22prov-101051%22%7D

show tasks like factory resetGEThttp://localhost:7557/tasks
wget -qO- http://localhost:7557/tasks
Delete all tasks



Code Block
languagebash
for id in $(wget -qO- http://localhost:7557/tasks | grep -o '"_id":"[[:xdigit:]]\+"' | cut -d'"' -f4); do curl -i "http://localhost:7557/tasks/$id" -X DELETE; done


...