機能の概要
OBProxyパラメータの説明情報を照会します。
呼び出しの説明
インターフェース制約
呼び出し元はOCPアプリケーションサービスの認証を通過している必要があります。
リクエストパス
GET /api/v2/obproxy/parameterInfo
リクエストパラメータ
body:
パラメータ |
型 |
必須 |
サンプル値 |
説明 |
|---|---|---|---|---|
| name | String | いいえ | rootservice_list | パラメータ名。 |
| version | String | いいえ | 1.9.1 | OBProxyバージョン。 |
戻り値
基本データ構造
パラメータ |
型 |
説明 |
|---|---|---|
| data | Array | 詳細は ParameterInfoデータ構造 を参照してください。 |
| successful | Boolean | リクエストが成功したかどうか。 |
| timestamp | Datetime | サーバーがリクエストを完了したタイムスタンプ。 |
| duration | Integer | サーバーがリクエストを処理した時間(ミリ秒)。 |
| status | Integer | HTTPステータスコード。 |
| traceId | String | リクエストのTrace ID。問題のトラブルシューティングに使用されます。 |
| server | String | リクエストに応答したアプリケーションサービスのアドレス。 |
ParameterInfoデータ構造
パラメータ |
型 |
説明 |
|---|---|---|
| id | Long | パラメータID。 |
| name | String | パラメータ名。 |
| version | String | バージョン。 |
| type | String | パラメータタイプ。値の範囲: |
| allowedStringValues | String | パラメータの許容文字列。 |
| maxValue | String | パラメータの最大値。 |
| minValue | String | パラメータの最小値。 |
| defaultValue | String | パラメータのデフォルト値。 |
| needRestart | Bool | 再起動が必要かどうか。 |
| readonly | Bool | 読み取り専用かどうか。 |
| description | String | パラメータの説明。 |
| explanation | String | パラメータの解説。 |
例
リクエスト例
GET /api/v2/obproxy/parameterInfo
レスポンス例
{
"data": {
"contents": [{
"allowedStringValues": "[0,100]",
"defaultValue": "10",
"description": "the num of create conn cont, [0, 1000]",
"explanation": null,
"id": 196,
"maxValue": "100",
"minValue": "0",
"name": "create_conn_cont_num",
"needRestart": false,
"readonly": false,
"type": "INT",
"version": "2.1.0"
},
{
"allowedStringValues": "[0,1000000]",
"defaultValue": "100000",
"description": "the num of conn in pending list, [0, 100000]",
"explanation": null,
"id": 197,
"maxValue": "1000000",
"minValue": "0",
"name": "max_pending_num",
"needRestart": false,
"readonly": false,
"type": "INT",
"version": "2.1.0"
},
{
"allowedStringValues": "[0s,1d]",
"defaultValue": "5ms",
"description": "session_pool_cont_delay_interval, [0s, 1d]",
"explanation": null,
"id": 198,
"maxValue": "1d",
"minValue": "0s",
"name": "session_pool_cont_delay_interval",
"needRestart": false,
"readonly": false,
"type": "TIME",
"version": "2.1.0"
},
{
"allowedStringValues": "[]",
"defaultValue": "false",
"description": "if enabled means use_local_session prop",
"explanation": null,
"id": 199,
"maxValue": "true",
"minValue": "false",
"name": "use_local_session_prop",
"needRestart": false,
"readonly": false,
"type": "BOOL",
"version": "2.1.0"
},
{
"allowedStringValues": "[0,10000]",
"defaultValue": "0",
"description": "the num of min conn , [0, 100000]",
"explanation": null,
"id": 200,
"maxValue": "10000",
"minValue": "0",
"name": "session_pool_default_min_conn",
"needRestart": false,
"readonly": false,
"type": "INT",
"version": "2.1.0"
},
{
"allowedStringValues": "[0,100000]",
"defaultValue": "20",
"description": "the num of max conn , [0, 100000]",
"explanation": null,
"id": 201,
"maxValue": "100000",
"minValue": "0",
"name": "session_pool_default_max_conn",
"needRestart": false,
"readonly": false,
"type": "INT",
"version": "2.1.0"
},
{
"allowedStringValues": "[0s,1d]",
"defaultValue": "1800s",
"description": "session_pool_default_idle_timeout, [0s, 1d]",
"explanation": null,
"id": 202,
"maxValue": "1d",
"minValue": "0s",
"name": "session_pool_default_idle_timeout",
"needRestart": false,
"readonly": false,
"type": "TIME",
"version": "2.1.0"
},
{
"allowedStringValues": "[0ms,2s]",
"defaultValue": "500ms",
"description": "session_pool_default_blocking_timeout, [0ms, 2s]",
"explanation": null,
"id": 203,
"maxValue": "2s",
"minValue": "0ms",
"name": "session_pool_default_blocking_timeout",
"needRestart": false,
"readonly": false,
"type": "TIME",
"version": "2.1.0"
},
{
"allowedStringValues": "[]",
"defaultValue": "false",
"description": "session_pool_default_prefill",
"explanation": null,
"id": 204,
"maxValue": "true",
"minValue": "false",
"name": "session_pool_default_prefill",
"needRestart": false,
"readonly": false,
"type": "BOOL",
"version": "2.1.0"
},
{
"allowedStringValues": "[]",
"defaultValue": "true",
"description": "if enabled means use beyond trust",
"explanation": null,
"id": 205,
"maxValue": "true",
"minValue": "false",
"name": "enable_beyond_trust",
"needRestart": false,
"readonly": false,
"type": "BOOL",
"version": "2.1.0"
}]
},
"duration": 9,
"server": "a83ad33525",
"status": 200,
"successful": true,
"timestamp": "2021-09-03T17:11:46.53+08:00",
"traceId": "ad3d6adcb291445f"
}