list_config_backups
const url = 'https://example.com/api/v1/config-backups?state=on';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/api/v1/config-backups?state=on' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Which nodes the list answers (ADR-224 decision 3).
on (the default), off, never or all.
Responses
Section titled “Responses”The nodes in state the caller can see, with their login and their last attempt. on (the default) is every node switched on for config backup
One node in the fleet-wide list.
object
Yagra saves it on its own after a fetch finds it unsaved (ADR-222 Inc.11).
Whether it has settings; false for a node that was never switched on.
The login being tried or that works.
Whether it is fetched.
The newest attempt; null when none has been made.
object
The login tried; null when it has since been deleted.
For a success: whether a new version was stored. null otherwise.
How one login attempt ended.
The newest save Yagra made on its own; null when it has made none. A run that found
nothing to save leaves no record (decision 13), so this is the last time it actually saved
or failed to.
object
Whether the startup configuration the save replaced was kept.
Who asked for a save.
Where a save stands.
When a fetch last succeeded.
The model it is fetched with: the one picked, else its profile’s; null when neither names
one, and then it cannot be switched on from the list.
A fetch is out and not yet answered.
Whether a poller can carry the node’s login session (ADR-210 stage 5 decision 48).
Yagra has a save command for its model, so automatic save can be switched on once it is backed up (Inc.11 decision 16).
When the lockout limits next allow a try, as the leader last worked it out.
Example
[ { "input": "ssh", "last": { "input": "ssh", "outcome": "success" }, "last_auto_save": { "failure": "auth", "origin": "person", "state": "pending" }, "poller": "ready" }]An unknown state
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" }}No valid bearer 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 write side (skeleton mode)
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" }}