Make the following request:
curl -i -X POST http://localhost:8001/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make the following request:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make sure to replace the following placeholders with your own values:
-
region
: Geographic region where your Kong Konnect is hosted and operates.
-
controlPlaneId
: The id
of the control plane.
-
KONNECT_TOKEN
: Your Personal Access Token (PAT) associated with your Konnect account.
See the Konnect API reference to learn about region-specific URLs and personal access tokens.
Make the following request:
curl -i -X POST http://localhost:8001/services/{serviceName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make sure to replace the following placeholders with your own values:
-
serviceName|Id
: The id
or name
of the service the plugin configuration will target.
Make the following request:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/services/{serviceId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make sure to replace the following placeholders with your own values:
-
region
: Geographic region where your Kong Konnect is hosted and operates.
-
controlPlaneId
: The id
of the control plane.
-
KONNECT_TOKEN
: Your Personal Access Token (PAT) associated with your Konnect account.
-
serviceId
: The id
of the service the plugin configuration will target.
See the Konnect API reference to learn about region-specific URLs and personal access tokens.
Make the following request:
curl -i -X POST http://localhost:8001/routes/{routeName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make sure to replace the following placeholders with your own values:
-
routeName|Id
: The id
or name
of the route the plugin configuration will target.
Make the following request:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/routes/{routeId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "jwe-decrypt",
"config": {
"key-sets": [
"'$MY_KEY_SET'"
]
}
}
'
Copied to clipboard!
Make sure to replace the following placeholders with your own values:
-
region
: Geographic region where your Kong Konnect is hosted and operates.
-
controlPlaneId
: The id
of the control plane.
-
KONNECT_TOKEN
: Your Personal Access Token (PAT) associated with your Konnect account.
-
routeId
: The id
of the route the plugin configuration will target.
See the Konnect API reference to learn about region-specific URLs and personal access tokens.