kong.plugin

Uses: Kong Gateway

Plugin related APIs

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

kong.plugin.get_id() -- "123e4567-e89b-12d3-a456-426614174000"
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!