2
votes

I am setting up Azure API Management with 2 different products that offer different access and restrictions to the underlying API.

Ideally I would like subscriptions for each product to have a different length of time that the user can access them for before it needs to be renewed. I am not finding any type of auto-expiration date for subscriptions when I approve them.

Is there a way to do this that I am missing?

1

1 Answers

4
votes

You can create product specific policies that check the time since the subscription was created and deny access if necessary. See context.Subscription.StartDate here https://msdn.microsoft.com/en-ca/library/dn910913.aspx