update_forward_destination
const url = 'https://example.com/api/v1/forwarding/destinations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ca_cert":"example","community":"example","dest_kind":"syslog_udp","enabled":true,"filter":{"conditions":[{"field":"source_ip","op":"eq","value":"example"}],"mode":"all"},"name":"example","pool":"example","rate_limit_per_sec":1,"service_account_json":"example","source_kind":"syslog","target":"example","verbatim":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/forwarding/destinations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ca_cert": "example", "community": "example", "dest_kind": "syslog_udp", "enabled": true, "filter": { "conditions": [ { "field": "source_ip", "op": "eq", "value": "example" } ], "mode": "all" }, "name": "example", "pool": "example", "rate_limit_per_sec": 1, "service_account_json": "example", "source_kind": "syslog", "target": "example", "verbatim": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Destination id
Request Bodyrequired
Section titled “Request Bodyrequired”Request body for creating/updating a forwarding destination.
object
PEM certificate(s) to trust for a TLS destination, in addition to the system roots. Not a
secret, so unlike community it round-trips and an empty value clears it.
SNMP community for re-encoded traps (snmp_trap_udp only). Sealed at rest; on update,
omitting it keeps the stored value.
How to speak to the collector.
Whether the forwarder should send to it. Defaults to enabled.
The filter; omitted = forward the whole stream.
object
The conditions; empty means match everything.
One field op value test. value is always a string so the config has a single JSON shape;
[compile] parses it according to the field’s type.
object
The datum to inspect.
The comparison to apply.
The operand, parsed per field type at compile time.
How [Self::conditions] combine.
Human label (unique, 1–120 chars).
Restrict to one poller pool; omitted/null = every pool.
Optional messages/second ceiling.
Google service-account key JSON for a bigquery destination. Sealed at rest; on update,
omitting it keeps the stored key. Omitting it on create selects Workload Identity (the
GCE/GKE metadata server), which stores no secret at all.
Which received stream to tee.
host:port of the collector.
Relay the original bytes (default) rather than re-rendering from the parsed fields.
Responses
Section titled “Responses”Destination updated; an omitted secret keeps the stored one
Edge validation rejected the destination (target, kind pairing, filter, certificate, credential, or rate limit)
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" }}Role lacks the ManageConfig permission
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 such destination
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" }}A destination with that name already exists
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" }}Skeleton mode: no destination store
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" }}