コンテンツにスキップ

push_status

GET
/api/v1/config-backup-remote/status
curl --request GET \
--url https://example.com/api/v1/config-backup-remote/status \
--header 'Authorization: Bearer <token>'

Whether config backups are reaching their Git destination: its host, the last push that arrived, the last failure

Media typeapplication/json

How the last push went.

object
configured
required

A destination is set.

boolean
failed_at
string | null format: date-time
failure
One of:
null
failures
required

Failed pushes in a row.

integer format: int32
host

The host config backups go to — the URL’s host, not its path.

string | null
pushed_at

When a push last succeeded, and the commit the destination then held: the one a person finds there.

string | null format: date-time
pushed_commit
string | null
Example
{
"failure": "auth"
}

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