How Can We Help?

This section describes the usage of Query APIs to get information on component and host instances for services in HEAL.
Using ‘instances’ Query API, you can get details on the following:

  • Host cluster instances
  • Component cluster instances
  • Host instances
  • Component instances

Instance Details for a Service

To get details of all the instances mapped to a service for a specific account, use the ‘instances’ Query API as follows:
API Name – instances
Format – GET /config/accounts/{accountId}/services/{serviceId}/instances

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a ServicestringMandatory
QueryinstanceTypeIt can be “cluster” or “all”. Default value is “instances”. In this case, instance level details are provided for the service. If “cluster” is specified, cluster level details are provided. If “all” is specified, both cluster and instance level details are provided.stringOptional

 

Output Parameters
Output Type: CSV

  • Instance Id – Unique ID of an instance
  • Instance Name – Name of an instance
  • Host Address – IP address or domain name of an instance
  • Component Name – Name of the component
  • Component Version – Version of the component

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/config/accounts/2/services/2/instances?instanceType=all

Details of an Instance

To get details of an instance mapped to a service for a specific account, use the ‘instances’ Query API as follows:
API Name – instances
Format – GET /config/accounts/{accountId}/services/{serviceId}/instances/{instanceId}

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a ServicestringMandatory
PathinstanceIdID or Identifier of an Instance. You can also specify cluster id here.stringMandatory

 

Output Parameters
Output Type: CSV

  • Instance Id – Unique ID of an instance
  • Instance Name – Name of an instance
  • Host Address – IP address or domain name of an instance
  • Component Name – Name of the component
  • Component Version – Version of the component

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/config/accounts/2/services/2/instances/18

Details of Component Instances

To get details of all the component instances for a specific account in HEAL, use the ‘componentInstances’ Query API as follows:
API Name – componentInstances
Format – GET /config/accounts/{accountId}/componentInstances

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
QuerycomponentTypeType of a Component. It needs to be one of the following values: 1) “Application Server” 2) “Database Server” 3) “Host” 4) “Services” 5) “Web Server”stringMandatory
QueryinstanceTypeIt can be “cluster” or “all”. Default value is “instances”. In this case, instance level details are provided for the component. If “cluster” is specified, cluster level details are provided. If “all” is specified, both cluster and instance level details are provided.stringOptional

 

Output Parameters
Output Type: CSV

  • Instance Id – Unique ID of a component instance
  • Instance Name – Name of a component instance
  • Host Address – Host IP address on which component instance is running
  • Component Sub-Type – Component Name as per the database
  • Component Version – Version of the component
  • Application Name – Name of an application in the account

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/config/accounts/2/componentInstances?componentType=application server

Details of No Data Instances

To get details of all the instances having no KPIs details captured for an application in an account over a time period, use the ‘no-data-instances’ Query API as follows:
API Name – no-data-instances
Format – GET /config/accounts/{accountId}/applications/{applicationId}/no-data-instances

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathapplicationIdID or Identifier of an ApplicationstringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters
Output Type: CSV

  • Instance Id – Id or Identifier of an instance. It can also be a cluster id.
  • Instance Name – Name of an instance
  • Host Address – IP address of the host
  • Service Name – Name of a Service

 

Sample Input

https://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/config/accounts/2/applications/1/no-data-instances?from=2020-07-09 15:30:00&to=2020-07-10 15:30:00

Details of Maintenance Window

To get details of all the adhoc maintenance windows for an instance of a service in an account over a time period, use the ‘maintenance-data’ Query API as follows:
API Name – maintenance-data
Format – GET /config/accounts/{accountId}/instances/{instanceId}/maintenance-data

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathinstanceIdID or Identifier of a host or a component instancestringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters
Output Type: – CSV

  • Instance Id – Id or Identifier of a host or a component instance
  • Instance Name – Name of an instance
  • Host Address – IP address of the host
  • From Time, To Time – Date and time for an ad-hoc maintenance window
  • Duration – Adhoc Maintenance Window time duration in minutes

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/config/accounts/2/instances/37/maintenance-data?from=2020-02-01 10:29:07&to=2020-07-23 10:29:07

Table of Contents