Notifications list for Azure API Management using REST API

点点圈 提交于 2019-12-24 10:09:56

问题


Anybody know if it's possible to add email addresses to the notification list for Azure API Mangement via a REST API? Specifically, I would like to be able to add to the "Approaching subscription quota limit". I see that there's a way to do this in the UI, but I'm looking for a way to do this via REST call or PowerShell commandlet (if possible).


回答1:


The docs are still in progress, and stuff might change a bit, but in short:

GET /notifications - get list of all notifications in system

GET /notifications/{nid} get single notification

GET /notifications/{nid}/recipients - get list of recipients for single notification

GET /notifications/{nid}/recipients/emails - get list of email recipients subscribed to notification

GET /notifications/{nid}/recipients/users- get list of user recipients subscribed to notification

GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/emails/{email} - get/manage single email recipient

GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/users/{user} - get/manage single user recipient




回答2:


I just got a response from Microsoft. It turns out that it's only possible to add email addresses to the notification list by UI at the moment.



来源:https://stackoverflow.com/questions/43524016/notifications-list-for-azure-api-management-using-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!