Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
02-20-2023 11:10 PM
I follow up on this doc to generate tokens via API but I didn't receive any response from the server.
https://docs.appdynamics.com/appd/4.5.x/en/extend-appdynamics/appdynamics-apis/api-clients#APIClient...
the curl like below:
curl -X POST -H "Content-Type: application/vnd.appd.cntrl+protobuf;v=1" "https://(accountName).saas.appdynamics.com/controller/api/oauth/access_token" -d 'grant_type=client_credentials&client_id=(username)@(accountName)&client_secret=(clientsecret)'
Please help me!
Solved! Go to Solution.
02-20-2023 11:58 PM
Hi Tran
Can you share a screenshot of what response you get from the terminal when running the POST command(Just hide sensitive data).
Thanks
02-21-2023 12:21 AM
Hi Mario,
Nothing response
02-21-2023 01:05 AM
If you get no response, something is wrong with one of the 3 below
client_id, accountname or client secret
Can you double check, that under Administration that the Client Id for the API Client is correct, account name of your controller, as well as the secret(All Case sensitive)
Just validating that the client_id value is the Client Name value that you have created for the API Client, not the username that you login to AppD with.
Ciao
02-21-2023 01:10 AM
After changing clientId = clientName of my API client but I still cannot get the response from the server.
02-21-2023 01:13 AM
this is the response after changed
02-21-2023 01:19 AM
Hi Tran
Your syntax is 100% correct, is this a trial controller?
02-21-2023 01:21 AM
yes, this is the trial controller and the syntax is correct.
02-21-2023 01:27 AM
I would possibly try the request on another machine, I see you have a Macbook. Can you check another Linux machine?
Or it might be a limit on using the API Client when it's a trial controller, I would suggest to log a case to AppDynamics support to check if this is the case, as your request is correct, I have used your exact call, and replaced with my own details and it works.
02-21-2023 02:42 AM
I tried on another Linux machine but I still got the same situation.
Our company considering to use appDynamic as a monitoring server for our application and we would like to have a way to get the token dynamically via API so you can help me confirm that the trial controller can not use this feature.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form