Check instance health via API

Gowtham13
Tera Contributor

Hi all,

 

Is there any way to check if the ServiceNow instance is up and running  through a REST API call from an External Application?

8 REPLIES 8

Rub_n Ruiz Tris
Tera Contributor

Yes, I think you can check if your ServiceNow instance is up and running by making a REST API call. One approach can be to send a GET request to any ServiceNow REST API's endpoint and check if 200 OK status code is returned or not. If not the instance may be down.

 

Hope that Helps!

Please mark this response correct by clicking on "Accept as Solution" and/or mark it as "Helpful" (kudos) if it helps. 

Ankur Bawiskar
Tera Patron
Tera Patron

@Gowtham13 

you can use any OOTB table API call and if you get a valid HTTP response then it means it's up and running.

   https://<your_instance>.service-now.com/api/now/table/incident

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Using incident table is returning all the incident records instead of this is there any other way?

You can use any ServiceNow REST API's endpoint, no need to use the incident table one. Choose something that doesn't return to much and ignore the results, check only the 200 OK status code is returned or not.

 

Hope that Helps!

Please mark this response correct by clicking on "Accept as Solution" and/or mark it as "Helpful" (kudos) if it helps.