Plugins

Fetch a Plugin

Get a Plugin using ID.

get/plugins/{PluginId}

Response

Successfully fetched Plugin

configobject required

The configuration properties for the Plugin which can be found on the plugins documentation page in the Kong Hub.

created_atinteger

Unix epoch when the resource was created.

enabledboolean nullable

Whether the plugin is applied.

idstring nullable
instance_namestring nullable
namestring required

The name of the Plugin that's going to be added. Currently, the Plugin must be installed in every Kong instance separately.

protocolsstring[] nullable

A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support "tcp" and "tls".

tagsstring[]

An optional set of strings associated with the Plugin for grouping and filtering.

updated_atinteger

Unix epoch when the resource was last updated.

Example response

{
  "config": {
    "anonymous": null,
    "hide_credentials": false,
    "key_in_body": false,
    "key_in_header": true,
    "key_in_query": true,
    "key_names": [
      "apikey"
    ],
    "run_on_preflight": true
  },
  "enabled": true,
  "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  "name": "key-auth",
  "protocols": [
    "grpc",
    "grpcs",
    "http",
    "https"
  ]
}

Changes