kong.plugin

kong.plugin.get_id()

Returns the instance ID of the plugin.

Phases

  • rewrite, access, header_filter, response, body_filter, log

Returns

  • string: The ID of the running plugin

Usage

  1. kong.request.get_id() -- "123e4567-e89b-12d3-a456-426614174000"