HTTP/1.1 401 Unauthorized - Ansible script making call to PSM REST API fails
(Doc ID 2869757.1)
Last updated on MAY 16, 2022
Applies to:SOA Suite Cloud Service - Version 22.214.171.124 to 126.96.36.199
Information in this document applies to any platform.
On : SOACS, PSM Core APIManager related issues
We are using a Ansible script developed in 2019 to provision a new SOA environment, but it is failing on first call to PSM with
HTTP/1.1 401 Unauthorized
We have isolated the code not working and able to reproduce error with curl:-
WWW-Authenticate: Basic realm="owsm"
Date: Fri, 13 May 2022 18:25:18 GMT
The user is an IDCS user & the same one that was used to provision all our SOA instances (Ansible automated provisioning code, but we reproduced the issue using curl). The password appears correct as the provisioning code successfully used the same credentials to create an OCI DBCS instance before failing to query the PSM API. The user doesn't need Multi Factor Authentication, but does not have permission to log into the OCI console (it never has had, for security reasons as it is a service account). The user is in the SOA Administrators group.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document