You are browsing documentation for an older version. See the latest documentation here.

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