I am trying to use the REST API for the Workload Scheduler.
When I try to list the existing process libraries using HTTP GET, I see the following message:
HTTP Error 401: Unauthorized
I am using basic authentication with the service credentials that are displayed in the Bluemix dashboard. The client I am using to perform this action is Ansible and its URI module.
Additionally, I tried to use the python API, but the swagger_client library cannot be imported because of indentation errors.
So, Is there an issue with using the REST API directly or do I need to use other credentials and where do I get those credentials?
I was able to successfully login once using the Composer and hybrid UI credentials in Ansible. However, I would like to use a technical user and not my own account, which I am currently using for testing purposes only.


tasks: - name: "Get Process Libraries and login cookie" uri: url: "https://siwr37wamxo-490.wa.ibmserviceengage.com/ibm/TWSWebUI/Simple/rest/ProcessLibrary" method: GET user: "SERVICE_CREDENTIALS_USER" password: "SERVICE_CREDENTIAL_PASS" headers: { Accept: "application/json", tenantid: "TID", engineName: "NAME", engineOwner: "OWNER", } status_code: 200 register: lib_response- mehmetue