Description
Queries the parameter settings of an OBProxy cluster.
API call instructions
API constraints
The caller needs to be authenticated through OCP application services.
Request path
GET /api/v2/obproxy/clusters/{id}/parameters
Request parameters
path:
Parameter |
Type |
Required |
Example value |
Description |
|---|---|---|---|---|
| id | Long | Yes | 3 | The ID of the OBProxy cluster. |
Return results
Basic data structure
Parameter |
Type |
Description |
|---|---|---|
| data | Array | For more information, see ObproxyClusterParameter data structure. |
| successful | Boolean | Indicates whether the request was successful. |
| timestamp | Datetime | The timestamp when the server completed the request. |
| duration | Integer | The time taken by the server to process the request, in milliseconds. |
| status | Integer | The HTTP status code that conforms to the HTTP status code specification. |
| traceId | String | The Trace ID of the request, which is used to troubleshoot issues. |
| server | String | The address of the application service that responded to the request. |
ObproxyClusterParameter data structure
Parameter |
Type |
Description |
|---|---|---|
| name | String | The name of the parameter. |
| description | String | The description of the parameter. |
| needReboot | Boolean | Indicates whether a restart is required. |
| values | Array | For more information, see ObproxyParameterValue data structure. |
ObproxyParameterValue data structure
Parameter |
Type |
Description |
|---|---|---|
| value | String | The value of the parameter. |
| obproxies | Array | The list of OBProxies. |
Examples
Request example
GET /api/v2/obproxy/clusters/3/parameters
Return example
{
"data": {
"contents": [{
"description": "proxy info check task interval, [1s, 1h]",
"name": "proxy_info_check_interval",
"needReboot": false,
"valueString": "60s",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "60s"
}]
}, {
"description": "specifies the current level of logging: DEBUG, TRACE, INFO, WARN, USER_ERR, ERROR",
"name": "monitor_log_level",
"needReboot": false,
"valueString": "INFO",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "INFO"
}]
}, {
"description": "sock param, packet mark out, [0, 1]",
"name": "sock_packet_mark_out",
"needReboot": false,
"valueString": "0",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "0"
}]
}, {
"description": "enable net and route prometheus merics or not",
"name": "enable_extra_prometheus_metric",
"needReboot": false,
"valueString": "False",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "False"
}]
}, {
"description": "epoll_wait timeout for net events, [0, +∞], if set a value <= 0, proxy treat it as 0",
"name": "net_config_poll_timeout",
"needReboot": false,
"valueString": "1ms",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "1ms"
}]
}, {
"description": "meta table username, format'user@tenant#cluster'",
"name": "json_config_meta_table_user",
"needReboot": true,
"valueString": "",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": ""
}]
}, {
"description": "net accept threads num, [0, 8]",
"name": "net_accept_threads",
"needReboot": true,
"valueString": "2",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "2"
}]
}, {
"description": "default hot upgrade failure retries, proxy will stop handle hot_upgrade command after such retries, [1, 20]",
"name": "hot_upgrade_failure_retries",
"needReboot": false,
"valueString": "5",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "5"
}]
}, {
"description": "if client connections reach throttle, true is that new connection will be accepted, and eliminate lru client connection, false is that new connection will disconnect, and err packet will be returned",
"name": "enable_client_connection_lru_disconnect",
"needReboot": false,
"valueString": "False",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "False"
}]
}, {
"description": "tcp keepalive idle time, unit is second, 0 means use default value by kernel",
"name": "server_tcp_keepidle",
"needReboot": false,
"valueString": "0",
"values": [{
"obproxies": ["xxx.xxx.xxx.xxx"],
"value": "0"
}]
}]
},
"duration": 21,
"server": "a83ad33525",
"status": 200,
"successful": true,
"timestamp": "2021-09-03T17:45:34.409+08:00",
"traceId": "1e538d4c421a4483"
}
