Skip to content

list_routing_rules

GET
/api/v1/routing-rules
curl --request GET \
--url https://example.com/api/v1/routing-rules \
--header 'Authorization: Bearer <token>'

Every routing rule and the channels it fans out to

Media typeapplication/json
Array<object>

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
channel_ids
required
Array<string>
enabled
required
boolean
group_ids

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.

Array<string>
hold

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.

boolean
id
required
string format: uuid
join

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.

string
Allowed values: or and
name
required
string
severity
One of:
null
tag_match

How the tags combine among themselves (ADR-267): any (a node carrying one of them) or all (a node carrying every one). Absent = any.

string
Allowed values: any all
tags
required

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.

Array<string>
when

When the rule is open (ADR-262 decision 3). Absent = always.

object
days
Array<integer>
end_minute
integer format: int32
mode

Whether a routing rule is open always, only inside its window, or only outside it (ADR-262 decision 3).

string
Allowed values: always during outside
start_minute
integer format: int32
when_closed

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.

string
Allowed values: next_rule hold
Example
[
{
"join": "or",
"severity": "info",
"tag_match": "any",
"when": {
"mode": "always"
},
"when_closed": "next_rule"
}
]

No valid bearer token

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageSystem

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This core has no write side (skeleton mode)

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}