{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by skarlovic · Nov 16, 2016 at 09:00 PM · 190 Views proxyproductsapi productapi productsapi-products

How is an API product selected when an API proxy is invoked?

If the same Proxy X appears in 2 different products A and B and the developer application has access to both products, which product is in context when the consumer calls the proxy endpoint? We would like to use custom attributes at the product level to drive behavior of proxy and different products will have different values for these custom attributes.

Thanks,

Steve

Comment
Add comment Show 2
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nisha Mallesh   · Nov 17, 2016 at 10:47 AM 0
Link

Hi @skarlovic,

same Proxy X appears in 2 different products A and B and the developer application has access to both products may not be the best design for implementing this.

Bundle of APIs/API proxies are associated with an API product.

And, Bundle of associated API products are added to a developer app.

And, a developer app is associated with developer(s).

So, having a product level attribute for the same API proxy for the same developer(s) does not depict a better approach.

Share us the use-case elaborately, so that we can discuss the design.

avatar image skarlovic · Nov 17, 2016 at 06:44 PM 0
Link

Thanks for the response. We could use the Developer App level for the attribute(s) as well, but we were wondering which is selected for the request if there are two products for the same proxy X, and if that should be considered as an option. It sounds like this is not good practice.

Without getting into too much detail, assuming this product attribute was specific to a customer/client, and the same application was used by multiple customers, and based on this attribute (which is configurable) we want to change the target server. If instead of an attribute, I was interested in having different quotas for each product, how would I know which proxy is selected if both were bundled with the same proxy endpoint.

Thanks.

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Aswin Segu   · Nov 17, 2016 at 10:24 AM

Apps are how developers access your API products. When a developer registers an app, they select the API products to associate with the app, and Apigee generates an API key for the app. By default, a single key provides access to all API products associated with the app. When the app makes a request, Apigee first verifies that the API key is valid and fails the request if not.

Once it validates the API Key, api product associated with it will be selected.

But in your case, not sure which product will be selected. I suggest using a "status" parameter at user level to change the behaviour based on it

Refer to documentation for API Product

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image skarlovic · Nov 17, 2016 at 06:47 PM 0
Link

Thanks for the explanation and suggestion.

Follow this Question

Answers Answers and Comments

47 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

API Product to mandate addition of atleast one proxy 2 Answers

unable to set up api product with permissions to resources on a api proxy 1 Answer

API to list all products related to a proxy 1 Answer

Is there any Management api call available to get product's current usage of quota (monthly) on the proxy? 2 Answers

Can I get a different apikey for the same developer for each different product? 3 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges