从 API 中删除网络钩子
要使用 API 删除网络钩子,首先需要找到网络钩子 ID。
您可以在 webhook 响应中找到网络钩子 ID。在以下示例中,是id
a7c61a9c-a25b-4c27-xxxx-xxxxxxxxxxxx
[ { "enabled": true, "name": "mist-edge", "url": "https://webhook.site/4ec10796-16ec-4225-xxxx-xxxxxxxxxxxx", "secret": "", "topics": [ "mxedge-events" ], "verify_cert": true, "id": "a7c61a9c-a25b-4c27-xxxx-xxxxxxxxxxxx", "for_site": false, "site_id": "00000000-0000-0000-0000-000000000000", "org_id": "3f12cb79-fb5e-4d4b-xxxx-xxxxxxxxxxxx", "created_time": 1575305516, "modified_time": 1692974137 } ]
要删除此网络钩子,请从您的 API 客户端进行 API 调用 (DELETE
)。
DELETE https://api.mist.com/api/v1/orgs/3f12cb79-fb5e-4d4b-xxxx-xxxxxxxxxxxxx/webhooks/a7c61a9c-a25b-4c27-a14e-xxxxxxxxxxxx
如下所述,此调用指定 API 端点、组织 ID、资源 (webhooks
) 和 Webhook ID (a7c61a9c-a25b-4c27-xxxx-xxxxxxxxxxxx
)。
删除 Webhook 后,瞻博网络 Mist API 将返回 HTTP 200 OK 响应。