Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST http://localhost:5080/api/v1/alerts/sources/$SOURCE_ID/token \ -H "authorization: Bearer $MS_TOKEN"
{ "id": "3KEJ1mZqf0bY0b8XUgD4tkd2Vwq", "name": "Production Prometheus", "kind": "alertmanager", "enabled": true, "escalation_policy_id": "default", "severity": "warning", "labels": { "team": "payments" }, "token_prefix": "ms_aB3kZ1xT9pQrU7nM", "home_cluster": "", "intake_path": "/api/v1/intake/alerts", "created_by": "<user-id>", "created_at": 1790000000000000, "updated_at": 1790000000000000, "last_intake_at": null, "token": "<token>" }
给告警来源换一个新 Token,旧的立即失效。
POST /api/v1/alerts/sources/{id}/token
alerts.sources.manage
token
403
404