I’m new with IFS and I’m having difficulties. Where I can find the API List for PSO? I would like to send data to PSO (minimum scheduling data) and also retrieved the result.
I succesfully authenticated in IFS Cloud, but not for PSO. I’m sure that something simple
For PSO I followed the guide based on UserName and Password (User who logs into the PSO app).
The Gateway is all granted for the user. Do I missing some other authorizations?
Thank you
Page 1 / 1
Hi Eleazar, try the following, obviously replace localhost with the name of the server:
You can use swagger to test the APIs. The interactive Swagger documentation is hidden by default. In order to view it you must enable the parameter EnableSwaggerUI.
If you use PSO with IFS Cloud, you can find the account ID on the Machine Learning Configuration Page, it's typically the name space of your IFS Cloud instance. Default authentication uses OAuth2, sending user and password in the URL needs to be explicitly enabled in the PSO/user permissions,search for Gateway…
To take a step back: What are you trying to achieve?
Hi,
@Alexander Heinze from the Configuration I retrieved the AccountId (I’m guessing is the PSO Account Id) and have access to the Swagger using the PSO RESTful Gateway URL, thanks @tomgreenwood for the links.
Now the issue it seems to be the User authorizations, from the Swagger and Postman I’m having the same issue “Authentication Failed” even though the User has all grant in PSO (please see screenshot below)
Thank you very much.
PS. My goal is to send a minimum amount of data to the scheduling system in order to get the schedule plan to be send to a third party app.
Hi Eleazar,
To authenticate you need to obtain a token from the Session endpoint:
In swagger this can then be pasted in to the authorization section at the top of the page:
You will then be able to use the other endpoints.
Thanks,
Tom
Hi Eleazar,
To authenticate you need to obtain a token from the Session endpoint:
In swagger this can then be pasted in to the authorization section at the top of the page:
You will then be able to use the other endpoints.
Thanks,
Tom
Hi @tomgreenwood , thank you for sharing the API to use but unfortunately I tried to use and had the “Authentication Failed” in the screenshot share before.
Hi Eleazar,
Make sure you are using the right credentials when getting the token. The account id appears directly after the PSOWorkbench in the Workbench URL. For example on my local machine the account id is Default: