コンテンツにスキップ

list_template_items

GET
/api/v1/collection-templates/{id}/items
curl --request GET \
--url https://example.com/api/v1/collection-templates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

Collection template id

The template’s items

Media typeapplication/json
Array

One metric in a template, with its id, for the template editor.

object
kind
required

Scalar GET vs table walk.

string
Allowed values: scalar table
metric_kind
required

Gauge vs raw counter — rates/utilization are derived at query time (ADR-012), never by the poller.

string
Allowed values: gauge counter
metric_name
required

Stable TSDB metric name (e.g. if_hc_in_octets). Bounded by convention to keep label cardinality controlled — never a free-text/device-supplied value (ADR-011).

string
oid
required

Dotted OID: a scalar instance OID ([CollectionKind::Scalar]) or a table column base ([CollectionKind::Table], the walk root).

string
enabled
required
boolean
id
required
string format: uuid
Example
[
{
"kind": "scalar",
"metric_kind": "gauge"
}
]

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 ManageConfig

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"
}
}

Skeleton mode: no write side

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"
}
}