Is there a way to grant access to only some of these resources based on the API Product or Developer App? E.g. Granting access to /metrics, but restricting access to /dashboard
Yes, Apigee API Product out of the box supports it. You can grant access to only some of these resources based on the API Product. The API resources bundled in a product can come from one or more APIs, so you can mix and match resources to create specialized feature sets.
Thanks for your quick answer. I’ve tried but I still can’t get it to work. Let’s say that I want to only grant access to /metrics : 1. In Apigee Edge I go to Publish → Product → Choose the product 2. Click Edit 3. I add ’ metrics** ’ as the only resource 4. Click Save But when I call the endpoint /dashboard, using that API Product I just restricted to only /metrics, it responds with HTTP 200 OK and data.
I’ve also tried restricting the resources with the following without luck: ‘/metrics**’, ‘/*’, ‘/’, ‘**’
How did you call your endpoint /dashboard ? Is you API proxy secured using policy like Verify API Key policy ? You need to create an App & use the key to make API call. API Products work along with Developer Apps, Security Policies like OAuth or Verify API key in Apigee. If your API Proxy is not secured then API Products doesn’t make any sense. See securing your API docs here.