Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Call an OCI function: NotAuthorizedOrNotFound

InoLMar 20 2024

I'm posting this in the APEX forum, since this forum is far more active than the OCI forum. Plus, I'm using APEX here :-)

I'm trying the new OCI Document Generator function. I'm not on an Autonomous Database, but an OCI DB Service, so I'm using the steps found here.

As described in that blog, you can first try it in Postman. That failed with

{"code":"NotAuthorizedOrNotFound","message":"Authorization failed or requested resource not found"}

Okay, I moved on to APEX, to see if it would work. Not, same error.

This is really hard to tackle, since it could be anything. Of course I'm pretty sure I have everything setup correctly :-)

  • Created the function and let that create the Dynamic Group and Policy automatically.
  • Created a special API User for this and downloaded the private key.
  • Setup the the Web Credentials.

  • Call the REST source using the Web Credentials

Does anyone have some tips on how to troubleshoot this?

This post has been answered by jariola on Mar 23 2024
Jump to Answer
Comments
Post Details
Added on Mar 20 2024
14 comments
2,580 views