Solace Consume

Enterprise only

Capture request URIv3.12+

You can use uri_captures to capture the URI of the request and use it as the message destination name.

For example, if you have a Route that looks like this:

~/demo/(?topic_id_1\w+)/hello/(?topic_id_2\w+)`

You can use the following configuration:

name: /topic/$(uri_captures['topic_id_1'])/test/$(uri_captures['topic_id_2'])

If the request doesn’t match, the plugin will remove the placeholder and the /, so the final destination will be /topic/test/.

Note: Use single quotes for the topic ID, such as $(uri_captures['topic_id_1']. Double quotes will cause errors.

Environment variables

  • SOLACE_BROKER_HOST: The Solace broker host URL. For example: tcp://my.broker:55555 (plain) or tcps://my.broker:55443 (secure).

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!