api authentication status 403?
Hi, I used powershell to try and authenticate to our logicmonitor external portal. It returned the following:
StatusCode : 200
StatusDescription : OK
Content : {\'\'status\'\':403,\'\'errmsg\'\':\'\'Authentication failed. Check the url, username, and password.\'\'}
RawContent : HTTP/1.1 200 OK
Content-Length: 89
Content-Type: text/json;charset=UTF-8
Date: Fri, 30 Jan 2015 17:54:08 GMT
Set-Cookie: JSESSIONID=3FA7E345679317FD1D1FBED8FA6726F2; Path=/santaba; Secure
Server:...
Forms : {}
Headers : {[Content-Length, 89], [Content-Type, text/json;charset=UTF-8], [Date, Fri, 30 Jan 2015 17:54:08
GMT], [set-Cookie, JSESSIONID=3FA7E345679317FD1D1FBED8FA6726F2; Path=/santaba; Secure]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 89
When I use the exact login name and pass going to the portal directly it logs me in just fine. Any ideas? I used the following code:
Invoke-WebRequest -Uri \'\'https://mycompany.logicmonitor.com/santaba/rpc/getEscalatingChains?c=mycompany&u=user&p=pass\'\'
Thanks!