コンテンツにスキップ

list_config_backups

GET
/api/v1/config-backups
curl --request GET \
--url 'https://example.com/api/v1/config-backups?state=on' \
--header 'Authorization: Bearer <token>'
state

Which nodes the list answers (ADR-224 decision 3).

string
Allowed values: on off never all

on (the default), off, never or all.

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

Media typeapplication/json
Array<object>

One node in the fleet-wide list.

object
auto_save
required

Yagra saves it on its own after a fetch finds it unsaved (ADR-222 Inc.11).

boolean
configured
required

Whether it has settings; false for a node that was never switched on.

boolean
credential_id

The login being tried or that works.

string | null format: uuid
enabled
required

Whether it is fetched.

boolean
input
One of:
null
last
One of:
null
last_auto_save
One of:
null
last_success_at

When a fetch last succeeded.

string | null format: date-time
login_confirmed
required
boolean
model

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.

string | null
node_id
required
string format: uuid
pending
required

A fetch is out and not yet answered.

boolean
poller
required

Whether a poller can carry the node’s login session (ADR-210 stage 5 decision 48).

string
Allowed values: ready no_poller poller_too_old relay_refused
save_supported
required

Yagra has a save command for its model, so automatic save can be switched on once it is backed up (Inc.11 decision 16).

boolean
try_after

When the lockout limits next allow a try, as the leader last worked it out.

string | null format: date-time
Example
[
{
"input": "ssh",
"last": {
"input": "ssh",
"outcome": "success"
},
"last_auto_save": {
"failure": "auth",
"origin": "person",
"state": "pending"
},
"poller": "ready"
}
]

An unknown state

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

No valid bearer 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 write side (skeleton mode)

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