API
Introduction
All require HTTP basic authentication . The default user is Bifrost/Bifrost123.
Examples
Get db list :
[root@localhost ~]# curl -i -u Bifrost:Bifrost123 -k https://127.0.0.1:21036/db/list
HTTP/1.1 200 OK
Date: Wed, 30 Dec 2020 11:41:59 GMT
Content-Length: 399
Content-Type: text/plain; charset=utf-8{"mysql5.7":{"Name":"mysql5.7","ConnectUri":"root:root@tcp(172.17.0.2:3306)/mysql","ConnStatus":"running","ConnErr":"running","ChannelCount":1,"LastChannelID":1,"TableCount":1,"BinlogDumpFileName":"mysql-bin.000006","BinlogDumpPosition":826,"BinlogDumpTimestamp":1609240241,"MaxBinlogDumpFileName":"","MaxBinlogDumpPosition":0,"ReplicateDoDb":{"bifrost_test":1},"ServerId":103,"AddTime":1609139290}}
del refuse ip
[root@localhost ~]# curl -i -u Bifrost:Bifrost123 -k -H "content-type:application/json" -XDELETE -d'{"Ip":"191.168.220.101"}' https://127.0.0.1:21036/refuseip/del
HTTP/1.1 200 OK
Date: Wed, 30 Dec 2020 11:45:31 GMT
Content-Length: 40
Content-Type: text/plain; charset=utf-8{"status":1,"msg":"success","data":null}