Azure API 使用 REST 管理的通知列表 API

Notifications list for Azure API Management using REST API

有人知道是否可以通过 REST API 将电子邮件地址添加到 Azure API 管理的通知列表中吗?具体来说,我希望能够添加到 "Approaching subscription quota limit"。我看到 UI 中有一种方法可以做到这一点,但我正在寻找一种通过 REST 调用或 PowerShell commandlet(如果可能)来做到这一点的方法。

我刚收到微软的回复。原来,目前只能通过UI将电子邮件地址添加到通知列表。

文档仍在开发中,内容可能会有所变化,但总而言之:

GET /notifications - 获取系统中所有通知的列表

GET /notifications/{nid} 获取单个通知

GET /notifications/{nid}/recipients - 获取单个通知的收件人列表

GET /notifications/{nid}/recipients/emails - 获取订阅通知的电子邮件收件人列表

GET /notifications/{nid}/recipients/users- 获取订阅通知的用户收件人列表

GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/emails/{email} - get/manage 单个电子邮件收件人

GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/users/{user} - get/manage 单用户收件人