Get Routing Rules
GET {{baseUrl}}/services/:serviceID/routing-rules
This endpoint returns the default routing rules for the service if not already created.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with read
scope.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null |
RESPONSES
status: OK
{"data":{"id":"5d8b23427c870edd41453c25","created_at":"2019-09-25T08:20:18.884Z","updated_at":"2019-09-25T08:20:18.884Z","deleted_at":null,"service_id":"5d81d9687000fb6b9def7e35","organization_id":"5d81d9187000fb6b9def7e32","rules":[{"expression":"re(current.labels.alertname, \"^CPUThrottlingHigh.*\") \u0026\u0026 re(past.labels.alertname, \"^CPUThrottlingHigh.*\")","route_to":{"entity_type":"escalationpolicy","entity_id":"5d81d9407000fb6b9def7e33"}},{"expression":"re(current.labels.alertname, \"^CPUThrottlingHigh.*\") \u0026\u0026 re(past.labels.alertname, \"^CPUThrottlingHigh.*\")","route_to":{"entity_type":"squad","entity_id":"5d8b5976578cc3b845cb3608"}},{"expression":"re(current.labels.alertname, \"^CPUThrottlingHigh.*\") \u0026\u0026 re(past.labels.alertname, \"^CPUThrottlingHigh.*\")","route_to":{"entity_type":"user","entity_id":"5d81d9187000fb6b9def7e31"}}]}}