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!

How to change the Remote Server Base URL programmatically/API?

ilmarskOct 13 2022

Hello,
What are the options to change Base URL for the “Workspace Utilities/Remote Servers” definition programmatically? APEX_APPLICATION_INSTALL.SET_REMOTE_SERVER api will allow needed functionality only during installation. But I am looking for the same during the use of the app. The requirement is for each tenant to provide their base URL for predefined rest sources (note: each tenant would get their workspace – no collision there). Tenants may decide to change their source server from A to B at any time + provide new credentials;

Note: APEX_WEB_SERVICE.MAKE_REST_REQUEST is not an option, due to heavy reliance on table synchronization + direct reports. Most calls are either done via APEX_REST_SOURCE_SYNC or EXECUTE_REST_SOURCE. The latter ones do not provide the ability to pass in the base url.

Any thoughts on implementing this requirement would be appreciated. Thank you.

Environment
Apex on OCI v22.1

Comments
Post Details
Added on Oct 13 2022
1 comment
845 views