プラグイン構成を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:GetPluginConfig |
get |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID。 |
gw-ubuwqygbq4783gqb2y3f87q**** |
| PluginId |
integer |
必須 |
ゲートウェイプラグインの ID。 |
123 |
| AcceptLanguage |
string |
任意 |
返される情報の言語。有効な値:
|
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
RestResult |
||
| RequestId |
string |
リクエスト ID。 |
03A3E2F4-6804-5663-9D5D-2EC47A1***** |
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
true |
| Code |
integer |
コード。 |
200 |
| ErrorCode |
string |
エラーコード。 |
500 |
| HttpStatusCode |
integer |
HTTP 状態コード。 |
200 |
| Message |
string |
API メッセージ。 |
success |
| DynamicCode |
string |
動的エラーコード。 |
code |
| DynamicMessage |
string |
動的エラーメッセージ。 |
message |
| Data |
object |
返されるデータ。 |
|
| Id |
integer |
プラグインの ID。 |
1 |
| PrimaryUser |
string |
作成者の ID。 |
123 |
| Type |
integer |
プラグインのタイプ。有効な値:
|
0 |
| Category |
integer |
プラグインのカテゴリ。有効な値:
|
0 |
| Name |
string |
プラグイン名。 |
name |
| Version |
string |
プラグインのバージョン。 |
v1 |
| Summary |
string |
プラグインのまとめ。 |
This is a plug-in |
| SummaryEn |
string |
プラグインの英語のまとめ。 |
Convert request/response headers, request query parameters, and request/response body parameters. |
| Readme |
string |
README の説明。 |
read me |
| ReadmeEn |
string |
README の英語の説明。 |
read me |
| ConfigExample |
string |
プラグイン構成例。 |
blocked_code: 404 blocked_message: resource not found |
| Phase |
integer |
プラグインの実行位相。有効な値:
|
0 |
| Priority |
integer |
プラグインの実行優先度。値が大きいほど優先度が高くなります。 |
1 |
| ConfigCheck |
string |
構成の検証。 |
# Validate required configuration fields. In the following example, the plug-in configuration must contain the "name", "age", and "friends" fields. name: John age: 18 friends: - David - Anne |
| Mode |
integer |
モード。 |
0 |
| WasmLang |
integer |
WebAssembly (Wasm) の実装言語。有効な値:
|
0 |
| ImageName |
string |
イメージ名。 |
name |
| PublishState |
integer |
公開ステータス。 |
1 |
| Status |
string |
有効化ステータス。有効な値:
|
1 |
| GatewayConfigList |
array<object> |
ゲートウェイプラグイン構成のリスト。 |
|
|
array<object> |
データオブジェクト。 |
||
| Id |
integer |
プラグイン構成の ID。 |
1 |
| GatewayId |
integer |
ゲートウェイの ID。 |
1 |
| GatewayUniqueId |
string |
ゲートウェイの一意の ID。 |
gw-ubuwqygbq4783gqb2y3f87q**** |
| PluginId |
integer |
ゲートウェイプラグインの ID。 |
1 |
| Enable |
boolean |
プラグインが有効かどうかを示します。 |
true |
| Config |
string |
プラグイン構成。 |
# Validate required configuration fields. In the following example, the plug-in configuration must contain the "name", "age", and "friends" fields. name: John age: 18 friends: - David - Anne |
| ConfigLevel |
integer |
プラグインのアプリケーション範囲。有効な値:
|
0 |
| ResourceList |
array<object> |
ConfigLevel によって区別されるドメイン名およびルートリソースのリスト。 |
|
|
object |
|||
| Id |
integer |
リソースの ID。 |
1 |
| Name |
string |
ドメイン名またはルート名であるリソース名。 |
test-route |
| GmtCreate |
string |
作成時間。 |
1667309705000 |
| GmtModified |
string |
更新時間。 |
1667309705000 |
| RouteConfigStartIndex |
integer |
GatewayConfigList 内のルートレベルルールの開始インデックス。ルートレベルのルールが存在しない場合、値は -1 です。 |
0 |
| DomainConfigStartIndex |
integer |
GatewayConfigList 内のドメインレベルルールの開始インデックス。ドメインレベルのルールが存在しない場合、値は -1 です。 |
5 |
| GatewayConfigStartIndex |
integer |
GatewayConfigList 内のインスタンスレベルルールのインデックス。インスタンスレベルのルールが存在しない場合、値は -1 です。 |
7 |
| VersionJson |
string |
ゲートウェイプラグインのバージョン情報のリスト。 |
[{"id":1, "version": "1.0.0"}] |
例
成功レスポンス
JSONJSON
{
"RequestId": "03A3E2F4-6804-5663-9D5D-2EC47A1*****",
"Success": true,
"Code": 200,
"ErrorCode": "500",
"HttpStatusCode": 200,
"Message": "success",
"DynamicCode": "code",
"DynamicMessage": "message",
"Data": {
"Id": 1,
"PrimaryUser": "123",
"Type": 0,
"Category": 0,
"Name": "name",
"Version": "v1",
"Summary": "This is a plug-in",
"SummaryEn": "Convert request/response headers, request query parameters, and request/response body parameters.",
"Readme": "read me",
"ReadmeEn": "read me",
"ConfigExample": "blocked_code: 404\nblocked_message: resource not found\n",
"Phase": 0,
"Priority": 1,
"ConfigCheck": "# Validate required fields in the configuration. As shown in the following example, the plug-in configuration must contain the \"name\", \"age\", and \"friends\" fields.\nname: John\nage: 18\nfriends:\n- David\n- Anne",
"Mode": 0,
"WasmLang": 0,
"ImageName": "name",
"PublishState": 1,
"Status": "1",
"GatewayConfigList": [
{
"Id": 1,
"GatewayId": 1,
"GatewayUniqueId": "gw-ubuwqygbq4783gqb2y3f87q****",
"PluginId": 1,
"Enable": true,
"Config": "# Validate required fields in the configuration. As shown in the following example, the plug-in configuration must contain the \"name\", \"age\", and \"friends\" fields.\nname: John\nage: 18\nfriends:\n- David\n- Anne",
"ConfigLevel": 0,
"ResourceList": [
{
"Id": 1,
"Name": "test-route"
}
],
"GmtCreate": "1667309705000",
"GmtModified": "1667309705000"
}
],
"RouteConfigStartIndex": 0,
"DomainConfigStartIndex": 5,
"GatewayConfigStartIndex": 7,
"VersionJson": "[{\"id\":1, \"version\": \"1.0.0\"}]"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | 無効なリクエストパラメーター: %s。 |
| 500 | InternalError | Console error. Try again later:%s | コンソールでエラーが発生しました。しばらくしてからもう一度お試しください: %s。 |
| 403 | NoPermission | You are not authorized to perform this operation:%s | この操作を実行する権限がありません: %s。 |
| 404 | NotFound | Not found:%s | リソースが存在しません: %s。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。