Export graph in PNG

I have a vpdn graph on a cisco how can I link that to export via the API as PNG to display on a external webpage
I have created the API key
how do I export the graph I am sure I am missing very simple

when I run the api to get graphs
{
“desc”: “VPDN L2TP Sessions”,
“name”: “device_vpdn_sessions_l2tp”
},
{
“desc”: “VPDN L2TP Tunnels”,
“name”: “device_vpdn_tunnels_l2tp”
}

how can i output the sessions graph only?

[root@denmon01 ~]# curl -H 'X-Auth-Token: ’ http://127.0.0.1/api/v0/devices/denasr01.contournetworks.net/graphs/device_vpdn_sessions_l2tp/
{
“status”: “error”,
“message”: “This API route doesn’t exist.”

There is a different endpoint to get graph images.

Thank you I got now
/graphs lists the graphs to pull the graph

curl -H “X-Auth-Token: $token” http://127.0.0.1/api/v0/devices/denasr01.contournetworks.net/device_vpdn_sessions_l2tp?legend=yes&from=$dayago&to=$now&width=$width&height=$height

1 Like