question

NICOLELEUNGBAISDOOCLLHKG-4873 avatar image
0 Votes"
NICOLELEUNGBAISDOOCLLHKG-4873 asked JayaC-MSFT answered

Set expiry date for the subscirpition in APIM

Hi. May I ask how could I set the expiry date of the subscription ?

For example, user A subscribe for product B on 18/6/2021 . How can I set the effective period be 1 year and expire the subscription on 18/6/2022 of which the user could no longer use the API keys ?

If I could set the expiry date, how could I show it on the "Manage subscription page" as well ? Thank you :)

106913-image.png



azure-api-management
image.png (48.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered

Hello @NICOLELEUNGBAISDOOCLLHKG-4873 Welcome to Microsoft QnA. Thank you for the question.

You may consider using the REST API

Please refer to how-to-periodically-force-apim-consumer-change-sub.html

Also, you can programmatically try to unsubscribe user or handle the expiration. Ref : how-do-i-quotrenewquot-a-subscription-key-that-has-expiration-limit

Please let me know if this helps.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.