
AMQP Publish
CertifiedPublish a message to an AMQP exchange
AMQP Publish
Publish a message to an AMQP exchange
Publishes one or more messages to the configured exchange with a routing key, serializing the payload according to serdeType.
type: io.kestra.plugin.amqp.PublishExamples
id: amqp_publish
namespace: company.team
tasks:
- id: publish
type: io.kestra.plugin.amqp.Publish
host: localhost
port: 5672
username: guest
password: "{{ secret('AMQP_PASSWORD') }}"
virtualHost: /my_vhost
exchange: kestramqp.exchange
from:
- data: value-1
headers:
testHeader: KestraTest
timestamp: '2023-01-09T08:46:33.103130753Z'
- data: value-2
timestamp: '2023-01-09T08:46:33.115456977Z'
appId: unit-kestra
Properties
exchange *Requiredstring
The exchange to publish the message to
from *RequiredNon-dynamicstringarray
Structured data items, either as a map, a list of map, a URI, or a JSON string.
Structured data items can be defined in the following ways:
- A single item as a map (a document).
- A list of items as a list of maps (a list of documents).
- A URI, supported schemes are
kestrafor internal storage files,filefor host local files, andnsfilefor namespace files. - A JSON String that will then be serialized either as a single item or a list of items.
io.kestra.plugin.amqp.models.Message
Identifier of the publishing application
MIME content encoding of the message body
MIME content type of the message body
Correlation identifier used to match replies to requests
Deserialized message body
Delivery mode: 1 for non-persistent, 2 for persistent
durationTime-to-live before the message expires
Arbitrary application-specific message headers
Application message identifier
Message priority, 0 to 9
Queue name replies should be sent to
date-timeTime the message was created
Application-specific message type
Identifier of the user that published the message
host *Requiredstring
Broker host
Hostname or IP of the RabbitMQ broker; required unless using the deprecated url.
password string
Password
Password for the connection; required when the broker enforces authentication.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
port string
5672Broker port
TCP port for AMQP connections; defaults to 5672.
routingKey string
The routing key
serdeType string
STRINGSTRINGJSONSerializer/deserializer used for the message payload
username string
Username
Username for the connection; uses broker default (often guest) when not set.
virtualHost string
/Virtual host
Broker virtual host path; defaults to /.
Outputs
messagesCount integer
Number of messages published
Metrics
published.records counter
recordsNumber of messages published to the AMQP exchange