My Oracle Support Banner

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 to
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:-

HTTP/1.1 401 Unauthorized
Content-Type: text/plain
Content-Length: 0
X-ORACLE-DMS-ECID: xxxxxxxxxxxxxxx
X-Frame-Options: DENY
WWW-Authenticate: Basic realm="owsm"
Content-Language: en
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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.