Skip to main content

Delegate disconnected via API check

Problem Statement

How to identify if the delegate is disconnected using api ?

Resolution

Delegate status can be seen in the UI however it always helps if there is a progrmatic way of get the status of the delegates along with some other delegate details.

We have a graphql api fucntion that helps us provide such details. We can parse the response to get name , ip of the delegate version and connection status information.

Below is an example graphql api for the same:


nodes {

delegateName

ip

status

disconnected

version

hostName

lastHeartBeat

}

}

}
AIDA logo
AIDA logo

Harness AIDA Chatbot

AI Development Assistant


Today, April 2, 6:52am

AIDA logo

Accelerate your software delivery with the powerful capabilities of Harness’s Platform.

AIDA logo

How can I help?

Log into your Harness Account to access AIDA