How to access private/restricted apis & apiProducts of apigee Portals using say curl.

Hey there,

i have an integrated apigee portal which has few public accessible apis & api products and few restricted/private apis & api products.

Those api products are attached with respective Apps.

I have generated bearer access token using client/api key and secret key and using that token i'm trying to access resources of apigee portal url "https://syed-eval-oauth2appyprivateportal.apigee.io/portals/api/sites/syed-eval-oauth2appyprivatepor..." using below curl command

curl -v -i -H 'Content-Type: application/json' -H 'Authorization: Bearer db9EFys2FGWQ1uuGFqH0AQXMzuTU' https://syed-eval-oauth2appyprivateportal.apigee.io/portals/api/sites/syed-eval-oauth2appyprivatepor...

this command gives me below error message/ output

{"status":"error","message":"An unexpected error occurred (id: 527368721)","data":null,"request_id":null,"error_code":"527368721"}

So, How to access private/restricted apis & apiProducts of apigee Portals using say curl.

Quick response will be appreciated.

Feel free to ask anything relevant about this issue which i might have forgotten to mention.

Thanks & Regards

0 2 106
2 REPLIES 2

How to access private/restricted apis & apiProducts of apigee Portals using say curl.

What are you trying to do? the portal is a Web UI. It has no documented APIs. If you are calling into endpoints managed by the portal, you're on your own. There's no documented, supported way to do what you are trying to do.

if we can't access/make java rest api calls to proxy apis added inside integrated portals through Specs-->Proxies-->API-Products-->Portals-->APIs, So how are we suppose access/make java rest api calls to our registered Specs/Proxies.

Could you please helps us over here, as i'm a newbie to rest api and all.

Thanks & regards