How Can We Help?

This section describes usage of Query APIs to get information of services in HEAL.

Details for All Services

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

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathapplicationIdID or Identifier of an ApplicationstringMandatory

 

Output Parameters
Output Type: CSV

  • Service ID – Unique ID of a service
  • Service Name – Name of a service
  • Type – Name of a component
  • Timezone – The Timezone set for the service
  • Offset – Offset with respect to GMT. It is the diversion in terms of duration from GMT.

 

Sample Input

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

Details for a Service

To get details of a specific Service for an application in an account, use the ‘services’ Query API as follows:
API Name – services
Format – GET /config/accounts/{accountId}/applications/{applicationId}/services/{serviceId}

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathapplicationIdID or Identifier of an ApplicationstringMandatory
PathserviceIdID or Identifier of a ServicestringMandatory

 

Output Parameters
Output Type: CSV

  • Service ID – Unique ID of a service
  • Service Name – Name of a service
  • Type – Name of a component
  • Timezone – Timezone set for the service
  • Offset – Offset with respect to GMT. It is the diversion in terms of duration from GMT.

Sample Input

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

Details of Maintenance Window

To get details of all the scheduled and adhoc maintenance windows for 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}/services/{serviceId}/maintenance-data

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a ServicestringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters
Output Type: CSV

  • Service Id – Id or Identifier of a Service
  • Service Name – Name of a Service
  • Instance Id – Id or Identifier of an instance
  • Instance Name – Name of an instance
  • Host Address – IP address of the host
  • From Time, To Time – Date and time for a maintenance window, either scheduled or adhoc.
  • Duration – Maintenance Window time duration in minutes

 

Sample Input

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

Table of Contents