コンテンツにスキップ

Whether this deployment receives sFlow, and how many pollers are listening.

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

The sFlow switch and the pollers listening

Media typeapplication/json

One flow protocol’s reception.

object
can_switch
required

Whether the switch can be operated. false means the updater sidecar that performs it is not deployed, is switched off, has stopped reporting, or is too old to know this change.

boolean
enabled
required

The switch as an operator last set it. When it is on, the poller listens and the port is published on every host address; when off, the port is published on loopback only. Until a change has been applied the two can differ; listening_pollers is what is listening now.

boolean
listening_pollers
required

How many online pollers this switch reconfigures (the ones beside core, not a remote site’s) report a listener for this protocol right now.

integer format: int32
Examplegenerated
{
"can_switch": true,
"enabled": true,
"listening_pollers": 1
}

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 View

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

Inventory storage is unavailable (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"
}
}