Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Rest APl request URL

lalitsharma1
Contributor II

I have been trying to set us a basic rest call to RSA Archer for login. I was able to extract the following URL for making the call from API guides and forums

http://RsaArcher/api/core/security/login

But when a call in made to this URL. I receive an error "java.net.UnknownHostException: Unable to resolve host "rsaarcher": No address associated with hostname"

I did verify a proper internet connection before testing it. The platform is Android.

So what should be the hostname in this case?

23 REPLIES 23

DavidPetty
Archer Employee
Archer Employee

Lalit the RsaArcher in the URL is just a placeholder for the real URL.  So if your domain to Archer is grc.mycompany.com and Archer is installed in the RSAArcher folder the REST URL would bel https://grc.mycompany.com/RSAArcher/api/core/security/login

 Advisory Consultant

What if Archer is installed in the Default Web Site folder (wwwroot)? What would the URL be then? We've tried removing the RSAArcher segment ([URL]/api/core/security/login) and it isn't working.

Shubh
Collaborator II

Hello Lalit,

 

Can you try after removing RSA Archer  from the URL?

 

https://HostName/api/core/security/login

Request body :-

 


{
"InstanceName":"",
"Username":"",
"UserDomain":"",
"Password":""
}

Thanks,

Shubham

Maria can you explain not working, like are you getting an error response?

 Advisory Consultant

We’re getting ‘invalid login’ errors, which implies that the methods are found, but we aren’t seeing any login attempts and the credentials we’re using are correct.

Maria , it happens because of invalid input parameters.

 

i believe below is the response. Please verify the parameters once,

 

{
"Links": [],
"RequestedObject": null,
"IsSuccessful": false,
"ValidationMessages": [
{
"Reason": "Validation",
"Severity": 3,
"MessageKey": "ValidationMessageTemplates:LoginNotValid",
"Description": "",
"Location": -1,
"ErroredValue": null,
"Validator": "ArcherApi.Controllers.SecurityController, ArcherApi, Culture=neutral, PublicKeyToken=null",
"XmlData": null,
"ResourcedMessage": null
}
]
}

Our parameters are correct. The login exists, the name and password are correct, the domain and Instance Name are correct. The account has no domain, so we’re sending an empty string (“”)….could that be the issue?

Anonymous
Not applicable

Maria,

 

If Archer is installed as the default website, your URL would be:

https://archer.mycompany.com/api/core/security/login

 

If Archer is installed under the default website, your URL would be:

https://archer.mycompany.com/SITE_NAME/api/core/security/loging