We provide basic API examples in Python to download (at the bottom of this page).


The scripts listed under 'Config/Util Scripts' are not runnable examples, they are dependencies that are used by other scripts. All other scripts are listed under 'Example Scripts' and are runnable examples.


A brief overview of each script is below:


Config/Util Scripts

  • config.py
    • A configuration file that lets the user specify the datasource name of the integration, API Key and the URL of the hyperglance instance.
    • Go to https://hyperglance_IP_address/#/admin and enter your DATASOURCE name to gain the API_KEY.
  • rest_util.py
    • Handles REST calls and authentication.


Example Scripts


  • augment_appTags.py
    • Augment application tags when the node_UID is known.
  • augment_attributes1.py
    • Augment attribute when the node_UID is known.
  • augment_attributes2.py
    • Augment attribute when the node_UID is unknown but attribute is known.
  • augment_dependencies.py
    • Augment Dependencies when the node_UID of the dependant and the supporter is known.
  • create_topology.py
    • Create a topology.
  • delete_topology.py
    • Delete a topology.
  • get_network.py
    • Get a list of all the nodes, links and endpoints and their corresponding attributes in the Hyperglance server and output it in JSON.
  • list_topologies.py
    • Get a list of all the topologies in the Hyperglance server and output it in JSON.