Hi @dchiesa1 ,
I have read up your post on the forum regarding setting up an alert when a new Developer App is created :
https://www.googlecloudcommunity.com/gc/Cloud-Product-Articles/Getting-Alerts-on-creation-of-Developer-Apps-in-the-Apigee/ta-p/386034
My query is related to an option provided in Apigee X API products page to uncheck the Automatically approve access requests.
I have tried out the option, and could see that the product that has been requested by an App shows as pending in the App.
Is there a way in Apigee X, currently that would allow to set a similar alert as its available for Developer App? Or how does the API Owner get an information that an App has requested access to their products.
Thanks,
Debjit
Sure. I think the alert is the same, or nearly the same… But when your logic (hosted in Cloud Run or whatever) gets triggered by the alert, you need to check the API product to see if the status is pending, and if it is, check who owns the product, and notify that person. this would make sense if you have a relatively “low” volume of API product requests.
OTOH, if you expect o(10) of these per day, maybe the API product owner is not interested in getting 10 emails. So in that case you wouldn’;t use an alert, you’d use a batch job that runs nightly. (eg a Cloud Run thing that gets triggered by Cloud Scheduler). And it would have to check ALL Developer apps, find the ones that are pending, and notify the product owner(s). And of course you could have that run not just nightly , but hourly, or more often, if you wanted to shrink the time window during which a pending app request remains pending.
Who is the product owner? That’s not a required “property” of an API product. so you might want to establish a convention that there’s a custom attribute in the API product that identifies the email addr of the product owner. Or , one could imagine other notification channels. For example instead of an email addr, the custom attr could hold a Slack URL, and the notification job would send a formatted message to that slack channel.