-
1. Re: TSPS Web Services
Jeff Campbell Jan 8, 2019 5:00 PM (in response to Michael Funke)I was able to get it working with Postman. Here are the steps that I performed.
First off, I assume you acquired an authorization token. If not, do that.
Once the authorization token is acquired, add it as a header with the following format:
Key = Authorization
Value = authToken <AUTHORIZATION_TOKEN>
If you are not using a secure connection on your Presentation Server (ex. https), the GET URI example is the following:
http://<PRESENTATION_SERVER>/tsws/10.0/api/omprovider/devices?tenantName=BmcRealm&deviceEntityType=all&parentDeviceId=-1
If you are using a secure connection on your Presentation Server (ex. https), the GET URI example is the following:
https://<PRESENTATION_SERVER>/tsws/10.0/api/omprovider/devices?tenantName=BmcRealm&deviceEntityType=all&parentDeviceId=-1
These also assume you are using the default ports (http:80; https:443). If you are not using the default ports, then you will need to change the Presentation Server portion to the following: http(s)://<PRESENTATION_SERVER>:<PORT>/.
Let me know if you have any questions and whether this works for you or not...
Thanks, Jeff
-
2. Re: TSPS Web Services
Michael Funke Jan 8, 2019 5:13 PM (in response to Jeff Campbell)Jeff,
Yes, I already have my auth token, but it is acting like that URL does not exist. We're using a load balancer, so there is no port. Let me check with those guys on this. Perhaps they only are forwarding requests on to a specific path for some reason. I'll check on that.
Regards,
Michael Funke
-
3. Re: TSPS Web Services
Jeff Campbell Jan 10, 2019 10:22 AM (in response to Michael Funke)Hey Michael... Any luck?
-
4. Re: TSPS Web Services
Michael Funke Jan 10, 2019 11:44 AM (in response to Jeff Campbell)No luck yet.
-
5. Re: TSPS Web Services
Javier HernandezJan 10, 2019 4:48 PM (in response to Michael Funke)
Michael, did you check TSPS logs for any errors just after sending the API?
Are you seeing this error "CSRF Filter - Header Referer is not matched. Blocking " in the TrueSight.log file? If so, you may try to apply Knowledge Article 000147410 (KnowledgeArticle - BMC )
-
6. Re: TSPS Web Services
Michael Funke Jan 10, 2019 5:03 PM (in response to Javier Hernandez)No errors in the logs at all. In fact no entry in the logs at all even when I try to connect. This tells me that perhaps it's not even getting past the load balancer.
-
7. Re: TSPS Web Services
Javier HernandezJan 10, 2019 5:22 PM (in response to Michael Funke)
Did you try skipping the LB and put the active TSPS hostname in the URL?
If you get confirmed by your LB admins that issue is not there, then the best would be you raise a support case to troubleshoot it.
Thanks
Javier