Skip to content

save_report

POST
/internal/oxidized/save
curl --request POST \
--url https://example.com/internal/oxidized/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data action=example \
--data compare=example \
--data failure=example \
--data node=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--data save=example \
--data startup=example \
--data unsaved_after=example \
--data unsaved_before=example
Media typeapplication/x-www-form-urlencoded

How the save script’s run went, as it posts it.

object
action
required

save, auto or check.

string
compare

What the device printed for the comparison the reading above was taken from (the later one after a save that worked, the earlier one otherwise), through oxidized’s secret filter. Kept only while the two differ (Inc.9).

string
failure

A SaveFailure token; empty when it succeeded.

string
node
required
string format: uuid
save

The save reported on; empty for a check.

string
startup

The startup configuration read just before a save.

string
unsaved_after

The same, read again after a save that succeeded.

string
unsaved_before

true or false when the model can compare running with startup; empty otherwise. For auto, true means a save was tried in the same login.

string
Examplegenerated
action=example&compare=example&failure=example&node=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&save=example&startup=example&unsaved_after=example&unsaved_before=example

Recorded. For the save script inside the bundled oxidized alone: it demands the source token in x-yagra-oxidized-token

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