Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm unable to access the REST api, after giving the authentication details

Adventurer

I'm unable to access the REST api, after giving the authentication details

how to access the REST API, I'm unable to access the REST api, after giving the authentication details, it is still asking the authentication details, even not aware of what would be the user name and password in the authentication details. Please help me in resolving it on urgent priority.

 

 

Thanks!

I'm unable to access the REST api, after giving the authentication details
5 REPLIES

Re: I'm unable to access the REST api, after giving the authentication details

Hi,

 

What are you using to get these metrics? I mean, how and wich technology?

 

Sample: I'm using pearl do get some metrics via REST API. Take a look in my block:

 

my $username = 'rafael.ielo@customer';
my $password = 'mysecurepassword';
my $headers = {Accept => 'application/json', Authorization => 'Basic ' . encode_base64($username . ':' . $password)};
my $client = REST::Client->new();

Regards,

Adventurer

Re: I'm unable to access the REST api, after giving the authentication details

Java Rest API, and from their site only Im trying to triggered it, i.e I'm accessing it from the following link

 

https://graffiti2018030520153120.saas.appdynamics.com/controller/api-docs/index.html

 

when Im trying to triggered it, its asking username and password as part of authentication. Its not accepting the username and password, what I'm giving in the authentication.

 

Please help me in this .

 

Thanks & Regards,

Sapan

Adventurer

Re: I'm unable to access the REST api, after giving the authentication details

Hi Team,
I have taken the free trail version of your appdynamcis. I have an account to SAAS  controller and I tried to to use the REST API tool by giving the the account id as "[REDACTED]", but not able to get any data. I'm accessing the given following URL "/accounts/{acctId}/application", but did not get any output and giving the 404 no content. please help me in accessing the API, even I have tried to access the Tier url also by giving the MyTier as a tier name, but not getting the output.
 
I,m not aware of the appdynamcis accountIID and application id etc. 
please help me in resolving this.
 
Thanks & Regards,
Swopneel Bhardwaj
Producer

Re: I'm unable to access the REST api, after giving the authentication details

Use incognito window in Chrome and try to execute the url
http://hostname:port:/controller/rest/applications

username: username@accountname

try it

Re: I'm unable to access the REST api, after giving the authentication details

Hi,
Please use credentials as below:-

Username - username@accountName

In case of on-prem, accountName generally use to be 'customer1'
But in case of SaaS offering, you can find your account name under subscription and use accordingly.

Check if it helps.