list_classification_rules
const url = 'https://example.com/api/v1/classification-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/classification-rules \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every rule, in evaluation order
A persisted rule mapping a device signature to a profile. At least one of
sysobjectid_prefix / sysdescr_regex is set (the DB enforces this with a CHECK).
object
Disabled rules are skipped during classification.
Stable identity.
See vendor.
Evaluation order: ascending, lowest first. Most-specific rules get lower numbers.
The profile to suggest when this rule matches.
Match when the device’s sysDescr matches this regular expression — a fallback for
devices whose sysObjectID isn’t covered by a prefix rule.
Match when the device’s sysObjectID starts with this dotted-OID prefix
(e.g. 1.3.6.1.4.1.9. for Cisco). Authoritative — preferred over sysDescr.
Optional vendor/model to pre-fill on the import row (overrides the sysDescr
heuristic when set). Descriptive metadata only — never a TSDB label.
Examplegenerated
[ { "enabled": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "model": "example", "priority": 1, "profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "sysdescr_regex": "example", "sysobjectid_prefix": "example", "vendor": "example" }]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 below Admin
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" }}Skeleton mode has no write side
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" }}