コンテンツにスキップ

oxidized_source

GET
/internal/oxidized/nodes
curl --request GET \
--url https://example.com/internal/oxidized/nodes \
--header 'Authorization: Bearer <token>'

The nodes the bundled oxidized fetches, with their logins in plaintext. For oxidized alone: it demands the source token in x-yagra-oxidized-token

Media typeapplication/json
Array<object>

One node as oxidized’s HTTP source reads it. The field names are the keys the generated configuration’s map names (config::render).

object
enable
string | null
group
required
string
input
required
string
ip
required
string
model
required
string
name
required

The node id: oxidized’s name for it, and the file it is stored under.

string
password
required
string
ssh_port

The relay port oxidized logs in over SSH on, at core’s own address (stage 5 decision 43). Absent for a parked node.

integer | null format: int32
telnet_port

The relay port for telnet: the one after [Self::ssh_port].

integer | null format: int32
username
required
string
Examplegenerated
[
{
"enable": "example",
"group": "example",
"input": "example",
"ip": "example",
"model": "example",
"name": "example",
"password": "example",
"ssh_port": 1,
"telnet_port": 1,
"username": "example"
}
]

No token, or the wrong one (oxidized_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"
}
}

This deployment has no config backup (config_backup_unavailable)

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