Release Automation

 View Only

Monitoring - REST-API.docx 

Nov 23, 2016 10:22 AM

The document contains below information:

1. How to get the list of all the Offline Agents. #offlineagents

2. How to check the connectivity of Execution Servers.

3. How to check the connectivity of Management Server, also when NAC is configured for High Availability.

Statistics
0 Favorited
8 Views
1 Files
0 Shares
21 Downloads
Attachment(s)
docx file
REST-API.docx   139 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Sep 27, 2017 05:17 AM

Hi Amit,

 The API I shared and the one in document are something not exposed publicly they are something product uses internally, as all public API's are ideally containing */a/api/*

 

http://<Host Name>:<Port Number>/datamanagement/reporting/status/agent?block=OFFLINE_AGENTS&pageNumber=1&pageSize=200

 

I am aware there has been some improvement in CSRF implementation of the product recently, which protect some sort of session leak as I remember and it looks like due to it the internal API are no more accessible until you have a valid session and csrf token.

 

Regards,

Saurabh

Sep 27, 2017 05:09 AM

Hi Saurabh,

 

Has this been changed recently? Because as per attached document, all these REST calls are functional and the document also has output screen dump attached in it.

 

Best regards,

Amit Joshi

Sep 27, 2017 04:51 AM

Hi Amit,

 I checked and it looks to me that with current implementation of CSRF doesn't let plain call to go through and you need to have a proper context to make this call happen.

 

These calls are working in context of the RA i.e. when ROC session i.e. within product but externally calling the same doesn't result in the output.

 

I think you should raise an idea on this to have this API been exposed.

 

Regards,

Saurabh

Sep 26, 2017 07:26 AM

It is RA 6.5

Sep 26, 2017 04:17 AM

Hello Amit,

 Can you please confirm your RA version so I can check at my end?

 

Regards,

Saurabh

Sep 26, 2017 03:33 AM

Hi Saurabh,

 

I am not getting any response when i try to check status of NES.

http://<Host Name>:<Port Number>/datamanagement/a/monitor/es

 

And when i run status check for NAC i do not get any of the server as "online". I get all the NAC as "offline" and i get  "monitored": false for all the servers

 

Could you please help with both these above cases?

 

Best regards,

Amit Joshi

Apr 21, 2017 04:10 AM

Hi Julio,

 If interest is to just know the online agents, I will use the below REST call and will do simple calculation of TOTAL_AGENTS-OFFLINE_AGENTS

 

http://<NAC-IP>:<NAC-PORT>/datamanagement/reporting/status/overall?hours=1.

 

The response will be something like below which map to all fields on the dashboard.

 

"successful": true,

  "value": {

    "RUNNING_DEPLOYMENTS": "0",

    "OFFLINE_AGENTS": "0",

    "LONG_RUNNING_DEPLOYMENTS": "0",

    "APPLICATIONS": "1",

    "ERROR_STATE_DEPLOYMENTS": "0",

    "TOTAL_AGENTS": "1",

    "DEPLOYMENTS": "3",

    "FAILED_DEPLOYMENTS": "0",

    "WAITING_APPROVAL_DEPLOYMENTS": "0",

    "WAITING_INPUT_DEPLOYMENTS": "0"

  }

}

 

Regards,

Saurabh

Apr 20, 2017 02:51 PM

Hi, is there any way to obtain a list of online agents?

Nov 24, 2016 01:47 AM

Thanks Sachin

 

Just one hint, I would suggest changing the title of the document, because I thought for a moment, it is a document for the complete REST-API and not just the monitoring. So maybe add "Monitoring" to the title  (e.g. Monitoring with REST-API)

 

best regards

Michael

Related Entries and Links

No Related Resource entered.