save_report
const url = 'https://example.com/internal/oxidized/save';const options = { method: 'POST', headers: { Authorization: 'Bearer <token>', 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ action: 'example', compare: 'example', failure: 'example', node: '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', save: 'example', startup: 'example', unsaved_after: 'example', unsaved_before: 'example' })};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=exampleAuthorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”How the save script’s run went, as it posts it.
object
save, auto or check.
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).
A SaveFailure token; empty when it succeeded.
The save reported on; empty for a check.
The startup configuration read just before a save.
The same, read again after a save that succeeded.
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.
Examplegenerated
action=example&compare=example&failure=example&node=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&save=example&startup=example&unsaved_after=example&unsaved_before=exampleResponses
Section titled “Responses”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)
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" }}