| POC: Created a route for the "grafana-internal" service w/o SSL: http://g2-abc2.192.168.42.131.nip.io/
# get the id of mobile services dashboard |
curl -H "X-Forwarded-User: admin" http://g2-abc2.192.168.42.131.nip.io/api/search?tag=mobile-services |
# --> [{"id":4,"title":"Mobile Services","uri":"db/mobile-services","slug":"mobile-services","type":"dash-db","tags":["mobile-services"],"isStarred":false}] |
|
# get the org preferences |
curl -H "X-Forwarded-User: admin" http://g2-abc2.192.168.42.131.nip.io/api/org/preferences |
# --> {"theme":"dark","homeDashboardId":1,"timezone":"utc"} |
|
# update org preferences to use the that dashboard as the home dashboard |
curl -d '{"homeDashboardId":4, "theme":"dark", "timezone":"utc"}' -H "Content-Type: application/json" -H "X-Forwarded-User: admin" -X PUT http://g2-abc2.192.168.42.131.nip.io/api/org/preferences |
|
now I will move these stuff over to APB |