Could someone help me, how to download the Data Model .csv via api, I looked in the documentation but I didn’t find it, I tried it via curl in some ways, but nothing too.
If anyone can help, I appreciate it.
Could someone help me, how to download the Data Model .csv via api, I looked in the documentation but I didn’t find it, I tried it via curl in some ways, but nothing too.
If anyone can help, I appreciate it.
Hi, AFAIK, extracting the CSV of the data model can’t be done through the NBI API, but you could construct it from the data you receive when you query for a device. If you want a simple way to extract the CSV, you can wget
it directly from the UI, for example:
# UI is at http://x.x.x.x:3000/ and genieacs device ID is 123456-AABB-654321
wget -q --save-cookies cookies.txt \
--keep-session-cookies \
--post-data 'username=admin&password=mypass' \
--delete-after \
http://x.x.x.x:3000/login
wget -q --load-cookies cookies.txt http://x.x.x.x:3000/api/devices/123456-AABB-654321.csv