第 64 章 Replace Field Action


Replace field with a different key in the message in transit.

The required parameter renames is a comma-separated list of colon-delimited renaming pairs like for example foo:bar,abc:xyz and it represents the field rename mappings.

The optional parameter enabled represents the fields to include. If specified, only the named fields are included in the resulting message.

The optional parameter disabled represents the fields to exclude. If specified, the listed fields are excluded from the resulting message. This takes precedence over the enabled parameter.

The default value of enabled parameter is all, so all the fields in the payload are included.

The default value of disabled parameter is none, so no fields in the payload are excluded.

64.1. Configuration Options

The following table summarizes the configuration options available for the replace-field-action Kamelet:

Expand
PropertyNameDescriptionTypeDefaultExample

renames *

Renames

Comma separated list of field with new value to be renamed

string

 

foo:bar,c1:c2

disabled

Disabled

Comma separated list of fields to be disabled

string

none

 

enabled

Enabled

Comma separated list of fields to be enabled

string

all

 

* = Fields marked with an asterisk are mandatory.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部