コンテンツにスキップ

oxidized_event

POST
/internal/oxidized/events
curl --request POST \
--url https://example.com/internal/oxidized/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data err_type=example \
--data event=example \
--data group=example \
--data ip=example \
--data node=example
Media typeapplication/x-www-form-urlencoded

How one fetch ended, as oxidized’s hook posts it (config::render).

object
err_type

Oxidized’s error class, such as Net::SSH::AuthenticationFailed; empty on success.

string | null
event
required

node_success or node_fail.

string
group
string | null
ip

The address oxidized dialled. A parked node’s (source::PARKED_IP) result is not a login attempt and is ignored.

string | null
node
required

Oxidized’s name for the node: its id.

string
Examplegenerated
err_type=example&event=example&group=example&ip=example&node=example

Recorded, or ignored when it is not about one of Yagra’s nodes. For oxidized alone: it demands the source token in x-yagra-oxidized-token

No token, or the wrong one (oxidized_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 config backup (config_backup_unavailable)

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