list_routing_rules
const url = 'https://example.com/api/v1/routing-rules';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/routing-rules \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every routing rule and the channels it fans out to
A routing rule: enabled alerts at severity or above (None = any; ADR-277 Inc.2) whose node
is inside one of group_ids and/or carries one or all of tags (tag_match, then join;
both empty = every node) fan out to channel_ids.
object
Folders the node must be inside, at any depth (ADR-262 decision 1). With both this and
tags empty the rule covers every node. A folder that no longer exists reaches nothing. A
subject that is not a node matches only a rule that names neither.
The rule sends nowhere: while it is the first open rule that matches, an alert is held until
another rule decides (ADR-262 decision 14). Its channel_ids are then not read. Absent =
false.
How group_ids and tags combine when the rule names both (ADR-262 decision 10): or (a
node inside one of the folders or carrying one of the tags) or and (both). Absent = or.
The lowest severity the rule takes: it takes this one and every one above it (warning
takes warning, critical and unreachable). null = every alert. Rules are first-match, so a
lower rule above a higher one that shares its nodes takes the higher one’s alerts first —
GET /routing-coverage names those pairs in taken_first.
How the tags combine among themselves (ADR-267): any (a node carrying one of them) or
all (a node carrying every one). Absent = any.
The node must carry one of these (or every one, by tag_match) among its effective labels -
its own plus the ones its folders supply, minus the ones it refuses (ADR-259). Empty means
every node, and a
subject that is not a node (a poller pool, a Meraki organization) matches only an empty
list. Compared exactly, case included, the way a node’s own labels are stored.
When the rule is open (ADR-262 decision 3). Absent = always.
object
Whether a routing rule is open always, only inside its window, or only outside it (ADR-262 decision 3).
What the rule does while its hours are closed (ADR-266): next_rule passes the alert on to
the rules below and the catch-all, hold keeps it back until a rule that sends opens. A
rule that is always open never reads it. Absent = next_rule.
Example
[ { "join": "or", "severity": "info", "tag_match": "any", "when": { "mode": "always" }, "when_closed": "next_rule" }]No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks ManageSystem
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}This core has no write side (skeleton mode)
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}