Embedding Content from SL1 in Another Web Page

Download this manual as a PDF file

This section describes how to embed content from SL1 in another web page. It includes the following topics:

Embedding a Page from SL1 in Another Web Page

The web interface provided by Administration Portals, Database Servers, and All-In-One Appliances supports HTTP authentication. HTTP authentication allows you to embed pages from the user interface in an external web portal.

The examples in this section use secure HTTPS. HTTP authentication can also be used with unsecure HTTP.

To access an SL1 page using HTTP authentication, perform the following:

  1. Login to the Administration Portals, Database Servers, and All-In-One Appliances. Navigate to the page you want to embed in the external web page.
  2. Copy the URL of the page. For example, suppose you wanted to access a dashboard using HTTP authentication. The URL for a dashboard in SL1 looks like this:

https://ip-address-of-appliance/em7/index.em7?exec=dashboards&dash_id=X

Where the "X" at the end of the URL is the ID for the dashboard.

  1. Append "&use_http_auth=1" to the end of the URL. For example, to request dashboard ID 1 using HTTP authentication, you would use the following URL and supply a username and password in the request:

https://ip-address-of-appliance/em7/index.em7?exec=dashboards&dash_id=1&use_http_auth=1

  1. Several pages in SL1 allow you to hide the header bar and left NavBar. If you hide the header bar or the left NavBar on a page, the URL will change to reflect your choice and can be used to request the page without the header bar and/or the left NavBar.

For example, if you hide the header bar for a dashboard by selecting the up arrow button:

The URL changes to:

https://ip-address-of-appliance/em7/index.em7?exec=dashboards&dash_id=X#em7_mainnav=hide

Where "X" is the ID for the dashboard.

  1. To request dashboard ID 1 without the header bar using HTTP authentication, you would use the following URL and supply a username and password in the request:

https://ip-address-of-appliance/em7/index.em7?exec=dashboards&dash_id=1&use_http_auth=1#em7_mainnav=hide

  1. To you use the URL of the SL1 page in an HTTP request from an external web page:
  • The URL query string for the SL1 page must include the option "use_http_auth=1".
  • You must pass an SL1 username and password using the standard HTTP authentication mechanism.

Embedding a Single Widget from SL1 in Another Web Page

SL1 allows you to embed a single widget from a dashboard in an external web page and use HTTP authentication to dynamically update the data in the widget.

To include a single widget in an external web page:

  1. In the SL1 user interface, go to the Classic Dashboards page (Dashboards > Classic Dashboards). Create a dashboard and configure the widget you want to export, and select any necessary contextual items, so that the widget includes the data you want to display. For details on creating a dashboard and configuring widgets, see the section on Creating and Editing Dashboards.
  1. Find the widget you want to export. Select the Options menu for the widget. Select Export.
  1. In the Export Widget modal page:
  • Authentication. Select HTTP Authentication.
  • Export. Select this button.
  • Exported URL. Copy this URL. This URL is unique for this widget, populated with the specified data and with the specified context selected.
  1. To you use the URL of the widget in an HTTP request from an external web page, you must pass an SL1 username and password using the standard HTTP authentication mechanism.