このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Request Transformer Advancedプラグインは以下のプロトコルに対応しています:
grpc
, grpcs
, http
, https
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
string required
プラグイン名。この場合は
request-transformer-advanced
。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
name
です。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
plugin
です。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
string
プラグインが対象とするサービス名または ID。最上位の
/plugins
エンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/plugins
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするルート名または ID。最上位の
/plugins
エンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/plugins
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするコンシューマーの名前または ID。 最上位の
/plugins
エンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/plugins
を使用する場合は必要ありません。 -
boolean default:
true
このプラグインが適用されるかどうか。
-
record required
-
string matches:
^%u+$
Changes the HTTP method for the upstream request.
-
record required
-
array of type
string
List of parameter names. Remove the parameter if and only if content-type is one of the following: [
application/json
,multipart/form-data
,application/x-www-form-urlencoded
]; and parameter is present.
-
array of type
string
List of header names. Unset the headers with the given name.
-
array of type
string
List of querystring names. Remove the querystring if it is present.
-
-
record required
-
array of type
string
referenceableList of parameter
name:value
pairs. Rename the parameter name if and only if content-type is one of the following: [application/json
,multipart/form-data
,application/x-www-form-urlencoded
]; and parameter is present.
-
array of type
string
referenceableList of
headername:value
pairs. If and only if the header is already set, rename the header. The value is unchanged. Ignored if the header is not already set.
-
array of type
string
referenceableList of
queryname:value
pairs. If and only if the field name is already set, rename the field name. The value is unchanged. Ignored if the field name is not already set.
-
-
record required
-
array of type
string
referenceableList of paramname:value pairs. If and only if content-type is one the following: [
application/json
,multipart/form-data
,application/x-www-form-urlencoded
]; and the parameter is already present, replace its old value with the new one. Ignored if the parameter is not already present.
-
array of type
string
referenceableList of headername:value pairs. If and only if the header is already set, replace its old value with the new one. Ignored if the header is not already set.
-
array of type
string
referenceableList of queryname:value pairs. If and only if the querystring name is already set, replace its old value with the new one. Ignored if the header is not already set.
-
array of type
string
Must be one of:boolean
,number
,string
List of JSON type names. Specify the types of the JSON values returned when replacing JSON properties.
-
string
Updates the upstream request URI with given value. This value can only be used to update the path part of the URI; not the scheme, nor the hostname.
-
-
record required
-
array of type
string
referenceableList of
paramname:value
pairs. If and only if content-type is one the following: [application/json, multipart/form-data
,application/x-www-form-urlencoded
]; and the parameter is not present, add a new parameter with the given value to form-encoded body. Ignored if the parameter is already present.
-
array of type
string
referenceableList of
headername:value
pairs. If and only if the header is not already set, set a new header with the given value. Ignored if the header is already set.
-
array of type
string
referenceableList of
queryname:value
pairs. If and only if the querystring name is not already set, set a new querystring with the given value. Ignored if the querystring name is already set.
-
array of type
string
Must be one of:boolean
,number
,string
List of JSON type names. Specify the types of the JSON values returned when adding a new JSON property.
-
-
record required
-
array of type
string
referenceableList of
paramname:value
pairs. If the content-type is one the following: [application/json
,application/x-www-form-urlencoded
]; add a new parameter with the given value if the parameter is not present. Otherwise, if it is already present, the two values (old and new) will be aggregated in an array.
-
array of type
string
referenceableList of
headername:value
pairs. If the header is not set, set it with the given value. If it is already set, a new header with the same name and the new value will be set.
-
array of type
string
referenceableList of
queryname:value
pairs. If the querystring is not set, set it with the given value. If it is already set, a new querystring with the same name and the new value will be set.
-
array of type
string
Must be one of:boolean
,number
,string
List of JSON type names. Specify the types of the JSON values returned when appending JSON properties.
-
-
record required
-
boolean default:
true
Specify whether dots (for example,
customers.info.phone
) should be treated as part of a property name or used to descend into nested JSON objects. See Arrays and nested objects.
-