AppD Archive

Access health rule state via REST API

CommunityUser
Splunk Employee
Splunk Employee

I am looking to externally aggregate health rule status from AppDynamics for a  particular application.

I am not sure if the following API will let me get each health rule status?

Also, I am not sure where I get the id's required to fulfill the following request 

GET /accounts/{acctId}/applications/{appId}/healthrules/{hrId} 

how do i get hrid, appid & acctid?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

You can use REST API to display all health rules, accounts, ,etc. These results will have the ID as well as other identifying information. Then, with the IDs, you can fill out your REST request.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

But I have to get the acctid from somewhere else?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

In our documentation, you'll find information on the REST API 2.0. This API should allow you to query for accounts. The results of that query include account IDs, I believe. Check this URL: https://docs.appdynamics.com/display/PRO40/Use+the+AppDynamics+REST+API

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...