oxidized_source
const url = 'https://example.com/internal/oxidized/nodes';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/internal/oxidized/nodes \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The nodes the bundled oxidized fetches, with their logins in plaintext. For oxidized alone: it demands the source token in x-yagra-oxidized-token
One node as oxidized’s HTTP source reads it. The field names are the keys the generated
configuration’s map names (config::render).
object
The node id: oxidized’s name for it, and the file it is stored under.
The relay port oxidized logs in over SSH on, at core’s own address (stage 5 decision 43). Absent for a parked node.
The relay port for telnet: the one after [Self::ssh_port].
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)
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" }}This deployment has no config backup (config_backup_unavailable)
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" }}