[MXS-2993] Default Configuration REST API Created: 2020-05-13  Updated: 2020-05-13  Resolved: 2020-05-13

Status: Closed
Project: MariaDB MaxScale
Component/s: N/A
Affects Version/s: 2.4.7
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: febriyant Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: Maxscale
Environment:

Linux Centos 7



 Description   

i have configuration like this at maxscale.cnf

....
[CLI_Service]
type=service
router=cli
 
[CLI_Listener]
type=listener
service=CLI_Service
protocol=maxscaled
address=192.168.101.107
socket=default
 
[MaxAdmin_Inet]
type=listener
service=CLI_Service
protocol=HTTPD
address=192.168.101.107
port=8010

when i running curl with this command

curl --include --basic --user "admin:mariadb" http://192.168.101.107:8010/v1/servers

and then this is results

HTTP/1.1 200 OK
Date: Wed, 13 May 2020 11:33:15 GMT
Server: MaxScale(c) v.1.0.0
Connection: close
WWW-Authenticate: Basic realm="MaxInfo"
Content-Type: application/json
 
Commands must consist of at least two words. Type help for a list of commands

i see on documentation page i can't find default configuration for enable rest api on maxscale



 Comments   
Comment by markus makela [ 2020-05-13 ]

That is not the REST API, that is a legacy HTTP module that will be removed in MaxScale 2.5. The REST API is configured with the {{admin_} parameters found here: https://mariadb.com/kb/en/mariadb-maxscale-24-mariadb-maxscale-configuration-guide/#rest-api-configuration

You can find a short REST API tutorial here: https://mariadb.com/kb/en/mariadb-maxscale-24-rest-api-tutorial/

Generated at Thu Feb 08 04:18:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.