7 Replies Latest reply on Jan 10, 2019 5:22 PM by Javier Hernandez

    TSPS Web Services

    Michael Funke
      Share This:

      Has anyone had any luck using the web services for TSPS?   I need to get the following information out of it, but I'm running into problems trying to do so.

       

      https://<MYDOMAIN>/tsws/10.0/api/omprovider/devices

       

      https://<MYDOMAIN>/tsws/10.0/api/omprovider/instances

       

      Error Message in Postman:  Requested webservice API not found.

       

      When I try to connect to it, it gets through the authentication fine, but I get a 404, as if these links are incorrect for TSPS 10.7.  Can someone please advise if the URL's are event correct?

        • 1. Re: TSPS Web Services
          Jeff Campbell

          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

            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

              Hey Michael...  Any luck?

              • 4. Re: TSPS Web Services
                Michael Funke

                No luck yet.

                • 5. Re: TSPS Web Services
                  Javier Hernandez

                  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

                    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 Hernandez

                      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