Skip to content

get_config_backup

GET
/api/v1/nodes/{node_id}/config-backup
curl --request GET \
--url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-backup \
--header 'Authorization: Bearer <token>'
node_id
required
string format: uuid

Node id

The node’s config backup: configuration, whether it is fetched, the login being tried or that works, the latest attempts

Media typeapplication/json

One node’s config backup.

object
attempts
required

The newest attempts, newest first.

Array<object>

One login attempt.

object
at
required
string format: date-time
credential_id

The login tried; null when it has since been deleted.

string | null format: uuid
input
One of:
null
new_version

For a success: whether a new version was stored. null otherwise.

boolean | null
outcome
required

How one login attempt ended.

string
Allowed values: success auth_failed unreachable other lost cancelled unknown
auto_save
required

Yagra saves it on its own after a fetch finds it unsaved (ADR-222 Inc.11). Switched with POST /api/v1/config-backups/auto-save.

boolean
available
required

Whether this deployment has an oxidized at all.

boolean
candidates
required

The logins this node tries, in order (login_order with deleted ones dropped, or every CLI login).

Array<string>
credential_id

The login handed to oxidized: the one being tried, or the one that works.

string | null format: uuid
enabled
required
boolean
exhausted
required

Every candidate failed in this pass; nothing is tried until a fetch is asked for, the order changes, or a CLI login is added or changed.

boolean
input
required

How the device’s command line is reached: ssh_then_telnet lets Yagra pick SSH or telnet for each attempt (ADR-242); ssh or telnet fixes it.

string
Allowed values: ssh telnet ssh_then_telnet unknown
last_success_at

When a fetch last worked, from every attempt rather than the newest few; null when none has or the backup is switched off.

string | null format: date-time
login_confirmed
required

credential_id has fetched successfully.

boolean
login_order

The node’s own order of CLI logins; null means every CLI login in the try order.

Array<string> | null
model_override

The model a person picked; null means “from the profile”.

string | null
models
required

The models a person may pick.

Array<string>
pending
required

Yagra asked oxidized for a fetch and has not heard how it ended.

boolean
profile_model

The model the node’s profile maps to, if any.

string | null
protocol
One of:
null
readiness
required

Whether it is fetched, or the one thing to fix.

string
Allowed values: ready off no_model no_credential unknown_input address_changed no_poller poller_too_old relay_refused
save_supported
required

Whether Yagra can save this node’s model (ADR-222): the model it is fetched with has a save command in Yagra’s table.

boolean
saves
required

The newest saves, newest first.

Array<object>

One save, as a screen lists it.

object
failure
One of:
null
finished_at
string | null format: date-time
id
required
string format: uuid
kept_startup
required

Whether the startup configuration the save replaced was kept.

boolean
origin
required

Who asked for a save.

string
Allowed values: person auto
requested_at
required
string format: date-time
state
required

Where a save stands.

string
Allowed values: pending running saved failed
scan_mode
required

How fast it tries its logins: one set of lockout limits each (stage 3 decision 27).

string
Allowed values: rapid normal slow unknown
stale
required

The node has gone without a fetch that worked for longer than core allows, or its “config backup not fetched” alert is open and no fetch has worked since - the judgement that opens and closes that alert (ADR-240 decision 6), whether or not a maintenance window holds it back. false while switched off.

boolean
status
One of:
null
try_after

When the lockout limits allow the next try; null when one may be tried now, or none is due.

string | null format: date-time
unsaved
One of:
null
Example
{
"attempts": [
{
"input": "ssh",
"outcome": "success"
}
],
"input": "ssh",
"protocol": "ssh",
"readiness": "ready",
"saves": [
{
"failure": "auth",
"origin": "person",
"state": "pending"
}
],
"scan_mode": "rapid"
}

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

No such node the caller can see

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