Add User to the Host ACL

For model providers like OpenAI, add users to the host ACL (Access Control List).

Note: Host ACL entry is not required for OCI GenAI.

The following procedure grants the privilege to use the api.openai.com endpoint.

Note: This procedure is not applicable to OCI Generative AI.

BEGIN
    DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
         host => 'api.openai.com',
         ace  => xs$ace_type(privilege_list => xs$name_list('http'),
                             principal_name => 'OMLUSER',
                             principal_type => xs_acl.ptype_db)
   );
END;

The parameters are: