I work for an ISP and I want to pull charts out of npm for display on an internal website. Is this doable with the api? Can I create a view that is public and scrape the chart from it?
http://DOMAIN/Orion/DetachResource.aspx?ViewID=110&ResourceID=1134&NetObject=N%3a33
This does it except
and edit or remove
<add name="X-Frame-Options" value="SAMEORIGIN" />
From Orion Core Components Admin guide:
Passing Login Information Using URL Parameters
The user ID and password can be passed as parameters within the URL. This allows you to create a favorite or bookmark within a browser, or on your desktop. Create a favorite with a link in the following form to pass the login information:
http://DOMAIN/Orion/Login.aspx?AccountID=USER&Password=PASSWORD
Provide the hostname or IP address of your Orion server as the DOMAIN. Provide your Orion User ID as the USER, and then provide your Orion user account password as the PASSWORD.
Warning: HTTP requests are not encrypted, so User IDs and Passwords sent in HTTP requests are not secure. For more information about enabling HTTPS on your Orion server, consult www.microsoft.com.
So click on the chart get the URL and then append AccountID=USER&Password=PASSWORD to the URL to embed into your other website.
That mostly gets me alot of the way there. Thanks I will read over the admin guide. Any hints on how to pull just a chart? They are created and populated by javascript so it will be more complicated then just scraping it.