How Can We Help?

The Topology APIs, which are served by the Control Center data service to create entities and relationships between them for the Enterprise.

Topology API Listing

Topology APIs of Heal consist of the following:

  • Application
  • Connections
  • Category
  • Component
  • KPI Group
  • KPI
  • Producer
  • Agent
  • Cluster
  • Host Instance
  • Service
  • Component Instance
  • Forensic and Healing Action
  • Supervisor

The APIs must be used in the same sequential order, as there is a dependency between the APIs. However, it is not mandatory to use all the APIs. Refer to the Use Cases to better understand the API sequence.

Prerequisites

The prerequisites to use the Topology API is as follows:

  • Account for your enterprise must be added through the Control Center UI.
  • Control Center must be up and accessible.
  • Access to the Heal Keycloak server to generate the Authorization token.
  • Curl must be installed in the Heal keycloak server.
  • The identifier of the Account for your Enterprise must be obtained.

Account Identifier

You can get this information from the “Identifier” column of the Manage Accounts page of Control Center UI.

Topology API Request Details

This section will describe the details about the Topology API Request.

Base URI

Topology API use the following base URI.

https://<keycloak_host>:<Keycloak_port>/appsone-controlcenter/v2.0/api/

  • keycloak_host: IP Address or the Hostname of the server, where the Keycloack is installed.
  • keycloak_port: Port number on which the Keycloack is running.

Request Structure

Topology API Request structure is common and the details are follows

HTTP MethodPOST
Request Header
Authorization TokenKeycloak token from Appsone Server. Refer: Authorization Token
Content Typeapplication/json

Authorization Token

To generate the Authorization token for the API request header, follow the below steps

  1. Log on to the Heal Keycloak Server.
  2. Execute the following command.

curl -X POST -d “client_id=<id>” -d “username=<controlcenter_username>” -d “password=<controlcenter_password>” -d “grant_type=<type>” https://<keycloak_hostname>:<keycloak_ip>/auth/realms/master/protocol/openid-connect/token

where the value of client_id and grant_type must be replaced with admin-cli and password respectively. Use the Heal Control Center Admin Username and Password for the values of username and password.

For Example:

curl -X POST -d “client_id=admin-cli” -d “username=appsoneadmin” -d “password=xxxxxxx” -d “grant_type=password” http://xrtravelskc:8082/auth/realms/master/protocol/openid-connect/token

Use Cases

The following use case examples will help you in understanding the API Sequence to be used based on your requirement.

Sr.No.Use CaseAPI Usage Sequence
    1A user wants to add basic entities and standard component instances and host instances to monitor Behaviour KPIs.Application Connections Agent Component Agent Host Cluster Component Cluster Host Instance Component Instance Supervisor
    2Application Connections Agent Component Agent Host Cluster Component Cluster Host Instance Component Instance Supervisor.Application Connections Agent Log Agent Host Cluster Component Cluster Host Instance Component Instance Supervisor Transaction.
    3A user wants to add basic entities and standard component instances and host instances to monitor Workload KPIs using Custom AgentApplication Connections Agent Custom Agent Host Cluster Component Cluster Host Instance Component Instance Supervisor
    4A user wants to add a new Component and its dependencies, but use the existing basic entities.Category Component KPI Group KPI Producer Forensics
    5A user wants to add a new Component and its dependencies, but use the existing basic entities, category & forensics.Component KPI Group KPI Producer
    6A user wants to add new Group KPI and producer, but use the existing basic entities, category & forensics.KPI Group Producer
    7A user wants to add new KPI and producer, but use the existing basic entities, category & forensics.KPI Producer
    8A user wants to add just a new producer for existing KPI.Producer

Steps

  1. Choose the entity to be created.
  2. Create the JSON for the entity.
  3. Call the Topology URI with the required request details and JSON created.
  4. On successful creation of the entity, Success Response will be received from the Topology API.
  5. In case of failures, Failure Response will be received from the Topology API.
Table of Contents