Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

need api calls to pull the data from appd

Producer

Re: need api calls to pull the data from appd

Priyanka,
Paste your command and error here.

Re: need api calls to pull the data from appd

I am trying to pull all the data using curl command.
I want to extract host name, app id, app name, Tier name n node name..

Re: need api calls to pull the data from appd

date

echo "Starting Prod"

curl --silent --user "user@userid:password" "https://prod.saas.appdynamics.com/controller/rest/applications?output=JSON" > prod_apps.json
cat prod_apps.json | jq -r '.[].id' > prod_apps_ids.txt
for app in $(cat prod_apps_ids.txt) ; do


mkdir -p dirname curl --silent --user "userid@prod:password" "https://prod.saas.appdynamics.com/controller/rest/applications/${app}?output=JSON" > prod/prod_apps_${app}.json


curl --silent --user "user@prod:password" "https://prod.saas.appdynamics.com/controller/rest/applications/${app}/tiers?output=JSON" > xxxxx-prod/prod_apps_${app}_tiers.json


curl --silent --user "user@prod:password" "https://prod.saas.appdynamics.com/controller/rest/applications/${app}/nodes?output=JSON" > xxxxx-prod/prod_apps_${app}_nodes.json


curl --silent --user "user@prod:password" "https://prod.saas.appdynamics.com/controller/rest/applications/${app}/business-transactions?output=J..." > xxxxx-prod/prod_apps_${app}_bts.json
done
date
echo
"Done with Prod"


this is the code, I see that the mkdir file has been created but the file is empty.
Highlighted

Re: need api calls to pull the data from appd

My problem solved. At least in our case local user is needed. ldap user didn't work. I asked our service provider to make local account and with that, rest inquiry worked. Lots of thanks for Binu.Mathew for advices!

Producer

Re: need api calls to pull the data from appd

Hi daniel,

 

how we can manually check the actual api calls which are done using Dexter. hiw to get actual rest API URL? 

Re: need api calls to pull the data from appd

https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Phases-and-Job-Steps lists all APIs used by each of the steps.

 

The Controller log file (https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Log-Files) will show all the APIs and their parameters



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.